-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog.txt
111 lines (111 loc) · 3.71 KB
/
log.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
------- FILE src/main.asm LEVEL 1 PASS 2
1 10000 ???? ; VePseu's main file
2 10000 ????
3 10000 ???? processor 6502
4 10000 ????
5 10000 ???? INCLUDE "include/vepseu.h"
6 10000 ????
7 10000 ???? SEG
8 10000 ????
9 f000 ORG $F000
10 f000
11 f000 INCLUDE "map.asm"
12 f000
13 f800 ORG $F800
14 f800
15 f800 start
16 f800
17 f800 ; Initialize everything
18 f800
19 f800 INCLUDE "init.asm"
20 f800
21 f800 a9 00 LDA #VSYNC_SET
22 f802
23 f802 screenStart
24 f802
25 f802 ; Start vsync (3 scanlines)
26 f802 8d 00 00 STA VSYNC
27 f805
28 f805 8d 00 00 STA WSYNC
29 f808 8d 00 00 STA WSYNC
30 f80b a9 00 LDA #NULL
31 f80d 8d 00 00 STA WSYNC
32 f810
33 f810 8d 00 00 STA VSYNC
34 f813
35 f813 ; Render everything (12 scanlines)
36 f813
------- FILE walrend.asm LEVEL 2 PASS 2
0 f813 INCLUDE "walrend.asm" ; 6 scanlines
1 f813 ; VePseu's wall renderer
2 f813
3 f813 ac 00 00 LDY playerPos ; 3 cycles
4 f816
5 f816 INCLUDE "r_layers/layer0.asm" ; 86 cycles
6 f816
7 f816 INCLUDE "r_layers/layer1.asm" ; 86 cycles
8 f816
9 f816 INCLUDE "r_layers/layer2.asm" ; 148 cycles
10 f816
11 f816 INCLUDE "r_layers/layer3.asm" ; 182 cycles
12 f816
13 f816 INCLUDE "r_layers/layer4.asm" ; 8 cycles
14 f816
15 f816 8d 00 00 STA WSYNC ; By this time 6 scanlines have passed
------- FILE src/main.asm
38 f819
39 f819 INCLUDE "scrend.asm" ; 6 Scanlines
40 f819
41 f819 ; Pad!
42 f819
43 f819 a2 00 LDX #INDEXINIT
44 f81b
45 f81b upperPad
46 f81b 8d 00 00 STA WSYNC
47 f81e
48 f81e e8 INX
49 f81f e0 00 CPX #UPPAD_LIMIT
50 f821 d0 f8 BNE upperPad
51 f823
52 f823 8d 00 00 STA WSYNC
53 f826
54 f826 ; Draw everything
55 f826
56 f826 INCLUDE "dispkern.asm" ; 121 Scanlines
57 f826
58 f826
59 f826 ; Start VBLANK
60 f826
61 f826 a9 00 LDA #VBLANK_SET
62 f828 8d 00 00 STA VBLANK
63 f82b
64 f82b ; Process input
65 f82b
66 f82b INCLUDE "input.asm"
67 f82b
68 f82b ; Pad again
69 f82b
70 f82b a2 00 LDX #INDEXINIT
71 f82d
72 f82d lowerPad
73 f82d 8d 00 00 STA WSYNC
74 f830
75 f830 e8 INX
76 f831 e0 00 CPX #LOPAD_LIMIT
77 f833 d0 f8 BNE lowerPad
78 f835
79 f835 ; Get everything ready for VSYNC
80 f835
81 f835 a9 00 LDA #NULL
82 f837 8d 00 00 STA VBLANK
83 f83a a9 00 LDA #VSYNC_SET
84 f83c 8d 00 00 STA WSYNC
85 f83f 4c 02 f8 JMP screenStart
86 f842
87 fffa ORG $FFFA
88 fffa
89 fffa 00 f8 DC.W start ; Something
90 fffc 00 f8 DC.W start ; Entrypoint
91 fffe 02 f8 DC.W screenStart ; Something else
92 10000
93 10000 END