[Pascal] Przesuwanie bitów [shl, shr]

0

Mam mały problem a mianowicie jak chcĘ uzyc instrukcji shl we wstawce assemblerowej w pascalu to wyskakuje mi blad
Error 159: 286/287 instructions are not enabled
Nie wiem czemu się tak dzieje. Kod programu następujący"

procedure piksel(x,y:word;kolor:byte);
begin
asm
mov ax,y
mov di, ax
shl ax, 8      { <=== tu wyskakuje bład }
shl di, 6
add di, ax
add di, x
mov ax, 0a000h
mov es, ax
mov al,kolor
mov byte ptr es:[di], al
end;
end;

0

Wystarczy przeczytać kod błędu.

Options -> Compiler -> Generic code -> Zaznacz 286 instructions
Options -> Compiler -> Numeric processing -> Zaznacz 8087/80287, Emulation

1 użytkowników online, w tym zalogowanych: 0, gości: 1