mirror of
https://github.com/a2-4am/4cade.git
synced 2024-10-14 07:23:41 +00:00
fix some demo launcher IRQ & reset issues (#413)
* Add files via upload * Add files via upload * Add files via upload
This commit is contained in:
parent
4d27771958
commit
380a8ce7ba
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -16,7 +16,7 @@
|
||||
sta $2034
|
||||
jsr $2000 ; decompress
|
||||
|
||||
+RESET_VECTOR $100
|
||||
+RESET_AND_IRQ_VECTOR $100
|
||||
|
||||
lda #$4C
|
||||
sta $5B9A
|
||||
|
@ -10,7 +10,13 @@
|
||||
|
||||
+READ_RAM2_WRITE_RAM2
|
||||
jsr EnableAccelerator
|
||||
+LOAD_FILE_AT title, $00
|
||||
|
||||
;+LOAD_FILE_KEEP_DIR
|
||||
ldx #0 ; read to main memory
|
||||
stx ldrhi
|
||||
stx ldrlo
|
||||
+LDADDR title
|
||||
jsr iLoadFileDirect
|
||||
|
||||
lda #<callback
|
||||
sta $141D+1
|
||||
@ -18,29 +24,31 @@
|
||||
sta $141D+2
|
||||
jmp $1400 ; decompress
|
||||
|
||||
callback +RESET_VECTOR $100
|
||||
callback +RESET_AND_IRQ_VECTOR $100
|
||||
|
||||
ldx #6-1
|
||||
- lda patch, x
|
||||
- lda patch1, x
|
||||
sta $4542, x
|
||||
dex
|
||||
bpl - ; exit on keypress
|
||||
|
||||
lda #$4C
|
||||
sta $453A
|
||||
lda #$42
|
||||
sta $453A+1
|
||||
lda #$45
|
||||
sta $453A+2 ; exit at end of demo cycle
|
||||
ldx #3-1
|
||||
- lda patch2, x
|
||||
sta $453A, x
|
||||
dex
|
||||
bpl - ; exit at end of demo cycle
|
||||
|
||||
lda #$D0
|
||||
sta $053B ; disable sound
|
||||
|
||||
+DISABLE_ACCEL
|
||||
jsr DisableAccelerator
|
||||
+READ_ROM_NO_WRITE
|
||||
|
||||
jmp $4015
|
||||
|
||||
patch !byte $AD,$88,$C0,$6C,$FC,$FF
|
||||
patch1 !byte $AD,$88,$C0,$6C,$FC,$FF
|
||||
|
||||
patch2 !byte $4C,$42,$45
|
||||
|
||||
title !byte x_e-x_b
|
||||
x_b !text "X/ROBOTRON.2084/ROBOTRON.2084"
|
||||
|
@ -1,5 +1,5 @@
|
||||
;license:MIT
|
||||
;(c) 2021 by qkumba
|
||||
;(c) 2021 by qkumba/Frank M.
|
||||
|
||||
!cpu 6502
|
||||
!to "res/DEMO/SPACE.QUARKS",plain
|
||||
@ -11,10 +11,20 @@
|
||||
+READ_RAM2_WRITE_RAM2
|
||||
jsr EnableAccelerator
|
||||
+LOAD_FILE_AT space_quarks, $00
|
||||
|
||||
lda #0
|
||||
sta $40B4 ; (moved to $3F2) reset fix
|
||||
sta $40C0 ; (moved to $3FE) IRQ fix
|
||||
lda #1
|
||||
sta $40B4+1
|
||||
sta $40C0+1
|
||||
lda #$A4
|
||||
sta $40B4+2
|
||||
|
||||
lda #$4C
|
||||
sta $3EC9
|
||||
jsr $3E65 ; decompress/set reset vector
|
||||
+RESET_AND_IRQ_VECTOR $100
|
||||
jsr $3E65 ; decompress
|
||||
|
||||
lda #$EA
|
||||
sta $1C38
|
||||
sta $1C39
|
||||
|
@ -34,15 +34,17 @@
|
||||
sta $0905+1
|
||||
sta $51C7+1
|
||||
sta $51D2+1
|
||||
sta $47F2
|
||||
sta $47F2 ; fix reset (moved to $3F2/$3F3/$3F4)
|
||||
sta $47FE ; fix IRQ (moved to $3FE/$3FF)
|
||||
lda #1
|
||||
sta $0933+4
|
||||
sta $0905+2
|
||||
sta $51C7+2
|
||||
sta $51D2+2 ; set exits
|
||||
sta $47F2+1
|
||||
sta $47FE+1
|
||||
lda #$A4
|
||||
sta $47F4+2 ; reset vector fix (moved to $3F2/$3F4)
|
||||
sta $47F2+2 ; fix reset checksum
|
||||
|
||||
lda #$D0
|
||||
sta $153B
|
||||
|
@ -37,6 +37,7 @@
|
||||
sta $0F5D+1
|
||||
sta $0F72+1
|
||||
lda #1
|
||||
sta $03FF ; fix IRQ
|
||||
sta $0EFE+2
|
||||
sta $06A4+2
|
||||
sta $AD10+2
|
||||
|
Loading…
Reference in New Issue
Block a user