NESDev and Strangulation Records messageboards
Forum Index | FAQ | New User | Login | Search

Previous ThreadView All ThreadsNext Thread*Show in Threaded Mode


Subjectinc instruction new  
Posted bypulper
Posted on7/2/04 10:10 PM
From IP132.241.65.201  



When you use the instruction inc, like
inc $14
Does this increment the actual value stored at $14?
Also, if the value rolls over from $FF to 0, does that set the 0 flag?
Thanks.

-Pulper


SubjectRe: inc instruction  
Posted byDisch
Posted on7/2/04 10:29 PM
From IP66.82.9.61  



> Does this increment the actual value stored at $14?

Yes

> Also, if the value rolls over from $FF to 0, does that set the 0 flag?

Yes. N is also set/cleared according to the high bit of the result. C is not affected.




SubjectRe: inc instruction new  
Posted bypulper
Posted on7/3/04 01:34 AM
From IP132.241.64.140  



Thank you

-Pulper


Previous ThreadView All ThreadsNext Thread*Show in Threaded Mode
Jump to

Memblers' homepage             Contact Me

Forums powered by WWWThreads Demo