Skip to main content

Find the square of given number

Find the square of given number

  1. LDA 2500H   : "Get data in accumulator"  
  2. MOV L, A    : "Get data in register L"  
  3. MVI H, 26H  : "Get 26 in register H"  
  4. MOV A, M    : "Square of data in accumulator"  
  5. STA 2501 H  : "Store Square in 2501 H"  
  6. HLT : "Stop"

Comments