EASy68K  
It is currently Sun Jul 05, 2020 11:37 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Sim68K NEGX V Flag
PostPosted: Thu Jun 18, 2020 8:05 pm 
Offline

Joined: Fri May 29, 2020 6:12 pm
Posts: 4
Hi,

I was wondering if Sim68K should be setting the V flag since there was a change in the sign in each example?

Thanks,
-Ted


TEST_NEGX:
move.l #$00008000 , d0
move.l #$80000000 , d1

move #$10 , CCR * ### SET the X Flag ###
negx.w d0

move #$10 , CCR * ### SET the X Flag ###
negx.l d1


Top
 Profile  
 
 Post subject: Re: Sim68K NEGX V Flag
PostPosted: Mon Jun 22, 2020 1:22 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1126
V flag is only set if there are not enough bits in the destination to store the result. I don't think that is the case with this code.

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