2021-09-15 09:22:20 -04:00
|
|
|
extern puts
|
|
|
|
|
2021-09-19 12:18:33 -04:00
|
|
|
%include "../inc/case_func.inc"
|
2021-09-18 06:35:54 -04:00
|
|
|
|
2021-09-15 09:22:20 -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-15 09:22:20 -04:00
|
|
|
|
2021-09-19 12:18:33 -04:00
|
|
|
mov r8, text
|
|
|
|
call case_func
|
2021-09-15 09:22:20 -04:00
|
|
|
|
|
|
|
mov rdi, text
|
|
|
|
cld
|
2021-09-15 10:15:54 -04:00
|
|
|
call puts ;this is the puts way of printing a string
|
2021-09-15 09:22:20 -04:00
|
|
|
|
|
|
|
_end:
|
2021-09-15 10:15:54 -04:00
|
|
|
add rsp, 8 ;exit
|
2021-09-15 09:22:20 -04:00
|
|
|
ret
|