Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
tarea1
;nasm 2.13.02 ;------------------------------------------ ; int slen(String message) ; String length calculation function slen: push ebx mov ebx, eax nextchar: cmp byte [eax], 0 jz finished inc eax jmp nextchar finished: sub eax, ebx pop ebx ret ;------------------------------------------ ; void sprint(String message) ; String printing function sprint: push edx push ecx push ebx push eax call slen mov edx, eax pop eax mov ecx, eax mov ebx, 1 mov eax, 4 int 80h pop ebx pop ecx pop edx ret ;------------------------------------------ ; void exit() ; Exit program and restore resources quit: mov ebx, 0 mov eax, 1 int 80h ret
run
|
edit
|
history
|
help
0
lec4c
afsdfds
ddffdfddfdfdf
mult
Group Project (Group 4)
dfsfdafds
dfdffdfdfdfdfdfd
hello.asm
Disition
First Program Group Lab