6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Jul 05, 2024 9:37 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Absolute addressing
PostPosted: Mon Sep 11, 2006 12:51 pm 
Offline

Joined: Mon Sep 11, 2006 10:43 am
Posts: 1
Hi I am relatively new and would be grateful if somebody wouldnt mind answering a few questions i have. Sorry if this is not the correct forum.

My question is related to absolute addressing and where the values are stored. Maybe an example will make it clearer

LDA $1234

I assume the processor fetches the LSB then stores it somewhere then fetches the MSB and also stores it before shifting the MSB 8 places then ORing it to get the full address to get data from.

I may be wrong in my assumptions but the underlying question of how does the fetch and store work would still remain.

Thanks

Dan


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 11, 2006 2:13 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 9:02 pm
Posts: 1696
Location: Sacramento, CA
This might help. Go here and download the tech doc for the WDC 65C02 (dated Feb 2004):

http://www.westerndesigncenter.com/wdc/ ... 65c02s.pdf

Now, on page 7, Figure 2-1, there is a function block marked "Data Latch", next to the data bus buffer. It shows a link to the internal address bus. Therefore, one could interpret that to mean there is a 16 bit latch (or 2 8bit ones) inside the "Data Latch" that would hold the LSB and MSB during the Fetch operation. Its makes sense that this same circuitry is used for zero page addressing also (with the MSB latch being set to $00).

Hope that helps.

Daryl


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Sep 11, 2006 10:26 pm 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
The processor does not shift and OR anything, because that would be time wasteful. Plus, if you have two 8-bit latches fed from a common source but with independent outputs, you can just use them 'as is.' So yes, the 6502 does store the half-addresses internally, but they're physically separate registers, attached physically to their respective address pins. There's no need to OR anything.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 41 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: