zombie-core-utils/case.asm

23 lines
339 B
NASM
Raw Normal View History

extern puts
2021-09-19 12:18:33 -04:00
%include "../inc/case_func.inc"
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
2021-09-19 12:18:33 -04:00
mov r8, text
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