mirror of
https://github.com/a2-4am/4cade.git
synced 2024-06-08 10:51:52 +00:00
//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:
parent
3639471c97
commit
4d30023051
Binary file not shown.
Binary file not shown.
BIN
res/DEMO/FALCONS
BIN
res/DEMO/FALCONS
Binary file not shown.
BIN
res/DEMO/REPTON
BIN
res/DEMO/REPTON
Binary file not shown.
Binary file not shown.
|
@ -9,7 +9,6 @@
|
||||||
!source "src/macros.a"
|
!source "src/macros.a"
|
||||||
|
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
|
||||||
+LOAD_FILE_AT title, $00
|
+LOAD_FILE_AT title, $00
|
||||||
+READ_ROM_NO_WRITE
|
+READ_ROM_NO_WRITE
|
||||||
|
|
||||||
|
@ -19,12 +18,12 @@
|
||||||
|
|
||||||
ldx #5
|
ldx #5
|
||||||
- lda $100,x
|
- lda $100,x
|
||||||
sta reset,x
|
sta $300,x
|
||||||
dex
|
dex
|
||||||
bpl -
|
bpl -
|
||||||
sec
|
sec
|
||||||
rol $3F3 ; point to $300 instead
|
rol $3F3 ; point to $300 instead
|
||||||
jsr $FB6F ; reset vector checksum (bank ROM in)
|
jsr $FB6F
|
||||||
|
|
||||||
lda #$EA
|
lda #$EA
|
||||||
sta $15DD
|
sta $15DD
|
||||||
|
@ -44,12 +43,8 @@
|
||||||
lda #$D0
|
lda #$D0
|
||||||
sta $AC64 ; disable sound
|
sta $AC64 ; disable sound
|
||||||
|
|
||||||
+DISABLE_ACCEL
|
|
||||||
|
|
||||||
jmp $837
|
jmp $837
|
||||||
|
|
||||||
reset !byte $00,$00,$00,$00,$00,$00
|
|
||||||
|
|
||||||
title !byte x_e-x_b
|
title !byte x_e-x_b
|
||||||
x_b !text "X/AGENT.U.S.A/AGENT.U.S.A"
|
x_b !text "X/AGENT.U.S.A/AGENT.U.S.A"
|
||||||
x_e
|
x_e
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
+GAME_REQUIRES_JOYSTICK
|
+GAME_REQUIRES_JOYSTICK
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
|
||||||
|
|
||||||
;+LOAD_FILE_KEEP_DIR
|
;+LOAD_FILE_KEEP_DIR
|
||||||
ldx #0 ; read to main memory
|
ldx #0 ; read to main memory
|
||||||
|
@ -42,8 +41,6 @@
|
||||||
|
|
||||||
sta $0863 ; disable sound
|
sta $0863 ; disable sound
|
||||||
|
|
||||||
+DISABLE_ACCEL
|
|
||||||
|
|
||||||
jmp $A892
|
jmp $A892
|
||||||
|
|
||||||
newpath
|
newpath
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
!source "src/macros.a"
|
!source "src/macros.a"
|
||||||
|
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
|
||||||
+LOAD_FILE_AT title, $00
|
+LOAD_FILE_AT title, $00
|
||||||
|
|
||||||
lda #$60
|
lda #$60
|
||||||
|
@ -29,8 +28,6 @@
|
||||||
sta $9FF7+2
|
sta $9FF7+2
|
||||||
sta $9FDC+2 ; set exits
|
sta $9FDC+2 ; set exits
|
||||||
|
|
||||||
+DISABLE_ACCEL
|
|
||||||
|
|
||||||
jmp $6000
|
jmp $6000
|
||||||
|
|
||||||
title !byte x_e-x_b
|
title !byte x_e-x_b
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
!source "src/macros.a"
|
!source "src/macros.a"
|
||||||
|
|
||||||
+READ_RAM2_WRITE_RAM2
|
+READ_RAM2_WRITE_RAM2
|
||||||
jsr EnableAccelerator
|
|
||||||
|
|
||||||
;+LOAD_FILE_KEEP_DIR
|
;+LOAD_FILE_KEEP_DIR
|
||||||
ldx #0 ; read to main memory
|
ldx #0 ; read to main memory
|
||||||
|
@ -44,8 +43,6 @@
|
||||||
dex
|
dex
|
||||||
bpl - ; exit at end of demo cycle
|
bpl - ; exit at end of demo cycle
|
||||||
|
|
||||||
+DISABLE_ACCEL
|
|
||||||
|
|
||||||
jmp $0767
|
jmp $0767
|
||||||
|
|
||||||
patch1 !byte $10,$13,$4C,$00,$01
|
patch1 !byte $10,$13,$4C,$00,$01
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
sta $8819+1
|
sta $8819+1
|
||||||
lda #>callback
|
lda #>callback
|
||||||
sta $8819+2
|
sta $8819+2
|
||||||
jsr $87F9 ; load/title
|
jsr $87F9 ; load, show title
|
||||||
|
|
||||||
lda #$60
|
lda #$60
|
||||||
sta $7818
|
sta $7818
|
||||||
|
@ -63,10 +63,10 @@ callback bit $C000
|
||||||
ldx #$30
|
ldx #$30
|
||||||
- bit $C055
|
- bit $C055
|
||||||
lda #$0B
|
lda #$0B
|
||||||
jsr $FCA8
|
jsr fakewait
|
||||||
bit $C054
|
bit $C054
|
||||||
lda #$0B
|
lda #$0B
|
||||||
jsr $FCA8
|
jsr fakewait
|
||||||
bit $C000
|
bit $C000
|
||||||
bmi exit
|
bmi exit
|
||||||
dey
|
dey
|
||||||
|
@ -76,6 +76,15 @@ callback bit $C000
|
||||||
jmp $8839
|
jmp $8839
|
||||||
exit jmp $100
|
exit jmp $100
|
||||||
|
|
||||||
|
fakewait sec
|
||||||
|
wait1 pha
|
||||||
|
wait2 sbc #$01
|
||||||
|
bne wait2
|
||||||
|
pla
|
||||||
|
sbc #$01
|
||||||
|
bne wait1
|
||||||
|
rts
|
||||||
|
|
||||||
newpath
|
newpath
|
||||||
!byte 15
|
!byte 15
|
||||||
!text "X/THUNDER.BOMBS"
|
!text "X/THUNDER.BOMBS"
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
!source "src/prelaunch/common.a"
|
!source "src/prelaunch/common.a"
|
||||||
|
|
||||||
+ENABLE_ACCEL
|
|
||||||
lda #$60
|
lda #$60
|
||||||
sta $36D3
|
sta $36D3
|
||||||
jsr $366D ; decompress
|
jsr $366D ; decompress
|
||||||
|
@ -21,7 +20,6 @@
|
||||||
rol $3F3 ; point to $300 instead
|
rol $3F3 ; point to $300 instead
|
||||||
jsr $FB6F
|
jsr $FB6F
|
||||||
|
|
||||||
+DISABLE_ACCEL
|
|
||||||
jmp $837
|
jmp $837
|
||||||
|
|
||||||
!if * > $1C0 {
|
!if * > $1C0 {
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
!source "src/prelaunch/common.a"
|
!source "src/prelaunch/common.a"
|
||||||
|
|
||||||
+ENABLE_ACCEL
|
|
||||||
lda #$60
|
lda #$60
|
||||||
sta $2186
|
sta $2186
|
||||||
jsr $2100 ; decompress
|
jsr $2100 ; decompress
|
||||||
|
@ -16,7 +15,7 @@
|
||||||
beq +
|
beq +
|
||||||
lda #$ad
|
lda #$ad
|
||||||
sta $1895 ; patch - don't decrease lives
|
sta $1895 ; patch - don't decrease lives
|
||||||
+ +DISABLE_ACCEL
|
+
|
||||||
jmp $A892
|
jmp $A892
|
||||||
|
|
||||||
!if * > $1C0 {
|
!if * > $1C0 {
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
!source "src/prelaunch/common.a"
|
!source "src/prelaunch/common.a"
|
||||||
|
|
||||||
+ENABLE_ACCEL
|
|
||||||
lda #$60
|
lda #$60
|
||||||
sta $3f0b
|
sta $3f0b
|
||||||
jsr $3eba ; decompress
|
jsr $3eba ; decompress
|
||||||
|
@ -24,7 +23,6 @@
|
||||||
dec $9d19 ; patch - don't decrease lives
|
dec $9d19 ; patch - don't decrease lives
|
||||||
dec $9d06 ; patch - don't decrease lives
|
dec $9d06 ; patch - don't decrease lives
|
||||||
+
|
+
|
||||||
+DISABLE_ACCEL
|
|
||||||
jmp $6000
|
jmp $6000
|
||||||
|
|
||||||
!if * > $1C0 {
|
!if * > $1C0 {
|
||||||
|
|
|
@ -9,7 +9,13 @@
|
||||||
|
|
||||||
lda #$60
|
lda #$60
|
||||||
sta $887F
|
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
|
+ENABLE_ACCEL
|
||||||
lda #$60
|
lda #$60
|
||||||
|
@ -17,7 +23,8 @@
|
||||||
jsr $7800 ; unpack/setup
|
jsr $7800 ; unpack/setup
|
||||||
|
|
||||||
lda #0
|
lda #0
|
||||||
sta $3F2
|
sta $3F2 ; reset vector
|
||||||
|
|
||||||
+READ_RAM2_NO_WRITE
|
+READ_RAM2_NO_WRITE
|
||||||
lda MockingboardStuff
|
lda MockingboardStuff
|
||||||
+READ_ROM_NO_WRITE
|
+READ_ROM_NO_WRITE
|
||||||
|
@ -44,6 +51,15 @@
|
||||||
lda $323
|
lda $323
|
||||||
jmp $781B
|
jmp $781B
|
||||||
|
|
||||||
|
fakewait sec
|
||||||
|
wait1 pha
|
||||||
|
wait2 sbc #$01
|
||||||
|
bne wait2
|
||||||
|
pla
|
||||||
|
sbc #$01
|
||||||
|
bne wait1
|
||||||
|
rts
|
||||||
|
|
||||||
!if * > $1C0 {
|
!if * > $1C0 {
|
||||||
!error "code is too large, ends at ", *
|
!error "code is too large, ends at ", *
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user