Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. %include "io.inc"
  2.  
  3. section .data
  4. a db 'S', 'C', 'D', 'H'
  5. b db '1', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'
  6. section .text
  7. global CMAIN
  8. CMAIN:
  9. mov ebp, esp; for correct debugging
  10. GET_DEC 4, eax
  11. sub eax, 1
  12. mov ecx, 13
  13. xor edx, edx
  14. div ecx
  15. mov bl, byte[a + eax]
  16. PRINT_CHAR bl
  17. xor eax, eax
  18. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement