From f7733f1e740d37c4c9cd6ff53a33ea7b6d8f7f0e Mon Sep 17 00:00:00 2001 From: pantonshire Date: Sat, 29 Jun 2024 11:12:32 +0100 Subject: [PATCH] estoy loopin --- boot0.s | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/boot0.s b/boot0.s index f7551ac..71f1f90 100644 --- a/boot0.s +++ b/boot0.s @@ -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