8086 MOV instruction error while using a constant value and memory location as operands, -


i trying use instruction mov [si],00h in 8086 assembly language. masm assembler gave me error saying: operand must have size. unable understand reason behind it.

also, syntax allowed? because while comparing memory location's content constant value, got same error again. i'm new 8086 programming, it's hard figure out.

masm complains because can not know kind of data @ address pointed @ si register. byte or word ?
that's why have provide size tag.

mov byte ptr [si], 0 

or

mov word ptr [si], 0 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -