设置了段地址就不对,为什么?
[BITS 16]
[ORG 0x0100]
JMP start
msg DB 'Hello!',13,10,0
start:
mov ax , 0x0000
mov ds , ax
MOV si, msg
call ShowMessage
ret
ShowMessage:
mov ah , 0x0e
mov bh , 0x00
mov bl , 0x07
call nextchar
ret
nextchar:
lodsb
or al , al
jz return
int 0x10
call nextchar
return:
ret
有mov ax , 0x0000
mov ds , ax
这两句就不对,没有就对,为什么?