This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
OS_Project/Part1/print.asm

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