commanderx16 / x16-rom

Other
153 stars 43 forks source link

GEOS Desk Top crashes on start #344

Open mist64 opened 1 year ago

mist64 commented 1 year ago

The Desk Top code is meant for the C64 and writes to #$30 to $01 in order to switch to ROM. On the X16, this changes the ROM bank, so the call to PutString ($C148) will fail.

[ 1499502]                      03:.,574e 78       sei            a=$39 x=$30 y=$04 s=$f8 p=--.b-i-c
[ 1499503]                      03:.,574f a5 01    lda $01        a=$39 x=$30 y=$04 s=$f8 p=--.b-i-c
[ 1499504]                      03:.,5751 48       pha            a=$03 x=$30 y=$04 s=$f8 p=--.b-i-c
[ 1499505]                      03:.,5752 a9 30    lda #$30       a=$03 x=$30 y=$04 s=$f7 p=--.b-i-c
[ 1499506]                      03:.,5754 85 01    sta $01        a=$30 x=$30 y=$04 s=$f7 p=--.b-i-c
[...]
[ 1499517]                      10:.,576a 20 48 c1 jsr $c148      a=$09 x=$30 y=$04 s=$f7 p=--.b-i-c
[ 1499518]                      10:.,c148 00       brk            a=$09 x=$30 y=$04 s=$f5 p=--.b-i-c

(This is not a ROM bug. Instead, Desk Top needs to be patched.)

197404881-5ef584c4-e6d2-4fff-9c78-c51dd3ce3379