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

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Fri Sep 20, 2013 7:44 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
Quote:
r1 is synonymous for the 8-bit accumulator I suppose


Yes, r1 refers to the accumulator, the lower eight bits are the eight bit accumulator. The load byte instruction doesn't have and accumulator form. So it has to be specified as r1.

I'm pretty sure PHA/PLA are working properly. All the memory loads go through a single state. Most of the stores (except jsr, ) go through a single store state.

I tried increasing the clock frequency to see if I could make the problem worse, but it didn't have an affect.

The V_OUTP routine calls DisplayChar which is outputting a character to a text display.
Hmm, I see now that I don't mask off the high order bits when DisplayChar is called. I suppose there could be garbage in the high order bits when switching from eight bit mode. I'll have to try masking off the high order bits.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 20, 2013 8:01 pm 
Offline
User avatar

Joined: Sun Dec 29, 2002 8:56 pm
Posts: 460
Location: Canada
Masking off high order bits fixed the problem. Strange that there was only the occasional problem when interrupts were enabled.

_________________
http://www.finitron.ca


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 21, 2013 3:45 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1949
Location: Sacramento, CA, USA
Rob Finch wrote:
Masking off high order bits fixed the problem.


I think that I'm starting to see a pattern in your problems. I hope that no other bugs turn up, but if they do, the first thing on the list should probably be to check if bits 8 to 31 are fouling the works somehow, somewhere.

Good luck.

Mike


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

All times are UTC


Who is online

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