News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Urgent Intel help

Started by Jalano, February 03, 2007, 08:38:01 PM

Previous topic - Next topic

eek

 :lol
Declare table as bytes IMHO, as it was originally

QuoteThe correct value shows up in si  and bp, but nothing goes into al.   At the same time, the value that goes into  si may look correct because the table goes in ascending order,  but when I changed the values in the table,  It was not actually pointing at the values "in" the table

Since we can't see all your code try some code segment overrides at the tricky bit, not sure of the syntax you guys use.

cs:mov al,[bx+si]   kinda thing


you could also try:

mov bp,TABLE
mov dl,[REM]
xor dh,dh
add bp,dx
mov si,bp
mov al,[si]

My previous feeble attempt added the word at REM to bp instead of the byte.

Jalano

Thanks alot.  It works.  I'm now just trying to fix a loop problem.  After putting in key entries for the division, and it points and displays, after about 5 loops,  it starts displaying weird displacement values.  I think I should be able to fix that myself.  Thanks.

Jalano

The last two solutions are good.

Jalano

Actually, the last one still gives some problems, so I will stick with Sinsi's solution.  Thanks.