Skip to content

Conversation

@erique
Copy link

@erique erique commented Jan 6, 2026

Fix kickety split ROM rebuilding

Fixes #234

Summary

This PR fixes a bug in romtool that caused kickety split ROM rebuilding to fail. The rebuilt ROMs had corrupted fill bytes at the 256 KiB boundary, resulting in invalid ROM headers.

Changes

  • rombuilder.py: Fixed typo in RomEntryRomHdr.get_data() - changed b"\x0ff" to b"\xff"
  • test/tools/romtool.py: Expanded the kickety split rebuild test to verify output matches original ROM

Testing

Tests passing with full ROM suite (81 passed, 63 skipped):

python3 -m pytest tools/romtool.py --full-suite

Verified with 512 KiB Kickstart ROMs:

  • amiga-os-204.rom
  • amiga-os-310-a1200.rom
  • amiga-os-310-a3000.rom
  • amiga-os-310-a4000.rom
  • amiga-os-310-a4000t.rom
  • amiga-os-310-a500.rom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

romtool option 'kickety split' is broken

1 participant