Author Topic: Hello World  (Read 4 times)

Offline Structure

  • New Member
  • Posts: 1
Hello World
« on: Today at 04:03:35 PM »
.zeroTerminated:
Code: [Select]
times 512-($-$$) db 0
jmp start

print:
 pusha
 .printloop:
   mov al, [si]
   cmp al, 0
   jne .printchar
   popa
   ret
 .printchar:
   mov ah, 0x0e
   int 0x10
   add si, 1
   jmp .printloop
ret

string: db "Hello World.", 0

start:
  mov si, string
  call print
« Last Edit: Today at 04:20:31 PM by Structure »