nils-eilers / CBM-DOS-Wedge

Issuing arbitrary Commodore DOS commands from the command line
10 stars 2 forks source link

romwedge.bin loads basic 2 wedge under basic 4. #3

Open dabonetn opened 2 years ago

dabonetn commented 2 years ago

Try to add romwedge.bin to my romulator, it works under basic 2 fine, but under basic 4 it starts the basic 2 wedge. "BASIC 2 ROM WEDGE (2012-09-19) INSTALLED"

Of course it doesn't work.

This is tested on a pet 2001, and vice (2001 and 4032 settings)

nils-eilers commented 2 years ago

I'm on a journey through Norway. I'm going to take a look when I'm back.

Am 29. Mai 2022 17:41:50 schrieb dabonetn @.***>:

Try to add romwedge.bin to my romulator, it works under basic 2 fine, but under basic 4 it starts the basic 2 wedge. "BASIC 2 ROM WEDGE (2012-09-19) INSTALLED"This is tested on a pet 2001, and vice (2001 and 4032 settings) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

madmanguruman commented 3 weeks ago

Looking at the romwedge.bin file and the accompanying asm file, I would guess that this image was built hard-coded for BASIC 2.

; Universal Wedge for BASIC 2 and BASIC 4 ; Based on Commodore's universal wedge taken from 8050's test/demo disk ; but rewritten and enhanced by Nils Eilers ; ROM version ;---------------------------------------------------------------------------- START = $9000 ; uncomment one of the addresses ; START = $A000 ; BASIC .set 4 ; uncomment appropiate BASIC version BASIC .set 2

I confirmed that the repo's unmodified assembly code above produces a binary-identical image to romwedge.bin (other than the empty space padding is 0x00 instead of 0xFF).

If you download the necessary toolchain (cc65, vice, lynx, zip) and build the file with BASIC set to 4 instead of 2, you'll get an image that should work with BASIC 4.