6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Apr 29, 2024 9:10 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Oct 29, 2021 8:16 am 
Offline

Joined: Sun Oct 03, 2021 2:17 am
Posts: 114
The Wikipedia page about the 65816 has an infobox containing this:

Quote:
Data width
8 (external)
16 (internal)


External and internal to what? Is it trying to say that memory is fetched from RAM in 8 bit chunks but registers inside the 65816 are 16 bit?


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 29, 2021 8:30 am 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1399
Location: Scotland
jeffythedragonslayer wrote:
The Wikipedia page about the 65816 has an infobox containing this:

Quote:
Data width
8 (external)
16 (internal)


External and internal to what? Is it trying to say that memory is fetched from RAM in 8 bit chunks but registers inside the 65816 are 16 bit?


Essentially yes.

There are flags to run on/off the 8/16 bit access/transfer mechanisms, so it can all by 8-bit or all 16-bit or some 8 and some 16 but when reading or writing a 16-bit value from RAM, then 2 RAM accesses are needed.

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 29, 2021 8:33 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8428
Location: Southern California
jeffythedragonslayer, yes; in native mode, you can set the accumulator to 8 or 16 bits, and you can set the index registers to 8 or 16 bits. So if you have the accumulator set to 16 bits wide for example, and you do an LDA foobar, it will put the byte at foobar in the low 8 bits of the accumulator, and in the next cycle grab the content of foobar+1 and put that in the high 8 bits of the accumulator. INC foobar will do a 16-bit (two-byte) increment of the variable at foobar. See my article about the common misunderstandings surrounding, and the attractions of, the 65816.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


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 16 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: