was stimmt an den Zeilen
Code: Alles auswählen
LEA dx,str_buffer
MOV si,dh
MOV si,dl
NASM meldet: Invalid combination of opcode and operands. O_o
Vllt könnt ihr ja dem armen Dummkopf der grade verwirrt ist, helfen...

greetz,
AndyX
Code: Alles auswählen
LEA dx,str_buffer
MOV si,dh
MOV si,dl
Code: Alles auswählen
MOV SI, DH
MOV SI, DL
Code: Alles auswählen
MOV SI, DX
Code: Alles auswählen
MOV dh,str_end
MOV dl,str_buffer
CALL cst
OR ax,ax
JNZ rebootit
;------------------- CompareString
cst:
loopcst:
MOV si,dh
LODSB
INC dh
MOV bh,al
MOV si,dl
LODSB
INC dl
MOV bl,al
CMP bh,bl
JNE notEqual
OR bh,bl
JZ equal
JMP loopcst
notEqual:
MOV ax,0000h
RET
equal:
MOV ax,1111h
RET