Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Feb 8th, 2005, 8:40 PM   #21
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Well, for a byte divisor, the quotient is stored in AL and the remainder in AH, and for a word divisor, the quotient is stored in AX and the remainder in DX.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Feb 9th, 2005, 1:39 PM   #22
oxyi
Newbie
 
Join Date: Jan 2005
Posts: 17
Rep Power: 0 oxyi is on a distinguished road
is this coding correct ?


move ebx , [ebx/2] // evx = ebx/2 to find middle of array
mov ecx, eax+ebx // ecx now point to the middle of the array
cmp [ecx], key // compare value in the ecx with key
...


I am not sure if i had the above code right, doesn't seem like it,
but thats the main part i want to get it to work,

can someone shine some light ? thx
oxyi 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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:25 AM.

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