make rom faster

This commit is contained in:
2025-11-23 17:12:27 +01:00
parent 53d35464f5
commit 6cf860fb34
10 changed files with 318 additions and 29 deletions

13
assets/makerom.py Normal file
View File

@@ -0,0 +1,13 @@
code = bytearray([
0xa9, 0x42,
0x8d, 0x00, 0x40,
0xdb
])
rom = code + bytearray([0xEA] * (1024 * 32 - len(code)))
rom[0x7FFC] = 0x00
rom[0x7FFD] = 0x80
with open("rom.bin", "wb") as bin_file:
bin_file.write(rom)