Das muß auch anders gehen. Ich habe es jetzt so probiert:
Code:
data segment
dummy DW 512 dup ($)
data ends
code segment
Start:
mov ax, 5
add ax, 2
lea si, ax
lea di, dx
Schleife:
lodsb
stosb
loop Schleife
cmp dh, 0
je Ausgabe
Ausgabe:
mov dummy, ax
mov dx, offset dummy
mov ah, 9h
int 21h
mov ax, 4C00h
int 21h
code ends
end Start
Bekomme aber:
lea si, ax
**Error** build.bat(13) Illegal immediate
lea di, dx
**Error** build.bat(14) Illegal immediate
loop Schleife
**Error** build.bat(18) Near jump or call to different CS
je Ausgabe
**Error** build.bat(20) Near jump or call to different CS
mov dummy, ax
**Error** build.bat(22) Can't address with currently ASSUMEd segment registers