I am learning Assembly Language (x86) and I need to figure out how to make a register overflow using only variables rather than intermediate values.
I with to overflow the AX register by putting FFFF into a variable, moving that variable into AX, and then incrementing AX. However, I am running into problems. First off, I go to declare a WORD variable like this:
limitReg WORD 0
Then later on in .code I do this:
MOV limitReg, FFFFh
MOV ax, limitReg
However, I get the following error:
Error 1 error MSB3721: The command "ml.exe /c /nologo /Zi /Fo"Debug\pa2.obj" /Fl"PA2.lst" /I "C:\Irvine" /W3 /errorReport:prompt /Ta..\..\..\..\..\..\..\Irvine\Examples\ch03\pa2.asm" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\masm.targets 50
Can someone please help me out with learning this?