Archimedes5000 Posted January 22 Share Posted January 22 How do I know if a binary image larger than 8k was served as inverted bank switching? Hardware Projects (hexbus.com) You cannot use binaries for Flashrom or Finalgrom. Thats all I know... On whtech I did not find something like this. Stuart Connor has this binaries on his homepage for the browser and Cortex Basic. Quote Link to comment Share on other sites More sharing options...
Tursi Posted January 22 Share Posted January 22 You try it, sadly. That said, if the filename ends with 8.bin or 9.bin, that is an indicator. 8 is non-inverted, 9 is inverted. If it's anything else, it is /probably/ non-inverted but there's no real way to tell. 7 Quote Link to comment Share on other sites More sharing options...
+Ksarul Posted January 22 Share Posted January 22 Also note that @Asmusr made a really nice bank inversion tool that can switch a cartridge file between the two formats--and it works both ways, so inverted files are converted to non-inverted, and non-inverted can be converted to inverted. All you do is identify the file to be converted and specify the new output name. Super easy to use. bankinvert.zip 6 1 Quote Link to comment Share on other sites More sharing options...
Stuart Posted January 22 Share Posted January 22 Would @Asmusr be willing to share how his bank invert program works? Does it search for bytes for a MOV instruction to >600x and swap the destination address? Quote Link to comment Share on other sites More sharing options...
+arcadeshopper Posted January 22 Share Posted January 22 28 minutes ago, Stuart said: Would @Asmusr be willing to share how his bank invert program works? Does it search for bytes for a MOV instruction to >600x and swap the destination address? likely it just swaps the 8k blocks around in the binary 5 1 Quote Link to comment Share on other sites More sharing options...
Tursi Posted January 23 Share Posted January 23 20 hours ago, Stuart said: Would @Asmusr be willing to share how his bank invert program works? Does it search for bytes for a MOV instruction to >600x and swap the destination address? Yeah, it's not intelligent, it just inverts the order. If you don't know what you started with, then you won't know what you ended with 4 Quote Link to comment Share on other sites More sharing options...
+jedimatt42 Posted January 24 Share Posted January 24 The conversion can be dumb like this because we don't change the code to select a bank. We just arrange the banks in the order that the cartridge latch would output. If bank 0 is selected an inverting latch provides 11111111 as the bank select high address signals to the EPROM (or whatever) . If bank 0 is selected in a cartridge with a non-inverting latch, then the bank select address signals get 00000000. (assuming only an 8-bit latch) Either way we still write machine instructions that use the same write to address 6000 + ( bank << 1) to latch the logical bank number. 4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.