Reputation: 145
I have succesfully compiled and run the following code using Microsoft Visual Studio 2022 and calling procedure from C# code:
.code
MyProc1 proc
add RCX, RDX
mov RAX, RCX
ret
MyProc1 endp
end
however, after few changes in code the following error occurred:
invalid character in file (line 1)
coming back to code shown above - still compile error...
Upvotes: 0
Views: 1056
Reputation: 145
The solution was tricky. I recreated the file, and ensured the setting: Tools/Options/Environment/Documents/Save as Unicode... was set true, because if it's not, Visual may damage file while saving (event if you use ASCII only!)
Upvotes: 1