~rabbits/lin6

ref: dde1868e1a91cefcd2bc0bf6dc4fa17cb26ae1e4 lin6/linted.asm -rw-r--r-- 648 bytes
dde1868eDevine Lu Linvega Removed old comments 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"