Skip to main content

Finding 1's complement of a number

Finding 1's complement of a number

  1. LDA 2501H   : "Get the number IN accumulator"  
  2. CMA         : "take its complement"  
  3. STA 2502H   : "Store result in 2502H"  
  4. HLT         : "Stop"

Comments