File: c02.asm

package info (click to toggle)
xa 2.4.1-0.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,356 kB
  • sloc: ansic: 8,585; asm: 845; makefile: 755; perl: 116; sh: 53
file content (33 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (6)
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
	.word $0400
	* = $0400

q = $0005
fizz
/* these should be optimized to zero page */
	sta $05
	sta $0005
	sta q
	dec q
	inc q
/* these should not */
	stx !$0005
	sta !q
	sta $8765
	stx $919c
	inc !q
	inc; a
	dec $8342
	dec; a
	sta $4431
	inc $79e0
	sty $1b0a
	jsr $ffe4
	jmp $fce2
	jmp breadbox
	lsr $2020
	rts


breadbox	rts
		bne fizz
		rts