MASchmidt

3 - Ziffern von 0 bis 9 über eine Schleife

Dec 13th, 2017
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. MOV A, 48; ASCII '0'
  2. MOV D, 232 ; Point to output
  3. .loop:
  4. MOV [D], A ; Write to output
  5. INC A; ASCII Adresse um 1 erhöhen
  6. INC D; Speicher Adresse des Speichers erhöhen
  7. CMP A, 57 ; prüfen ob der Zähler ASCII '9' erreicht hat
  8. JBE .loop ;
  9. HLT
Advertisement
Add Comment
Please, Sign In to add comment