2021年5月2日星期日

I keep getting Error A2008 and Error MSB3721 in MASM

I am getting a syntax error for a program for my assembly language class. We are using MASM.

intro           BYTE    "My name. This program is a number calculator", 0  name            BYTE    "Please enter your name: ", 0  username        BYTE    256 DUP(0)  

My declarations. Then I try to use the "name" variable:

    mov      edx, OFFSET intro      call     WriteString      call     CrLf      call     CrLf    ; ask for the user's name and store the name      mov      edx, OFFSET name      call     WriteString      mov      edx, OFFSET username      mov      ecx, 32      call     ReadString  

I keep getting error: Error A2008 syntax error : name locationofmyfile 75

I also get the error: Error MSB3721 The command "ml.exe /c /nologo /Sg /Zi /Fo"Debug\Proj3_MyName.obj" /Fl"Project.lst" /I "c:\Irvine" /W3 /errorReport:prompt /TaProj3_MyName.asm" exited with code 1. Project C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets 70

Any and all help is appreciated thanks so much.

I've spent so much time trying to debug this and I'm sure it's something simple.

https://stackoverflow.com/questions/67362434/i-keep-getting-errora2008-and-error-msb3721-in-masm May 03, 2021 at 09:05AM

没有评论:

发表评论