game of life

This commit is contained in:
thamugadi 2022-01-01 14:20:19 +01:00
parent a5a06c8f83
commit 467bfef23e
3 changed files with 4 additions and 3 deletions

View File

@ -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%

View File

@ -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);

View File

@ -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