zombie-core-utils/case.asm

24 lines
357 B
NASM
Raw Normal View History

extern puts
2021-09-19 12:18:33 -04:00
%include "../inc/case_func.inc"
global case_func
2021-09-18 06:35:54 -04:00
section .data
text db "rEEEeee!EEeeeEeEEeE!EEEEEeEEE$eeeEE)EEeEeEEeeeEeEEEEEeeeEeeEeeEeeeeeEeEeEeeE",0
section .text
global main
main:
2021-09-15 10:15:54 -04:00
sub rsp, 8 ;enter
mov rdi, text
2021-09-19 12:18:33 -04:00
call case_func
mov rdi, text
cld
2021-09-15 10:15:54 -04:00
call puts ;this is the puts way of printing a string
_end:
2021-09-15 10:15:54 -04:00
add rsp, 8 ;exit
ret