-
Notifications
You must be signed in to change notification settings - Fork 2
/
FIXDAMPD.ASM
31 lines (26 loc) · 1.08 KB
/
FIXDAMPD.ASM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; INCLUDE START
; INCLVER SAM,SINISTAR.EQU
FIXDAMPDM
PUSHORG ROMSAVE ;;($8E31)
;* romove old task initialization
PUSHORG $5156
JMP FIXDAM1
PULLORG
FIXDAM1 jsr StartDemo ;* Fake the Player 1 button hit. ;;Fixme was: 100$ (Needed to convert to global labels...decided to go with easier-to-understand labels this time)
jmp Starts ;* Sieze control of the system.
;* make old task initialization a subroutine to save rom in patch
PUSHORG $5167
RTS
PULLORG
;* patch task initialization into correct place
PUSHORG $527E
JSR FIXDAM2 ;;($8E37)
PULLORG
FIXDAM2 CLRB ;;Fixme was: 101$
std OMTLen+2,X
JMP $5159
;* fix garbage velocity save
PUSHORG $517C
ADDD OMTLEN+2,Y ;* add it to previous s velocity
PULLORG
PULLORG ROMSAVE