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
Raw Normal View History

2023-09-11 17:54:09 +00:00
mov ah, 0x0e ; set tty mode (teletype mode) of Interrupt 10h for character output (0x0e)
2023-09-12 15:40:15 +00:00
mov al, 'G' ; set a single byte, the output character
2023-09-11 17:54:09 +00:00
int 0x10 ; Call the interrupt routine
2023-09-12 15:40:15 +00:00
mov al, 'o'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'o'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'd'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, ''
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'E'
int 0x10
mov al, 'v'
2023-09-11 17:54:09 +00:00
int 0x10
mov al, 'e'
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'n'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'i'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'n'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'g'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, ''
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'P'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'r'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'o'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'f'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'e'
int 0x10
mov al, 's'
int 0x10
mov al, 's'
2023-09-11 17:54:09 +00:00
int 0x10
2023-09-12 15:40:15 +00:00
mov al, 'o'
int 0x10
mov al, 'r'
2023-09-11 17:54:09 +00:00
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
2023-09-12 15:40:15 +00:00
dw 0xaa55