Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 12th, 2006, 6:28 PM   #1
Edgar
Programmer
 
Edgar's Avatar
 
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0 Edgar is on a distinguished road
Wrong answer

Hi, guy's I took a test today and I got wrong answer. can you gyus tell me why? I chose true.

[HTML]True or False. Given that CL and DL contain SIGNED numbers the code fragment below correctly implements the following pseudocode.

Pseudocode: If (CL < DL) then
Call less

Code Fragment: CMP CL, DL
JAE @@COMMON
CALL LESS
@@COMMON
{RAP}

a.) True
b.) False
[/HTML]

Thank you.
Edgar is offline   Reply With Quote
Old Jul 12th, 2006, 6:54 PM   #2
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 4 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
JAE is used to deal with signed numbers. I think what you need is JGE
Wizard1988 is offline   Reply With Quote
Old Jul 12th, 2006, 6:59 PM   #3
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
>JAE is used to deal with signed numbers
Other way around. JAE is for unsigned values, JGE is for signed values.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Jul 12th, 2006, 7:00 PM   #4
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 4 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
Good catch Narue
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
Old Jul 12th, 2006, 7:04 PM   #5
Edgar
Programmer
 
Edgar's Avatar
 
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0 Edgar is on a distinguished road
Quote:
Originally Posted by Wizard1988
JAE is used to deal with signed numbers. I think what you need is JGE
nop, JAE is just a conditional branching only jump of is above or equal. You can use JAE with signed or unsigned numbers.
Edgar is offline   Reply With Quote
Old Jul 12th, 2006, 7:06 PM   #6
Wizard1988
Professional Programmer
 
Wizard1988's Avatar
 
Join Date: Oct 2005
Location: Chitown
Posts: 417
Rep Power: 4 Wizard1988 is on a distinguished road
Send a message via AIM to Wizard1988
You might be able to "use" it but it might not work the way you intend it to
__________________
JG-Webdesign
Wizard1988 is offline   Reply With Quote
Old Jul 12th, 2006, 7:17 PM   #7
Edgar
Programmer
 
Edgar's Avatar
 
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0 Edgar is on a distinguished road
Yep you can use it with Byte Word or DWord, with 16-bit real mode or 32-bit protected mode, Thanks for traying.
Edgar is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong with this code? titaniumdecoy Python 25 Jun 12th, 2006 12:46 PM
What religion do you have? nnxion Coder's Corner Lounge 302 May 23rd, 2006 10:48 AM
[Python] Simple Comment Stripper UnKnown X Show Off Your Open Source Projects 0 Feb 10th, 2006 7:57 AM
First Python Programme: Fibonacci Finder UnKnown X Python 2 Dec 15th, 2005 6:19 PM
What is wrong with this code? c0ldshadow Visual Basic .NET 5 Dec 5th, 2005 5:37 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:26 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC