assembly - 8086 TASM: Illegal Indexing Mode -


this question has answer here:

i writing 8086 assembly program needs compile through tasm v3.1. running error can not seem fix.

my data segment has following set purposes of keyboard input:

parao label byte   maxo db 5   acto db ?   datao db 5 dup('$') 

what trying first character entered, first byte of datao:

lea dx, datao mov bl, [dx] 

however, when attempt compile, error:

**error** h5.asm(152) illegal indexing mode 

line 152 "mov bl, [dx]"

any appreciated. if matters, running tasm through dosbox (my laptop running 64-bit win7) google hasn't come helpful answers. can post entirety of code if necessary.

pretty sure reason can't use dx register pointer.

try instead using [si], [di] or [bx]:

 lea bx, data0  mov al, [bx] 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -