FInal opcodes

This commit is contained in:
Kilian committed 2026-08-30 23:02:24 +02:00
1 parent 1f4390a42b
commit f5672ee9c3
8 files changed
+452 -146

No files matched your search

+3 -1
View File
@@ -3,6 +3,8 @@
uint8_t rom[ROM_SIZE] = {0};
void initRom(uint8_t *rom) {
rom[0] = 0xa9, // LDA
rom[1] = 'H', // H literal
rom[2] = 0x8d, // STA
@@ -11,7 +13,7 @@ void initRom(uint8_t *rom) {
rom[6] =
/* Reset Vector */
rom[0xFFFC - ROM_BASE] = 0x00, // Lower byte base of ROM
rom[0xFFFD - ROM_BASE] = 0x04, // Upper byte of base of ROM
rom[0xFFFD - ROM_BASE] = 0x02, // Upper byte of base of ROM
rom[0xFFFE - ROM_BASE] = 0x00, // Lower byte base of ROM
rom[0xFFFF - ROM_BASE] = 0x00; // Upper byte of base of ROM
}