Initial Provided Files.
This commit is contained in:
parent
f0dc2e1628
commit
18802a2957
BIN
Part1/.DS_Store
vendored
Normal file
BIN
Part1/.DS_Store
vendored
Normal file
Binary file not shown.
13
Part1/basic.asm
Normal file
13
Part1/basic.asm
Normal 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
BIN
Part1/kernel.tar.gz
Normal file
Binary file not shown.
45
Part1/print.asm
Normal file
45
Part1/print.asm
Normal 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
|
Reference in New Issue
Block a user