Thank you for your responses, but I've tried just about everything and keep getting errors. I am just starting to explore assembly and downloaded masm32 and WinAsm and created a Bare Bones Console app through the wizard. Assume I know nothing.
Here's what I've tried:
invoke crt_printf, chr$(" Value:%d"), eax
Errors:
C:\MASMx\MyConsole2\Console.Asm(33) : error A2006: undefined symbol : crt_printf
Then added msvcrt.inc and got give me the errors:
C:\MASMx\MyConsole2\Console.Asm(33) : error A2006: undefined symbol : chr$
C:\MASMx\MyConsole2\Console.Asm(33) : error A2114: INVOKE argument type mismatch : argument : 0
I looked at using deb, but when I clicked on the link, the information was over my head. (I just started Sunday)
So, I started to investigate using str$(), but when I include masm32rt.inc, I get more errors...
If I include masm32rt.inc I get:
------------------------------------------
WARNING Duplicate include file windows.inc
------------------------------------------
-----------------------------------------
WARNING Duplicate include file masm32.inc
-----------------------------------------
-------------------------------------------
WARNING duplicate include file kernel32.inc
-------------------------------------------
C:\MASMx\MyConsole2\Console.Asm(33) : error A2008: syntax error : offset
C:\MASMx\MyConsole2\Console.Asm(32) : error A2138: invalid data initializer
I clicked on the link, but the information was way over my head.
Here are the includes and libraries I'm using and used:
Include windows.inc
Include kernel32.inc
Include masm32.inc
;Include msvcrt.inc ; tried this
;Include masm32rt.inc ; tried this
IncludeLib kernel32.lib
IncludeLib masm32.lib