assume cs:codesg,ds:datasg,cs:stacksg
datasg segment
stu struct
name db (?)
score db (?)
stu ends
stu1 stu <'a',99>
stu2 stu <'b',81>
stu3 stu <'c',72>
stu4 stu <'d',43>
stu5 stu <'e',57>
stu6 stu <'f',100>
stu7 stu <'g',51>
stu8 stu <'h',92>
input1 db 'student:'
output1 db ''s score is:'
warm1 db 'there is not a student called'
datasg ends
stacksg segment
db 100 dup (0)
stacksg ends
codesg segment
start
mov ax,datasg
mov ax,4c00h
int 21h
codesg ends
做简单的调试的时候都出现问题,在cross-reference那个之后按回车,就光标进行不下去了,为什么呢?
end start
------解决方案--------------------------------------------------------
start没冒号
------解决方案--------------------------------------------------------
struct多了个‘t’
name改个名
assume 中有了两个cs了
结构赋值中单引号内字符后不能有空格
------解决方案--------------------------------------------------------
还有output1 db ' 's score is: '多了单引号