help me ca65 for snes
This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
NESdev BBS
>
Other
>
Other Retro Dev
>
SNESdev
help me ca65 for snes
by
zgh4000
on
2006-08-26
(
#16599
)
x816
.mem
.index
Ca65 Without these instructions!
help me!
example:
ldx #lable
error: range over
by
tepples
on
2006-08-26
(
#16604
)
The NES has a 6502, not a 65C02 or 65C816. Put the
.p02
keyword at the top of source to specify that you are coding for a 6502.
The 6502 has only 8-bit registers. You'll need to load an address into two labels, using the
<
(get bits 7-0) and
>
(get bits 15-8) operators:
Code:
lda #<label
sta 0
lda #>label
sta 1
ldy
lda (0),y
If you want Super NES help, please ask in
SNESdev
.
by
zgh4000
on
2006-08-26
(
#16610
)
Ca65 support 65816 !
"all valid 65618 mnemonics when in 65816 mode (after the .P816 command was given)."
B:\SFC开发>.\bin\ca65 --cpu 65816 demo.asm
demo.asm(14): Error: Range error (4660 not in [0..255])
by
zgh4000
on
2006-08-26
(
#16613
)
I already solved!
.A16
.A8
.I16
.I8