6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Sep 22, 2024 10:14 am

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Thu Jun 25, 2015 10:35 pm 
Offline

Joined: Sun Oct 14, 2012 7:30 pm
Posts: 107
There is an error in the information on this website concerning interrupts. Please see: http://homepage.ntlworld.com/cyborgsyst ... 02.htm#INT

Look at the last line under the "How can I DISable Interrupts?" section:

# This is done with the STI instruction.

Looks like someone was thinking 80x86 when they wrote that. :)


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 26, 2015 4:54 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8390
Location: Midwestern USA
JimDrew wrote:
There is an error in the information on this website concerning interrupts. Please see: http://homepage.ntlworld.com/cyborgsyst ... 02.htm#INT

Look at the last line under the "How can I DISable Interrupts?" section:

# This is done with the STI instruction.

Looks like someone was thinking 80x86 when they wrote that. :)

That page has a number of errors that have persisted for a number of years. Better to read Garth's interrupt primer, which is accurate.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re:
PostPosted: Fri Jun 26, 2015 6:05 am 
Offline
User avatar

Joined: Tue Feb 10, 2015 5:27 pm
Posts: 80
Location: Germany
The SO pin:
Thowllly wrote:
Input, the pin effect the register. I think it's edge sensitive, but don't remember which edge.


The falling edge of SO pin will set the oVerflow bit.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 29, 2015 6:51 am 
Offline

Joined: Mon Sep 28, 2015 6:14 pm
Posts: 1
I was reading the instruction reference of ASL while I noticed that the example is incorrect.

The pseudocode of the logic is saying that the highest bit is shifted into the Carry flag (P.C = B.7), but the below example is setting Carry to zero, while the highest bit before the shift operation was one.

Code:
 Before:    
 P.C = ?   B = 1 1 1 0  1 1 1 0

 After:
 P.C = 0   B = 1 1 0 1  1 1 0 0


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 29, 2015 8:44 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
Quite right. I wonder if they were experimenting using a buggy emulator.
Here's the proof:
http://visual6502.org/JSSim/expert.html ... a9ee0aeaea


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

All times are UTC


Who is online

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