Advertisement
DearOohDeer

Flaga Assembler

Oct 20th, 2021
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. MVI H, 1h ;Skok o 100
  2. MVI D, 4Bh;Ilosc Wykonania Petli
  3. MVI A, 8h ; Moment w ktorym wpisuje flage
  4. MVI E, 1h ; Wykonanie Petli Flaga
  5. MVI C, 14
  6. MVI B, 1h
  7.  
  8. Petla20:
  9. MVI M,20h
  10. INR L
  11. CMP L
  12. JZ Flaga2A
  13. DCR D
  14. JNZ Petla20
  15.  
  16. MVI D,40h
  17. JMP Petla0A
  18.  
  19. Flaga2A:
  20. MVI M,2Ah
  21. INR L
  22. DCR D
  23. DCR E
  24. JNZ Flaga2A
  25. MOV A,L
  26. ADD C
  27. DCR C
  28. INR B
  29. MOV H,A
  30. MOV A,B
  31. MOV E,A
  32. MOV A,H
  33. MVI H,1h
  34. JNZ Petla20
  35.  
  36. Petla0A:
  37. MVI M,0Ah
  38. INR L
  39. DCR D
  40. JNZ Petla0A
  41.  
  42. MVI D,4h
  43. MVI A,58h
  44.  
  45. MasztA2:
  46. MOV L,A
  47. MVI M,2Ah
  48. ADI 10h
  49. DCR D
  50. JNZ MasztA2
  51. HLT
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement