4cade/src/prelaunch/spy.hunter.a

33 lines
617 B
Plaintext
Raw Permalink Normal View History

2020-01-21 18:39:24 +00:00
;license:MIT
;(c) 2021 by 4am/xot
2020-01-21 18:39:24 +00:00
!cpu 6502
!to "build/PRELAUNCH.INDEXED/SPY.HUNTER",plain
2020-01-21 18:39:24 +00:00
*=$106
!source "src/macros.a"
2020-01-21 18:39:24 +00:00
lda #<callback
sta $4013
lda #>callback
sta $4010
jmp $4000
callback nop
2021-11-01 21:01:32 +00:00
+RESET_AND_IRQ_VECTOR $100
2020-01-21 18:39:24 +00:00
ldy #0
sty $0D8E
iny
sty $0D93
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$AD
sta $739D ; patch - don't decrease timer
+
2020-01-21 18:39:24 +00:00
jmp $0451
!if * > $1C0 {
!error "code is too large, ends at ", *
}