It is currently Sun May 26, 2019 8:01 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Feb 27, 2011 1:16 pm 
Offline

Joined: Sat Feb 12, 2011 10:57 am
Posts: 4
The read me said to post Unknown Erros to the forum, so the following is the error I'm getting when testing my emulation.


6502 Timing Test (16 Seconds)
Official Instructions Only
Fail OP :$00
Unknown Error
$019B

If you have any advice/knowledge on what could possibly be wrong with my emulation that would cause this error, that would be great if you could share that to me.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 27, 2011 5:23 pm 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3182
Location: Brazil
- It's the BRK. Do you know the BRK timing diagram?
Code:
        1    PC     R  fetch opcode, increment PC
        2    PC     R  read next instruction byte (and throw it away),
                       increment PC
        3  $0100,S  W  push PCH on stack, decrement S
        4  $0100,S  W  push PCL on stack, decrement S
        5  $0100,S  W  push P on stack (with B flag set), decrement S
        6   $FFFE   R  fetch PCL
        7   $FFFF   R  fetch PCH


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 20, 2011 1:29 pm 
Offline

Joined: Sat Feb 12, 2011 10:57 am
Posts: 4
I do not know the BRK timing diagram. Can you point me in the right direction to find more infomation about it?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2011 6:19 am 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3182
Location: Brazil
Perhaps I wasn't crystal clear. Look at my message: it has how the BRK works, cycle by cycle (first column at left).

_________________
Zepper
RockNES developer


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2011 7:05 am 
Offline

Joined: Sat Feb 12, 2011 10:57 am
Posts: 4
Thank you. I didn't understand what the code was representing originally. Now, it makes sense to me.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2011 8:09 am 
Offline
User avatar

Joined: Fri Sep 24, 2010 4:41 pm
Posts: 193
Location: California, USA
Zepper wrote:
...the BRK timing diagram


That's pretty cool, is there similar diagrams for all the instructions, or did you just create this for this case?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2011 8:26 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 21403
Location: NE Indiana, USA (NTSC)
I don't know about the 6502 data sheet (don't have it in front of me), but the 65C816 data sheet that I often referred to back when I coded for an Apple IIGS has similar diagrams.

_________________
Pin Eight | Twitter | GitHub | Patreon


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2011 8:55 am 
Offline

Joined: Thu Jul 13, 2006 3:15 pm
Posts: 177
About halfway down this document it looks to describe most of what is wanted:

http://nesdev.com/6502_cpu.txt

Al


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2011 10:55 am 
Offline

Joined: Wed Jul 04, 2007 8:40 am
Posts: 36
Also useful:

http://users.telenet.be/kim1-6502/6502/hwman.html#AA
Appendix A - SUMMARY OF SINGLE CYCLE EXECUTION


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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:  
Powered by phpBB® Forum Software © phpBB Group