diff --git a/.gitignore b/.gitignore index 9b5c6cd..2238a73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.elf +*.bin DISK.APM *.txt diff --git a/Makefile b/Makefile index 9d78ab9..267a8e7 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ MACHINE=mac99 -PPC=powerpc-linux-gnu +PPC=powerpc-eabi QEMU=qemu-system-ppc RES=1600x900x32 DISK.APM: kernel.elf bootinfo.txt scripts/kpartx.sh diff --git a/entry/boot.c b/entry/boot.c index d775cf6..d70e43d 100644 --- a/entry/boot.c +++ b/entry/boot.c @@ -1,5 +1,6 @@ #include "boot.h" void __stack_chk_fail_local(void){} +void __eabi(void){} void get_io_type(void) { if (*(unsigned char*)__VRAM__BEIGE == beige) IO_TYPE = beige; @@ -36,6 +37,39 @@ void main(void) { get_io_type(); init(); + game_of_life(); +} + +void fillscreen(unsigned int* addr, unsigned char a, unsigned char b, unsigned char c, int n) +{ + unsigned char* ptr = addr; + for (unsigned int i = 0; i