看板 HSNU_979 關於我們 聯絡資訊
TITLE Test Score Evaluation (testscore.asm) INCLUDE Irvine32.inc .data prompts byte "Please enter a score between 0 to 100.",0dh,0ah,0 questions byte "Continue?(y/n)",0 errormsgs byte "It's invalid.",0dh,0ah,"--Please press Return key to continue--",0 endword byte " scores.",0 ans byte ? score dword ? times dword 0 .code main PROC while: mov edx,offset prompts call WriteString call ReadInt mov score,eax cmp eax,100 jg err mov eax,score cmp eax,90 jge A mov eax,score cmp eax,80 jge B mov eax,score cmp eax,70 jge C mov eax,score cmp eax,60 jge D mov eax,score cmp eax,0 jl err mov al,'F' call WriteChar jmp continueway A: mov al,'A' call WriteChar jmp continueway B: mov al,'B' call WriteChar jmp continueway C: mov al,'C' call WriteChar jmp continueway D: mov al,'D' call WriteChar jmp continueway err:mov edx,offset errormsgs call WriteString call WaitMsg jmp while continueway: inc times call Crlf mov edx,offset questions call WriteString call ReadChar mov ans,al cmp al,'y' je while mov al,ans cmp al,'Y' je while mov al,ans cmp al,'n' je endwhile mov al,ans cmp al,'N' je endwhile jmp err endwhile: mov eax,times call WriteInt mov edx,offset endword call WriteString exit main ENDP END main 邊譯的時候會出現 testscore.asm(85) : fatal error A1008: unmatched macro nesting 的錯誤訊息, (85行就是最後一行...) 這是什麼意思啊...T_T 有沒有人知道的, 請助我一臂之力吧... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.162.5.115
Foxly:語言別是? @@ 不太像組語... 推 140.113.126.25 12/10
WhiteScars:就是組語啊...~"~ 推 218.162.15.200 12/10
ianchen91:RET 也許是因為沒加這個... 推140.114.221.128 12/10