4cade/src/prelaunch/oid.zone.a

53 lines
961 B
Plaintext
Raw Normal View History

2020-05-30 01:27:29 +00:00
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/OID.ZONE",plain
2020-05-30 01:27:29 +00:00
*=$106
!source "src/macros.a"
2020-05-30 01:27:29 +00:00
+ENABLE_ACCEL
lda #$60
sta $51CA
jsr $800 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $7FD5 ; patch - don't decrease lives
+
2020-07-23 19:37:27 +00:00
lda #$4C
sta $AF79
sta $AF8C
lda #<callback1
sta $AF7A
lda #>callback1
sta $AF7B
lda #<callback2
sta $AF8D
lda #>callback2
sta $AF8E
2020-05-30 01:27:29 +00:00
+DISABLE_ACCEL
jmp $3FFD
2020-07-23 19:37:27 +00:00
callback1
sec
sbc #8
cmp #2
bcc +
- jmp $AF93
+ jmp $AF7D
callback2
sec
sbc #8
cmp #2
bcs -
jmp $AF90
2020-05-30 01:27:29 +00:00
!if * > $1C0 {
!error "code is too large, ends at ", *
}