MASchmidt

7 - Potenzen

Dec 13th, 2017
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. JMP start
  2.  
  3. exponent:
  4. DB 1d
  5. DB 0
  6.  
  7. basis:
  8. DB 10d
  9. DB 0
  10.  
  11. start:
  12. MOV A,1
  13. MOV D,[exponent]
  14. MOV C,[basis]
  15. CMP D,0
  16. JE ende
  17.  
  18. loop:
  19. MUL C
  20. DEC D
  21. CMP D,0
  22. JNE loop
  23.  
  24. ende:
  25. HLT
Advertisement
Add Comment
Please, Sign In to add comment