|
|
|
@ -20,17 +20,37 @@ bits 16
|
|
|
|
mov ax, 0xb800
|
|
|
|
mov ax, 0xb800
|
|
|
|
mov fs, ax
|
|
|
|
mov fs, ax
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Set VGA mode
|
|
|
|
|
|
|
|
; https://mendelson.org/wpdos/videomodes.txt
|
|
|
|
mov ah, 0x00
|
|
|
|
mov ah, 0x00
|
|
|
|
mov al, 0x03
|
|
|
|
mov al, 0x03
|
|
|
|
int 0x10
|
|
|
|
int 0x10
|
|
|
|
|
|
|
|
|
|
|
|
; Hi!
|
|
|
|
; Reveal the true nature of jen
|
|
|
|
mov word fs:[0x0000], 0xc048
|
|
|
|
xor bx, bx
|
|
|
|
mov word fs:[0x0002], 0xc069
|
|
|
|
mov ax, 17
|
|
|
|
mov word fs:[0x0004], 0xc021
|
|
|
|
loop:
|
|
|
|
|
|
|
|
cmp ax, bx
|
|
|
|
|
|
|
|
jle done
|
|
|
|
|
|
|
|
lea si, [womble + bx]
|
|
|
|
|
|
|
|
mov dh, [si]
|
|
|
|
|
|
|
|
mov di, bx
|
|
|
|
|
|
|
|
shl di, 1
|
|
|
|
|
|
|
|
mov byte fs:[di], dh
|
|
|
|
|
|
|
|
mov byte fs:[di + 1], 0x1f
|
|
|
|
|
|
|
|
inc bx
|
|
|
|
|
|
|
|
jmp loop
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
done:
|
|
|
|
hlt
|
|
|
|
hlt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
womble:
|
|
|
|
|
|
|
|
db "jen is a womble!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; TODO: enable A20
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; TODO: load a second stage
|
|
|
|
|
|
|
|
|
|
|
|
; TODO: grab all the info we can from bios interrupts and deliver it to ths OS nicely
|
|
|
|
; TODO: grab all the info we can from bios interrupts and deliver it to ths OS nicely
|
|
|
|
; e.g. in a fixed memory location
|
|
|
|
; e.g. in a fixed memory location
|
|
|
|
|
|
|
|
|
|
|
|
|