MASchmidt

8 - Byte als Bit ausgeben

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. JMP start
  2.  
  3. bitmuster:
  4. DB 00101101b
  5. DB 0
  6.  
  7. start:
  8. MOV A,[bitmuster]
  9. MOV B,0
  10. MOV D, 232
  11.  
  12. loop:
  13. SHL A,1
  14. JC eins
  15. JMP null
  16.  
  17. eins:
  18. MOV [D],49
  19. INC D
  20. JMP ende
  21.  
  22. null:
  23. MOV [D],48
  24. INC D
  25. JMP ende
  26.  
  27. ende:
  28. INC B
  29. CMP B,8
  30. JB loop
  31. HLT
Advertisement
Add Comment
Please, Sign In to add comment