The task is to rearrange the numbers in the reverse order, an array of bytes is given. I start via dos, there are no errors in the program, but it does not work that way, that is, the numbers are not rearranged. Look where it’s an error.
data segment kols db 10 mass db 0,1,2,3,4,5,6,7,8,9 data ebds code segment assume cs:code,ds:code org 100h start: push cs pop ds ; меняем местами mov si,offset mass ; запоминаем адрес начала массива с числами mov bh,0 mov bl,cols add bx,si sub bx,i go: mov al,[si] mov ah,[bx] mov [si],ah mov[bx],al add si,1 sub bx,1 cmp si,bx jl go mov ah,4ch mov ah,31h mov al,0 int 21,h code ends end start
data ebds,sub bx,i,int 21,h. As such, the program is not compiled. - insolor