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
Thanks!
Visit the Asteroid code project at: http://www.guddler.co.uk
|
|
0
|
|
|
|
Reply
|
Displacer
|
10/30/2005 9:27:59 PM |
|
On Sun, 30 Oct 2005 21:27:59 +0000 (UTC), Displacer
<spamtrap@crayne.org> 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.
|
|
0
|
|
|
|
Reply
|
spamtrap
|
10/31/2005 1:47:35 AM
|
|
On Mon, 31 Oct 2005 01:47:35 +0000 (UTC), spamtrap@crayne.org wrote:
>On Sun, 30 Oct 2005 21:27:59 +0000 (UTC), Displacer
><spamtrap@crayne.org> 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!
Thanks, I knew there were some bits that were transfered to the flags,
but couldn't remember which ones. So JS jumps if its a negative
number. I would have found this myself on google, but JS brings up
waves and waves of Java Script stuff, and there isn't much out there
on that opcode anyway.
|
|
0
|
|
|
|
Reply
|
Displacer
|
10/31/2005 6:42:53 PM
|
|
Displacer 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
The sign flag is set to the high bit of the result of the AND of the
two operands. The overflow (and carry) flags are always cleared.
|
|
0
|
|
|
|
Reply
|
robertwessel2
|
10/31/2005 9:14:00 PM
|
|
|
3 Replies
335 Views
(page loaded in 0.084 seconds)
Similiar Articles: TEST and JS Question - comp.lang.asm.x86Hi, 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 ca... JavaScript - prototype - check for browser compatibility - comp ...prototype.js has its own author you should address your question to. On an abstract level: "How to ... TEST and JS Question - comp.lang.asm.x86 JavaScript - prototype ... Script for a quizz - comp.lang.javascriptTEST and JS Question - comp.lang.asm.x86 Script for a quizz - comp.lang.javascript I want to create a quizz, where a page loads the questions (currently in HTML), and ... Password Strength Regular Expression - comp.lang.javascript ...TEST and JS Question - comp.lang.asm.x86 Password Strength Regular Expression - comp.lang.javascript ... <script type='text/javascript'> var pw='a2' alert(/[a-z]/i.test(pw ... Need help figuring out how to write the script for this problem ...TEST and JS Question - comp.lang.asm.x86... help, here's the bit of code I need help figuring out ... brings up waves and waves of Java Script stuff, and there isn't much ... IE problem with open.window - comp.lang.javascript... Post Question | Groups | ... DU > Properties of selected Dataset</a> > <br /> > </body> > </html> > > test.js ... Solutions Manual & Test Banks - comp.lang.java.programmer ...... Post Question | Groups ... How To Think Straight About Psychology, 9th Edition, Stanovich, Test Bank HTML and JavaScript ... Safari and javascript - comp.lang.javascript... and its add-on : "Web developer" to fix your pb of JS ... consistently on all platforms so use that and just test ... But back to the question... how to debug in Sarari: <URL ... JSON objects sent as a http request - comp.lang.java.help ...Hi, I'm not sure if this question even makes sense, so ... and I want to call it from an outside test using Html ... How to similate HTTP POST request by JavaScript? - comp.lang ... Test Banks & Solutions Manual - comp.lang.java.programmer ...... Post Question | Groups ... HTML: Comprehensive, 4th Edition 2010, Patrick Carey, Test Bank New Perspectives on JavaScript and ... JavaScript Quiz - W3Schools Online Web TutorialsThe test contains 20 questions and there is no time limit. The test is not official, it's just a nice way to see how much you know, or don't know, about JavaScript. ODESK TEST SOLUTIONSyou can find Odesk test solution,odesk test question and answers like html css php seo, Jacascript, cover letters, joomla wordpress 7/29/2012 8:00:33 PM
|