Merge pull request #4 from peterferrie/master

support Bug Attack, disable IIGS boot timeout
This commit is contained in:
4am 2019-03-11 20:54:45 -04:00 committed by GitHub
commit f111681253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 6 deletions

View File

@ -1,8 +1,2 @@
Untested (Gebelli):
- Lazer Silk
Do not work yet:
- Bug Attack (Cavalier)
$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

View File

@ -2,6 +2,7 @@
; written by 4am and qkumba
;
; tested on
; - Bug Attack (Cavalier)
; - Choplifter (Broderbund)
; - David's Midnight Magic (Broderbund)
; - Dueling Digits (Broderbund)
@ -244,6 +245,10 @@ IDBroderbund
ldx #<@StarThiefCallback
ldy #>@StarThiefCallback
cmp #$41
beq @hookhybrid
ldx #<@BugAttackCallback
ldy #>@BugAttackCallback
cmp #$A1
bne +
@hookhybrid
@ -338,3 +343,39 @@ IDBroderbund
lda #$68
sta $42C2
jmp $4200
@BugAttackCallback
ldy #@BugAttackCallback2_e-@BugAttackCallback2
- lda @BugAttackCallback2-1,y
sta @BugAttackCallback2x-1,y
dey
bne -
lda #$4C
sta $A2BB
lda #$D4
sta $A2BC
lda #$A2
sta $A2BD
lda #$4C
sta $A2F6
lda #<@BugAttackCallback2x
sta $A2F7
lda #>@BugAttackCallback2x
sta $A2F8
jmp $A200
@BugAttackCallback2 !pseudopc $110 {
@BugAttackCallback2x
lda #$16
sta $4E06
lda #$4C
sta $4A78
lda #$A4
sta $4A79
lda #$49
sta $4A7A
lda #$87
sta $EB5
jmp $4D36
}
@BugAttackCallback2_e