0

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

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by thines01
0

1) You are calling "Call WriteString", but there is nothing called WriteString except a line that is commented-out.

2) ReadInt (same)

3) You have an End Main, but no start or begin Main

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.