Code: Select all
call writethis ;PUSH IP
db "Hello", 10, 13, 0
call writethis
db "Hello again", 0
jmp $
writethis:
pop si ;POP IP
call write
push si ;PUSH IP
ret
write:
mov ah, 0eh
.a:
mov al, [si]
inc si
cmp al, 0
je .b
int 10h
jmp .a
.b:
ret