Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .data
- suit db 83, 67, 68, 72; S, C, D, H - пики, трефы, бубны, черви ;eax
- val db 50, 51, 52, 53, 54, 55, 56, 57, 84, 74, 81, 75, 65; 2, 3, 4, 5, 6, 7, 8, 9, 10=T, J, Q, K, A ; edx
- section .text
- global CMAIN
- CMAIN:
- mov ebp, esp; for correct debugging
- xor edx, edx
- GET_DEC 4, eax
- mov ebx, 13
- div ebx
- mov bl, byte [suit + eax]
- mov cl, byte [val + edx]
- PRINT_CHAR cl
- PRINT_CHAR bl
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement