It is currently Tue Oct 17, 2017 5:25 pm

All times are UTC - 7 hours



Forum rules


Related:



Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: More SNES questions
PostPosted: Fri Oct 21, 2016 2:38 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1770
Location: DIGDUG
Quote:
There's no WRAM in bank $ff...


I meant $7f.

Re:Espozo...thanks, that's very helpful.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
 Post subject: Re: More SNES questions
PostPosted: Fri Oct 28, 2016 11:54 am 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1770
Location: DIGDUG
Follow up...
I was able to figure out how to get the assembler (ca65) to do everything I wanted.

Labels put in the 'zeropage' segment correctly assemble as 8-bit. (Assuming DP = 0000)

All other labels assembled as 16-bit. If you use a label in another bank it needs an f: to get a long address.

All addresses written out in numbers take the bit-depth you write. Example LDA $812345 correctly assembles into a long address. LDA $01 correctly assembles into a DP address.

LDA #01 immediate, varies depending on directives...
.a16 (A9 01 00)
or .a8 (A9 01)

I think I'm figuring it out. Baby steps.

Edit - I'm thinking of trying byuu's SPC assembler...at some point.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: Troglodyte, Yahoo [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group