alejo22 de Octubre del 2003
Preguntahola, estoy recien empesando a aprender asm.
pero no puede entender lo que esta mal en este codigo, si alguien me puede ayudar estaria muy agradecido =)
esto es lo que me dice el tasm :
<20> rotate count out of range
<21> rotate count out of range
.model tiny
.data
Y dw 0050h
x dw 0050h
.code
org 100h
start:
mov ax,13 ; mode = 13h
int 10h ; call bios service
mov ax,0A000h
mov es,ax
mov bx,[x]
mov dx,[y]
mov di,bx
mov bx,dx
shl dx,8
shl bx,6
add dx,bx
add di,dx
mov al,4
stosb
xor ax,ax ; function 00h - get a key
int 16h ; call BIOS service
mov ax,3 ; mode = 3
int 10h ; call BIOS service
mov ax,4C00h ; exit to DOS
int 21h
end start
pero no puede entender lo que esta mal en este codigo, si alguien me puede ayudar estaria muy agradecido =)
esto es lo que me dice el tasm :
<20> rotate count out of range
<21> rotate count out of range
.model tiny
.data
Y dw 0050h
x dw 0050h
.code
org 100h
start:
mov ax,13 ; mode = 13h
int 10h ; call bios service
mov ax,0A000h
mov es,ax
mov bx,[x]
mov dx,[y]
mov di,bx
mov bx,dx
shl dx,8
shl bx,6
add dx,bx
add di,dx
mov al,4
stosb
xor ax,ax ; function 00h - get a key
int 16h ; call BIOS service
mov ax,3 ; mode = 3
int 10h ; call BIOS service
mov ax,4C00h ; exit to DOS
int 21h
end start
