Skip to content

Commit 0364985

Browse files
committed
bugfix: broke some non-bankset bankswitched games with graphics at start of bank
1 parent 7a4a858 commit 0364985

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

includes/7800basicfooter.asm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
endif
1313
endif
1414

15+
if START_OF_ROM = .
16+
.byte 0
17+
endif
18+
START_OF_ROM SET 0
19+
1520
; FF7E/FF7F contains the 7800basic crc checksum word
1621

1722
; FF80 - FFF7 contains the 7800 encryption key

includes/7800basicheader.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ BANK_WAS_SET SET 1
120120
ORG $8000,0 ; default is 32K
121121
endif
122122

123-
START_OF_ROM = .
123+
START_OF_ROM SET .

samples/banksets/banksetrom.bin

-32 KB
Binary file not shown.

statements.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ void bank(char **statement)
923923
orgprintf(" if START_OF_ROM = . ; avoid dasm empty start-rom truncation.\n");
924924
orgprintf(" .byte 0\n");
925925
orgprintf(" endif\n");
926+
orgprintf("START_OF_ROM SET 0 ; scuttle so we always fail subsequent banks\n");
926927

927928
// 2.issue ORG,RORG
928929
currentbank = requestedbank;
@@ -4422,6 +4423,7 @@ void barf_graphic_file(void)
44224423
orgprintf(" if START_OF_ROM = . ; avoid dasm empty start-rom truncation.\n");
44234424
orgprintf(" .byte 0\n");
44244425
orgprintf(" endif\n");
4426+
orgprintf("START_OF_ROM SET 0 ; scuttle so we always fail subsequent banks\n");
44254427
for (currentplain = 0; currentplain <= dmaplain; currentplain++)
44264428
{
44274429
if (bankcount == 0)

0 commit comments

Comments
 (0)