Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .data
- a db 'S', 'C', 'D', 'H'
- b db '1', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'
- section .text
- global CMAIN
- CMAIN:
- mov ebp, esp; for correct debugging
- GET_DEC 4, eax
- sub eax, 1
- mov ecx, 13
- xor edx, edx
- div ecx
- mov bl, byte[a + eax]
- PRINT_CHAR bl
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement