Re: TEST and JS Question
- From: spamtrap@xxxxxxxxxx
- Date: Mon, 31 Oct 2005 01:47:35 +0000 (UTC)
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.
.
- Follow-Ups:
- Re: TEST and JS Question
- From: Displacer
- Re: TEST and JS Question
- References:
- TEST and JS Question
- From: Displacer
- TEST and JS Question
- Prev by Date: Re: Self-modifying code on SMP operating systems
- Next by Date: Re: improve strlen
- Previous by thread: TEST and JS Question
- Next by thread: Re: TEST and JS Question
- Index(es):