/[projet1]/users/twilighte/Stormlord/GenericCode.s
Defence Force logotype

Contents of /users/twilighte/Stormlord/GenericCode.s

Parent Directory Parent Directory | Revision Log Revision Log


Revision 412 - (show annotations)
Thu Oct 7 20:50:23 2010 UTC (8 years, 8 months ago) by dbug
File size: 678 byte(s)
Added Stormlord
1 ;Generic Code
2
3 nl_screen
4 lda screen
5 clc
6 adc #40
7 sta screen
8 lda screen+1
9 adc #00
10 sta screen+1
11 rts
12
13 AddBGBuff
14 clc
15 adc bgbuff
16 sta bgbuff
17 lda bgbuff+1
18 adc #00
19 sta bgbuff+1
20 rts
21
22 DestroyNPC ;Passed in X
23 cpx NPCUltimateIndex
24 .(
25 beq skip1
26 ldy NPCUltimateIndex
27 lda NPC_Activity,y
28 sta NPC_Activity,x
29 lda NPC_Progress,y
30 sta NPC_Progress,x
31 lda NPC_ScreenX,y
32 sta NPC_ScreenX,x
33 lda NPC_ScreenY,y
34 sta NPC_ScreenY,x
35 lda NPC_ScreenXOrigin,y
36 sta NPC_ScreenXOrigin,x
37 lda NPC_ScreenYOrigin,y
38 sta NPC_ScreenYOrigin,x
39 lda NPC_Count,y
40 sta NPC_Count,x
41 lda NPC_Special,y
42 sta NPC_Special,x
43 skip1 dec NPCUltimateIndex
44 .)
45 rts

  ViewVC Help
Powered by ViewVC 1.1.26