Initial Provided Files.

This commit is contained in:
Jonathan Turner 2023-09-11 13:54:09 -04:00
parent f0dc2e1628
commit 18802a2957
5 changed files with 58 additions and 0 deletions

BIN
Part1/.DS_Store vendored Normal file

Binary file not shown.

13
Part1/basic.asm Normal file
View File

@ -0,0 +1,13 @@
; A simple boot sector program that loops forever
loop:
jmp loop
; the line below fills in remainder with zeros up to 510 bytes
times 510-($-$$) db 0
; 386 CPUs required this number at end to recognize as bootsector
dw 0xaa55
; Total Size is 512 bytes with two bytes for our bootloader code:
;eb - the jump opcode
;fe - the relative offset (-2)
; Note the LittleEndian ordering when memory shown in hexdump

BIN
Part1/kernel.tar.gz Normal file

Binary file not shown.

45
Part1/print.asm Normal file
View File

@ -0,0 +1,45 @@
mov ah, 0x0e ; set tty mode (teletype mode) of Interrupt 10h for character output (0x0e)
mov al, 'W' ; set a single byte, the output character
int 0x10 ; Call the interrupt routine
mov al, 'e'
int 0x10
mov al, 'l'
int 0x10
mov al, 'c'
int 0x10
mov al, 'o'
int 0x10
mov al, 'm'
int 0x10
mov al, 'e'
int 0x10
mov al, ' '
int 0x10
mov al, 't'
int 0x10
mov al, 'o'
int 0x10
mov al, ' '
int 0x10
mov al, ' '
int 0x10
mov al, 'O'
int 0x10
mov al, 'S'
int 0x10
mov al, '3'
int 0x10
mov al, '5'
int 0x10
mov al, '0'
int 0x10
mov al, '2'
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

View File