EASy68K  
It is currently Fri Jul 21, 2017 10:50 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SBCD
PostPosted: Mon Feb 16, 2009 9:51 pm 
Offline

Joined: Mon Jan 26, 2009 3:13 am
Posts: 32
Location: Monroe, MI
it seems that SBCD does not set the z flag as the reference guide claims - it always remains at zero

_________________
The Age Old Question: To Be or Not To Be
Finally we have the answer: 2B | !2B = FF


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 17, 2009 2:11 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1039
from EASy6K Help on SBCD:

"The Z flag is cleared if the result is not 0. This way, you can see if the answer, after a series of subtractions, is zero or not. First, you have to set the Z flag (done by comparing a register with itself). Then do the subtraction, and if the Z flag is set, the BCD number is zero."

The Z flag is not set by the SBCD instruction. It is cleared or unchanged.

_________________
Prof. Kelly


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

All times are UTC


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