~rabbits/lin6

ref: 6f5ac0e6cce46545ac8556594aa2864f695b8972 lin6/linted.asm -rw-r--r-- 613 bytes
6f5ac0e6Devine Lu Linvega * 1 year, 27 days ago
                                                                                
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
;; Variables

	.enum $0000 ; Directive comment
	pos_x                   .dsb 1     ; Variable comment
	pos_y                   .dsb 1
	.ende 

;; Constants

	SPRITE_Y                .equ $0200 ; Constant comment
	SPRITE_XY               .equ $0203 

RESET: 
	NOP 

Forever: 
	JMP Forever

NMI: 
	RTI 

;; Routines

CheckCollision: ; Routine comment
	LDA pos_y
	CMP #$88                           ; Opcode comment
	BCC @done
	; Inline comment
	LDA #$88
	STA pos_y
@done: 
	RTS 

;; Tables

Table: 
	.db $40,$46,$4c,$52,$58,$5e,$63,$68

;; Vectors

	.pad $FFFA
	.dw NMI
	.dw RESET
	.dw 0
	.incbin "src/sprite.chr"