estoy loopin
This commit is contained in:
1 parent
9024269ec5
commit
f7733f1e74
1 file changed
+24
-4
@@ -20,17 +20,37 @@ bits 16
|
||||
mov ax, 0xb800
|
||||
mov fs, ax
|
||||
|
||||
; Set VGA mode
|
||||
; https://mendelson.org/wpdos/videomodes.txt
|
||||
mov ah, 0x00
|
||||
mov al, 0x03
|
||||
int 0x10
|
||||
|
||||
; Hi!
|
||||
mov word fs:[0x0000], 0xc048
|
||||
mov word fs:[0x0002], 0xc069
|
||||
mov word fs:[0x0004], 0xc021
|
||||
; Reveal the true nature of jen
|
||||
xor bx, bx
|
||||
mov ax, 17
|
||||
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
|
||||
|
||||
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
|
||||
; e.g. in a fixed memory location
|
||||
|
||||
|
||||
Reference in new issue
Block a user