Re: TEST and JS Question



On Sun, 30 Oct 2005 21:27:59 +0000 (UTC), Displacer
<spamtrap@xxxxxxxxxx> wrote:

>Hi, been awhile since I've done asm . I know the test instruction just
>does a and of the two regs, but it also sets flags like overflow and
>sign. I can't for the life of me remember what sets the sign flag, so
>if someone would help, here's the bit of code I need help figuring out
>what its doing:
>
>test al,al
>js somewhere


If the H/O bit of al is set, that is the sign. Any of: (0x80 - 0xff).

If effect, the h/o bit of al is copied to the sign flag.

>
>
>Thanks!
>Visit the Asteroid code project at: http://www.guddler.co.uk

--
ArarghMail510 at [drop the 'http://www.' from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the garbage from the reply address.

.