Hi, I created this student calculator code but in MASM32 it keeps giving me errors. I've modified it about 10 times but it's still wrong. Could anybody help me?
.data ;the terminators NULL EQU 00H CR EQU 0DH LF EQU 0AH ;number of test scores allowed MAXSCORES EQU 5 ; What the user sees before inputting a score. PromptTscore BYTE "What is the score for the test: ",NULL Scores BYTE MAXSCORES DUP(?) ; WriteString ; ReadInt .code StudentScoring proc mov ecx, MAXSCORES ; for the number of test scores per student mov ESI, OFFSET Scores ; offset for storing test score values mov ebx, 0 ; running count StudentScoring endp LablScoring: ;prompts user for test score mov EDX,OFFSET PromptTscore Call WriteString ;reads the users input Call ReadInt ;save score mov [ESI+EBX], EAX inc EBX LOOP LablScoring End Main
The errors are:
error A2006: undefined symbol: WriteString
error A2006: undefined symbol: ReadInt
error A2006: undefined symbol: Main
error A2148: invalid symbol type in expression: Main