support Star Thief

This commit is contained in:
Peter Ferrie 2019-03-11 14:38:25 -07:00
parent ef4957adcc
commit cb20860027
2 changed files with 19 additions and 6 deletions

View File

@ -6,5 +6,3 @@ Do not work yet:
$A2BB: 4C D4 A2 to bypass undocumented 6502 opcodes
$A2F6: 4C 36 4D to bypass undocumented 6502 opcodes and 6502-specific JMP behavior
...TODO there are more undocumented opcodes
- Star Thief (Cavalier)
$42C0: 4C 01 68 to bypass undocumented 6502 opcodes and 6502-specific JMP behavior

View File

@ -236,15 +236,21 @@ IDBroderbund
lda $33C
cmp #$AD
bne @maybeQuadrant
ldx #<@SpaceEggsCallback2
ldy #>@SpaceEggsCallback2
lda $3CC
cmp #$36
beq @hookhybrid
ldx #<@StarThiefCallback
ldy #>@StarThiefCallback
cmp #$41
bne +
@hookhybrid
lda #$4C
sta $33C
lda #<@SpaceEggsCallback2
sta $33D
lda #>@SpaceEggsCallback2
sta $33E
stx $33D
sty $33E
jmp $301
@maybeQuadrant
@ -323,3 +329,12 @@ IDBroderbund
lda #$60
sta $6B3
jmp $400
@StarThiefCallback
lda #$4C
sta $42C0
lda #$01
sta $42C1
lda #$68
sta $42C2
jmp $4200