Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;CRIANDO SISTEMAS OPERACIONAIS 16 BITS
- ;para compilar: nasm -f bin -o sistema.bin sistema.asm
- ;para executar: passo 1 - dd status=noxfer conv=notrunc if=sistema.bin of=sistema.flp
- ;para executar: passo 2 - qemu-system-i386 -fda sistema.flp
- ;------------correct
- mov ah, 0x0e ; tty mode
- mov al, 'H'
- int 0x10
- mov al, 'e'
- int 0x10
- mov al, 'l'
- int 0x10
- int 0x10 ; 'l' is still on al, remember?
- mov al, 'o'
- int 0x10
- mov al, ' '
- int 0x10
- mov al, 'L'
- int 0x10
- mov al, 'i'
- int 0x10
- mov al, 'n'
- int 0x10
- mov al, 'c'
- int 0x10
- mov al, 'o'
- int 0x10
- ;------correct
- jmp $ ; jump to current address = infinite loop
- ; padding and magic number
- times 510 - ($-$$) db 0
- dw 0xaa55
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement