I looked up that addressing mode in the 65816 manual, and if I were accessing a raw address I could do something like lda $048000, x
But it's not quite clear how to do the same with a label. What does the syntax look like? I'm using the ca65 assembler if it's specific to that.
Also, I probably ...
Search found 3 matches
- Fri May 17, 2019 7:49 pm
- Forum: Programming
- Topic: 65816 - How to do load in an arbitrary bank?
- Replies: 4
- Views: 1025
- Fri May 17, 2019 7:06 pm
- Forum: Programming
- Topic: 65816 - How to do load in an arbitrary bank?
- Replies: 4
- Views: 1025
65816 - How to do load in an arbitrary bank?
So I'm trying to do lda SPCData1, x , where SPCData1 is a label to data that starts at address $048000 (unfortunately that can't be moved around).
When I look at the disassembly however, I see lda $8000,x , and it gets the data at $008000. Basically, it's accessing the wrong bank
According to ...
When I look at the disassembly however, I see lda $8000,x , and it gets the data at $008000. Basically, it's accessing the wrong bank
According to ...
- Wed Apr 10, 2019 8:09 pm
- Forum: Programming
- Topic: How does this piece of 65C816 assembly code work?
- Replies: 8
- Views: 1401
How does this piece of 65C816 assembly code work?
I am working with assembly for the 65C816, specifically to make a SNES ROM. In a guide I found online there was some code to set the background color. The SNES supports 16-bit color so the format is as such:
0bbbbbgggggrrrrr
It said that the $2122 refers to the Color Data Register. I know that ...
0bbbbbgggggrrrrr
It said that the $2122 refers to the Color Data Register. I know that ...