* Revert "Uploaded_2_9_2025" This reverts commit ec79bbdbc9052617461a3c1b4952290a05a51adb. * Fixing DEBUG_IO builds. * Make the IO port base a define. * Fix CPU test to properly handle 808x vs V20. * Improve timeout management logic. * Improve SD Card initialization logic. * Implement INT18h bootstrapping. * Implementing a different test for processor type. * Allow use with another fixed drive (eg: ESDI drive). * Allow swapping driver ID between the BIOS disk and XTMax. * Fix address of the ROM segment. * Fixing missing STI at the top of the handler. * Major rework of IO to use MOVSW. * More code reorg and auto-detecting second drive. * Update XTSD to use MOVSW. * Add diagnostics program. * Workaround for MS-DOS strange handling of interrupts. * Use a lookup table for the memory map. * Make the BootROM relocatable. * Some more refactor of the Teensy code.
7 lines
186 B
Python
7 lines
186 B
Python
with open("bootrom", "rb") as f:
|
|
b = bytearray(f.read())
|
|
# compute the checksum and store a byte to
|
|
b[-1] = 256 - sum(b[0:-1]) & 0xff
|
|
with open("bootrom", "wb") as f:
|
|
f.write(b)
|