repo.or.cz
/
NesEmulator.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Retirando os externs
[NesEmulator.git]
/
examples
/
hello.a65
blob
8b04410c5107eeb80db54a0d046cba6220260d4b
1
2
.text
3
*=$0000
4
5
.dsb $8000, $00
6
7
cmd_port = $4003
8
param_high = $4002
9
param_low = $4001
10
cmd_print = $01
11
cmd_exit = $ff
12
13
reset
14
lda #<hello_msg
15
sta param_low
16
lda #>hello_msg
17
sta param_high
18
lda #cmd_print
19
sta cmd_port
20
21
lda #cmd_exit
22
sta cmd_port
23
24
jmp reset
25
26
hello_msg
27
.byt "Hello, world!", 10, 0
28
29
interrupt
30
rti
31
32
33
nmi
34
rti
35
36
last_pos
37
38
.dsb $FFFA-last_pos, $00
39
.word nmi
40
.word reset
41
.word interrupt