MASchmidt

2 - 20 x 'A' mit Schleife

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