6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 6:57 pm

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Nov 21, 2022 11:58 am 
Offline
User avatar

Joined: Tue Aug 11, 2020 3:45 am
Posts: 311
Location: A magnetic field
jeffythedragonslayer on Sun 7 Aug 2022 wrote:
quite symmetric


Normally, I'm quite sympathetic to your excellent questions. This time I'm going to say you've spent too long in front of a computer. Pre-decrement and post-increment are a convenient pairing. Post-decrement and pre-increment are a less convenient pairing. They are somewhat symmetric but not symmetric enough.

While on the topic of hardware stack, the timings annoy me. Some people write 6502 assembly to use zero page when they could use stack. It is easier to prototype an algorithm using zero page and ordering operations to use stack is an extra step in an already complicated process. However, the result allows recursive algorithms - or use of subroutines within interrupt. Even if stack usage were no faster than using zero page, a program which uses stack is smaller because it omits the one byte address operands. However, we are in a situation where stack timings are asymmetrical, there is minimal advantage to using stack, legacy software greatly neglects stack and therefore there is minimal advantage to improving stack timing.

_________________
Modules | Processors | Boards | Boxes | Beep, Beep! I'm a sheep!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

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