r/AskComputerScience • u/Excellent_Two_9551 • Apr 18 '26
Difference between Program counters and Memory address registers?
What are the differences?
8
Upvotes
r/AskComputerScience • u/Excellent_Two_9551 • Apr 18 '26
What are the differences?
View all comments
Show parent comment
1
u/flatfinger Apr 20 '26
What do you think about the 68000's style of having separate address and data registers? The only downside I can see to such a design is that it makes it impossible for a C implementation to efficiently pass arguments in registers while allowing literal zeroes to be treated as null pointers when passed to non-prototyped functions that expect pointers, but that downside was sufficient back in the day to prevent C compilers for the 68000 from using efficient calling conventions for most function calls.