Dan Moos wrote:
Damn, that's clever
Yes, Mike's way is much better. Doh! -- it's what I should have suggested. Somebody musta slipped me some de-caff !
Dan, can I ask once again for better detail, please? I was hoping to learn all the pertinent memory addresses, meaning the actual hex values for every label. For instance I'd like to know the address at which each routine resides (including the ISR). I'm half wondering if there might be a collision of some kind, or something falling victim to a rogue write. That's why I'm so insistent about addresses.
Also, what you posted
above reveals the UART and VIA addresses but not the addresses of the zero-page variables. For them to be known we need to see an ORG statement. Was the ORG omitted entirely, or merely trimmed off when you prepared the post? Instead of posting snippets, I'd much prefer that you post EVERYTHING. And if some tidying is in order (or even a rewrite, as you say) then that'll certainly benefit
you as well as those trying to assist.
One more hint: if you post a
list file generated by the assembler, that'll explicitly show all the addresses -- and the hex values of the code and data too. Sometimes that extra info is helpful.
-- Jeff
_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html