mirror of
https://github.com/thamugadi/powerpc-ofw-boot.git
synced 2024-12-26 20:30:33 +00:00
game of life
This commit is contained in:
parent
4fcb9e842f
commit
80905c71ec
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
MACHINE=mac99
|
||||
PPC=powerpc-linux-gnu
|
||||
QEMU=qemu-system-ppc
|
||||
RES=1360x720x32
|
||||
RES=1600x900x32
|
||||
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%
|
||||
|
@ -63,7 +63,8 @@ void main(void)
|
||||
for(;;)
|
||||
{
|
||||
init();
|
||||
p_vram += 100000*4;
|
||||
memcpy(p_vram, p_vram+511, 400000);
|
||||
p_vram += 400000;
|
||||
for (i = 0; i < N; i++) for (j = 0; j < N; j++)
|
||||
{
|
||||
if (universe[i][j]) fillscreen(p_vram, 255,255,255,1);
|
||||
|
@ -11,7 +11,6 @@
|
||||
fba beige-vram = if ." Beige hardware detected" cr 0BE beige-vram c! then
|
||||
fba mac99-vram = if ." mac99 hardware detected" cr 05A mac99-vram c! then
|
||||
|
||||
." Running Game of Life: " cr
|
||||
|
||||
|
||||
fba beige-vram = if screen-width 4 beige-vram + l! then
|
||||
@ -24,6 +23,7 @@ variable run
|
||||
-1 run !
|
||||
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
|
||||
." Running Game of Life: " cr
|
||||
boot hd:,\boot\kernel.elf
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user