24-bit vga

This commit is contained in:
thamugadi 2021-10-10 19:34:51 +01:00
parent cf12e548eb
commit e9f77bf60c
2 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,8 @@
MACHINE=mac99
PPC=powerpc-linux-gnu
QEMU=qemu-system-ppc
RES=1280x768x32
DISK.APM: kernel.elf bootinfo.txt scripts/kpartx.sh
dd bs=512K count=2 if=/dev/zero of=DISK.APM
parted DISK.APM --script mklabel mac mkpart primary hfs+ 32.8KB 100%
@ -25,8 +27,8 @@ start.elf: entry/start.s
clean:
rm *.APM *elf *txt
run:
$(QEMU) *.APM -g 1280x768x32 -machine $(MACHINE)
$(QEMU) -hda *.APM -g $(RES) -machine $(MACHINE)
debug:
$(QEMU) *.APM -d in_asm -g 1280x768x32 -machine $(MACHINE)
$(QEMU) -hda *.APM -d in_asm -g $(RES) -machine $(MACHINE)
all:
make clean && make && make run

View File

@ -8,14 +8,14 @@
: fba frame-buffer-adr ;
: beige-vram 80000000 ; : mac99-vram 81000000 ;
: beige-error ." G3 Beige machine isn't supported yet. Please run it with a post-1999 PowerPC Mac." ;
: beige-error ." G3 Beige machine is not supported yet. Please run it with a post-1999 PowerPC Mac." ;
: hardware-error ." Hardware not supported." ;
variable run
-1 run !
fba beige-vram = if beige-error cr 100 0 do 0BE i beige-vram + c! loop then
fba mac99-vram = if ." mac99" cr 100 0 do 05A i mac99-vram + c! loop then
fba beige-vram diff fba mac99-vram diff and if ." Hardware not supported." cr 0 run ! then
fba beige-vram diff fba mac99-vram diff and if hardware-error cr 0 run ! then
run @ 0 = if 1 0 do 0 +loop then