Basic working version generates sounds and graphics

This commit is contained in:
Dejvino
2026-02-23 22:39:29 +01:00
parent 6459fe2f02
commit 8a3abafd84
10 changed files with 572 additions and 47 deletions
+21
View File
@@ -0,0 +1,21 @@
.cpu arm1176jzf-s
.section ".text.boot"
.global _start
_start:
// 1. Set up the stack pointer
// The Pi 1 has 512MB RAM (usually), stack grows down from a safe high address.
// We'll set it to 0x8000 (where the kernel starts) and let it grow down.
mov sp, #0x8000
// 2. Clear BSS (Uninitialized variables) - Skipped for minimal "Stupid" version
// but good practice usually.
// 3. Jump to C code
bl kernel_main
// 4. Halt if main returns
halt:
wfe
b halt