TITLE tema1
.model small
.stack 100h
.DATA
index1 DB 8
index2 DB 4
value DB 33h
array1 DB 01h, 02h, 03h, 04h, 05h, 06h, 07h, 08h, 09h, 0Ah
array2 DB 11h, 12h, 13h, 14h, 15h, 16h, 17h, 18h, 19h, 1Ah
.CODE
begin:
mov ax,@DATA
mov ds,ax
mov bx,0
mov al,value
mov si,index1
mov array1[bx+si],al
mov si,index2
mov array2[bx+si],al
mov ax,4c00h
int 21h
end begin
The compiler says that the operand types do not match. I don't know how to approach this code.
The register bx is incremented with 0 at the start and si register is incremented twice with the values of index1 and index2. When I try to change the value of bx+si in the array I get an error about operand types not matching.