Empty program: Difference between revisions

m (Clarification)
Line 1,630:
 
=={{header|Z80 Assembly}}==
===Amstrad CPC, ZX Spectrum, etc.===
ret
<lang z80>ret</lang>
===Game Boy===
{{trans|Game Boy Advance}}
The Nintendo logo is loaded from the cartridge header, and the Game Boy's firmware won't boot the game without it. So a truly "empty" program can't be run at all. Thus a minimum of a valid cartridge header is required for an empty program that the Game Boy can actually run.
The beginning of the cartridge header is a jump to the program's start. Simply duplicate this instruction at that address and voila:
 
<lang z80>ProgramStart:
jp ProgramStart</lang>
 
=={{header|Zig}}==
1,489

edits