mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2025-02-05 17:30:29 +00:00
24-bit vga
This commit is contained in:
parent
efd9d6946c
commit
e4f92360d1
6
Makefile
6
Makefile
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user