//gs compatibility fixes (#447)

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload
This commit is contained in:
frankmilliron 2021-12-29 17:26:00 -08:00 committed by GitHub
parent 3639471c97
commit 4d30023051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 33 additions and 27 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -9,7 +9,6 @@
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00
+READ_ROM_NO_WRITE
@ -19,12 +18,12 @@
ldx #5
- lda $100,x
sta reset,x
sta $300,x
dex
bpl -
sec
rol $3F3 ; point to $300 instead
jsr $FB6F ; reset vector checksum (bank ROM in)
jsr $FB6F
lda #$EA
sta $15DD
@ -44,12 +43,8 @@
lda #$D0
sta $AC64 ; disable sound
+DISABLE_ACCEL
jmp $837
reset !byte $00,$00,$00,$00,$00,$00
title !byte x_e-x_b
x_b !text "X/AGENT.U.S.A/AGENT.U.S.A"
x_e

View File

@ -10,7 +10,6 @@
+GAME_REQUIRES_JOYSTICK
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
;+LOAD_FILE_KEEP_DIR
ldx #0 ; read to main memory
@ -42,8 +41,6 @@
sta $0863 ; disable sound
+DISABLE_ACCEL
jmp $A892
newpath

View File

@ -9,7 +9,6 @@
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
+LOAD_FILE_AT title, $00
lda #$60
@ -29,8 +28,6 @@
sta $9FF7+2
sta $9FDC+2 ; set exits
+DISABLE_ACCEL
jmp $6000
title !byte x_e-x_b

View File

@ -9,7 +9,6 @@
!source "src/macros.a"
+READ_RAM2_WRITE_RAM2
jsr EnableAccelerator
;+LOAD_FILE_KEEP_DIR
ldx #0 ; read to main memory
@ -44,8 +43,6 @@
dex
bpl - ; exit at end of demo cycle
+DISABLE_ACCEL
jmp $0767
patch1 !byte $10,$13,$4C,$00,$01

View File

@ -31,7 +31,7 @@
sta $8819+1
lda #>callback
sta $8819+2
jsr $87F9 ; load/title
jsr $87F9 ; load, show title
lda #$60
sta $7818
@ -63,10 +63,10 @@ callback bit $C000
ldx #$30
- bit $C055
lda #$0B
jsr $FCA8
jsr fakewait
bit $C054
lda #$0B
jsr $FCA8
jsr fakewait
bit $C000
bmi exit
dey
@ -76,6 +76,15 @@ callback bit $C000
jmp $8839
exit jmp $100
fakewait sec
wait1 pha
wait2 sbc #$01
bne wait2
pla
sbc #$01
bne wait1
rts
newpath
!byte 15
!text "X/THUNDER.BOMBS"

View File

@ -7,7 +7,6 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $36D3
jsr $366D ; decompress
@ -21,7 +20,6 @@
rol $3F3 ; point to $300 instead
jsr $FB6F
+DISABLE_ACCEL
jmp $837
!if * > $1C0 {

View File

@ -7,7 +7,6 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $2186
jsr $2100 ; decompress
@ -16,7 +15,7 @@
beq +
lda #$ad
sta $1895 ; patch - don't decrease lives
+ +DISABLE_ACCEL
+
jmp $A892
!if * > $1C0 {

View File

@ -7,7 +7,6 @@
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $3f0b
jsr $3eba ; decompress
@ -24,7 +23,6 @@
dec $9d19 ; patch - don't decrease lives
dec $9d06 ; patch - don't decrease lives
+
+DISABLE_ACCEL
jmp $6000
!if * > $1C0 {

View File

@ -9,7 +9,13 @@
lda #$60
sta $887F
jsr $87F9 ; load/title
lda #<fakewait
sta $8823+1
sta $8823+2
lda #>fakewait
sta $8823+2
sta $882B+2 ; fix timing of title screen on //gs
jsr $87F9 ; load, show title
+ENABLE_ACCEL
lda #$60
@ -17,7 +23,8 @@
jsr $7800 ; unpack/setup
lda #0
sta $3F2
sta $3F2 ; reset vector
+READ_RAM2_NO_WRITE
lda MockingboardStuff
+READ_ROM_NO_WRITE
@ -44,6 +51,15 @@
lda $323
jmp $781B
fakewait sec
wait1 pha
wait2 sbc #$01
bne wait2
pla
sbc #$01
bne wait1
rts
!if * > $1C0 {
!error "code is too large, ends at ", *
}