Re: how to decide the value of SF



<spamtrap@xxxxxxxxxx> wrote in message
news:1161530555.058192.245010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
if sub ax,ax(two numbers compared,the resulst is neither a plus nor
a negative )
how to determine the value of SF?
thanks for your help...

The Sign Flag (SF) is a copy of the highest bit in the destination register.
So it is zero here, which is intuitively correct -- 0 is not regarded a
negative number.

[Jongware]


.



Relevant Pages

  • Re: Do you think 12:00pm is noon or midnight?
    ... also have a "branch on greater" which explicitly excludes zero. ... I am an assembly language programmer, and I definitely consider 0 to ... I do program some RISC micros, of course, but I have programmed others ... on, there a zero flag as well as a sign flag, and the conditional ...
    (alt.usage.english)
  • Re: Encyption of two 256-blocks
    ... Use a wide-block mode. ... followed by zero of more bytes. ... Now start with a flag F set to zero. ... an infinite string of zeros. ...
    (sci.crypt)
  • Re: Flags in CCR register after...
    ... TSTA command tests register A for zero or minus -> A - $00 ... because a sub of 0 doesn't generate an overflow, ... Flag C remains unchanged. ...
    (alt.lang.asm)
  • Re: Value of Flags
    ... Carry, zero, overflow, sign, even parity and half- ... Since the resulting value is not zero we set the zero flag also to 1 ... represent negative values in a twos complement 8-bit machine. ...
    (comp.arch)
  • Re: [RFC][PATCH 2/9] deadlock prevention core
    ... reserve usage seems like papering over bad accounting. ... and again then actually freeing the skb. ... more sense to check for the IFF_MEMALLOC flag. ... cleared and the counter is set to zero manually. ...
    (Linux-Kernel)