Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include 'system.asm'
- %include 'string.asm'
- section .text
- ;
- ; Writes Value stored in ESI to Console
- ; @param ESI Source String
- ; @modified NONE
- ;
- console.write:
- push eax
- push ebx
- push ecx
- mov eax, 4
- mov ebx, 1
- call string.length
- mov ecx, esi
- call system.kernal
- pop ecx
- pop ebx
- pop eax
- ret
- ;
- ; Reads String Value from Console and stores it in EDI
- ; @return EDI Result String
- ; @modified EDI
- ;
- console.read:
- push eax
- push ebx
- mov eax, 3
- mov ebx, 0
- call system.kernal
- pop ebx
- pop eax
Advertisement
Add Comment
Please, Sign In to add comment