On 8-bit BBG Famicom clone, you can write assembly program and use basm.cmd (the BBG assembler) to compile into *.cmd executables.
The hot boot (similar to Ctrl+Alt+Del or pressing Reset button) has an memory entry $580f and the cold boot (the power button) has an memory entry at $5806. But I guess on BBG, there is no much difference comparing these two booting.
Therefore, to emulate the hot startup, save following into hot.asm and run basm /cmd hot.asm on BBGDOS prompt and this will give you a hot.cmd
org $8000 jmp $580f
Similarly, to emulate the code startup, save following into code.asm and run basm /cmd code.asm on BBGDOS prompt and this will give you a code.cmd
org $8000 jmp $5806
Pre-compiled hot.cmd and cold.cmd
can be downloaded respectively, both zipped, less than 1KB (in fact, hot.cmd and cold.cmd both are 5 bytes only)
–EOF (The Ultimate Computing & Technology Blog) —
loading...
Last Post: Adding a pause command for 8-bit famiclone BBG - 6502 Assembly Programming
Next Post: Migrating PHPBB to the new Domain