Archived

This topic is now archived and is closed to further replies.

some asm problems

This topic is 5117 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i get these errors when i compile illegal reference to 16-bit data in ''second operand'' and the code is this _asm mov ch,[si] also im getting this error too operand size conflict and the code is this _asm mov ds,[sourceseg] anyone know how i can fix these errors?

Share this post


Link to post
Share on other sites
Typically, you need to specify the size of the operand:

mov al, byte ptr [esi]
mov ax, word ptr [esi]
mov eax, dword ptr [esi]

The specific syntax for how to specify the operand varies by assembler, so check your documentation.

Share this post


Link to post
Share on other sites