4cade/src/prelaunch/dino.smurf.a

38 lines
721 B
Plaintext
Raw Normal View History

2020-04-02 21:15:37 +00:00
;license:MIT
;(c) 2020 by qkumba
!cpu 6502
!to "build/PRELAUNCH.INDEXED/DINO.SMURF",plain
2020-04-02 21:15:37 +00:00
*=$106
!source "src/prelaunch/common.a"
+ENABLE_ACCEL
lda #$60
sta $2183
jsr $2100 ; decompress
+GET_MACHINE_STATUS
and #CHEATS_ENABLED
beq +
lda #$ad
sta $1895 ; patch - don't decrease lives
2020-05-12 05:26:35 +00:00
+ lda ROM_MACHINEID
cmp #$06
beq ++
ldy #$2C
- lda $AE4A,Y
cmp #$E1
bcc +
and #$DF
sta $AE4A,Y
+ dey
bne -
++ +DISABLE_ACCEL
2020-04-02 21:15:37 +00:00
jmp $A892
!if * > $1C0 {
!error "code is too large, ends at ", *
}