53 lines
835 B
NASM
53 lines
835 B
NASM
mov ah, 0x0e ; set tty mode (teletype mode) of Interrupt 10h for character output (0x0e)
|
|
mov al, 'G' ; set a single byte, the output character
|
|
int 0x10 ; Call the interrupt routine
|
|
mov al, 'o'
|
|
int 0x10
|
|
mov al, 'o'
|
|
int 0x10
|
|
mov al, 'd'
|
|
int 0x10
|
|
mov al, ''
|
|
int 0x10
|
|
mov al, 'E'
|
|
int 0x10
|
|
mov al, 'v'
|
|
int 0x10
|
|
mov al, 'e'
|
|
int 0x10
|
|
mov al, 'n'
|
|
int 0x10
|
|
mov al, 'i'
|
|
int 0x10
|
|
mov al, 'n'
|
|
int 0x10
|
|
mov al, 'g'
|
|
int 0x10
|
|
mov al, ''
|
|
int 0x10
|
|
mov al, 'P'
|
|
int 0x10
|
|
mov al, 'r'
|
|
int 0x10
|
|
mov al, 'o'
|
|
int 0x10
|
|
mov al, 'f'
|
|
int 0x10
|
|
mov al, 'e'
|
|
int 0x10
|
|
mov al, 's'
|
|
int 0x10
|
|
mov al, 's'
|
|
int 0x10
|
|
mov al, 'o'
|
|
int 0x10
|
|
mov al, 'r'
|
|
int 0x10
|
|
mov al, '!'
|
|
int 0x10
|
|
jmp $ ; jump to current address = infinite loop this is your boot program
|
|
|
|
; padding and magic number
|
|
times 510 - ($-$$) db 0
|
|
dw 0xaa55
|