6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 9:18 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: TTL 6502
PostPosted: Tue Apr 04, 2017 9:55 am 
Offline

Joined: Tue Apr 04, 2017 9:23 am
Posts: 1
I have decided to build a cpu in ttl and basing the design on the 6502 micro.
I have read the datasheet and it says the ALU is not used to inc/dec the program counter!
Does this mean there is separate ALU dedicated to operations on the PC.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502
PostPosted: Tue Apr 04, 2017 10:15 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
I wouldn't call it a real ALU. The PC can increment and load absolute addresses. Relative offsets (branches) are calculated by the ALU.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502
PostPosted: Tue Apr 04, 2017 10:36 am 
Online
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Indeed - the ALU is limited to 8 bits, which is why some operations have to take an extra cycle when there's a carry. For the PC incrementer, it must be able to operate across the full 16 bits in a single cycle. As it happens, incrementing is simpler than general arithmetic, and it has a couple of lookahead gates too to speed up the circuit.

Edit: see also this previous discussion
viewtopic.php?p=41205#p41205


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