不好意思
但我直到现在还是没有办法成功地执行任何一个课本第十五章的范例
甚至连编译都编不过
以下是我的code 和课本范例(p494)一模一样
TITLE MASM Template (main.asm)
INCLUDE Irvine16.inc
.code
main PROC
mov ax,@data
mov ds,ax
call clrScr
L1:
mov ah,10h
int 16h
call DumpRegs
cmp al,1Bh
jne L1
call clrscr
exit
main ENDP
END main
编不过 error message 如下:
1> Assembling: .\main.asm
1>.\main.asm(28) : error A2006: undefined symbol : DGROUP
1>Project : error PRJ0019: A tool returned an error code from "Assembling..."
1>Build log was saved at
"file://c:\Irvine\examples\Project_sample\Debug\BuildLog.htm"
1>Project - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
第28行其实是 mov ax,@data 那行
但我根本没有DGROUP这个变量
事实上 我根本没有宣告任何变量
若是把 mov ax,@data
mov ds,ax
这两行删掉
则 error messge 变成:
1>Assembling...
1> Assembling: .\main.asm
1>Linking...
1>main.obj : fatal error LNK1190: invalid fixup found, type 0x0002
1>Build log was saved at
"file://c:\Irvine\examples\Project_sample\Debug\BuildLog.htm"
1>Project - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
请问我到底要怎么做 才能成功地执行课本范例呢?