6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 9:14 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jul 27, 2020 7:28 pm 
Offline

Joined: Thu Feb 27, 2020 9:15 am
Posts: 18
Hello

I have been wondering, what hidden registers does 6502 have if any?
By hidden registers i mean registers that are not available to the programmer at all, cant be directly modified or read by any instructions and are only used for internal CPU operations.
For example in a hypothetical CPU a hidden register would be a swap register used only to temporary hold register values when swapping between registers.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 27, 2020 8:17 pm 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
Not really. The diagram at the end of the Hanson paper shows all the registers and latches in the chip

https://projects.ncsu.edu/wcae//WCAE1/hanson.pdf

The 6502 sometimes uses ALU is temporary storage area during some operations but there aren't any hidden registers as such. Its pretty minimal in its design.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 27, 2020 9:01 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
One might consider the Instruction Register (IR) as being used only for internal operations. Unlike A X Y P and PC this register has no explicit instructions to modify it. But, as Bitwise said, it *is* noted in Hanson's diagram.

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


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