masm5汇编下出现的错误,大家帮忙看看~
assume cs:codesg,ds:datasg,cs:stacksg
datasgsegment
stu struct
namedb(?)
scoredb(?)
stuends
stu1stu<'a',99>
stu2stu<'b',81>
stu3stu<'c',72>
stu4stu<'d',43>
stu5stu<'e',57>
stu6stu<'f',100>
stu7stu<'g',51>
stu8stu<'h',92>
input1 db 'student:'
output1db ''s score is:'
warm1db'there is not a student called'
datasg ends
stacksgsegment
db 100dup (0)
stacksgends
codesgsegment
start
mov ax,datasg
mov ax,4c00h
int 21h
codesgends
做简单的调试的时候都出现问题,在cross-reference那个之后按回车,就光标进行不下去了,为什么呢?
end start
[解决办法]
start没冒号
[解决办法]
struct多了个‘t’
name改个名
assume 中有了两个cs了
结构赋值中单引号内字符后不能有空格
[解决办法]
还有output1 db ' 's score is: '多了单引号