I have the following source for an assembly program that I got in a Youtube video tutorial:
.386
.model flat, stdcall
option casemap:none
include c:\masm32\include\windows.inc
include c:\masm32\include\masm32.inc
include c:\masm32\include\kernel32.inc
includelib c:\masm32\lib\masm32.lib
includelib c:\masm32\lib\kernel32.lib
.data
message1 db "Type your name: ", 0
message2 db "Your name is ", 0
.data?
buffer db 100 dup(?)
.code
start:
invoke StdOut, addr message1
invoke StdIn, addr buffer, 100
invoke StdOut, addr message2
invoke StdOut, addr buffer
invoke StdIn, addr buffer, 100
invoke ExitProcess, 0
end start
I compile the program with a bat file
ml /c /coff %1.asm
Link /SUBSYSTEM:WINDOWS %1.OBJ
I call the bat file assemble.bat so I call assemble source and it assembles the executable.
The problem is that when I run the program (the program assembles fine with no errors) the program simply does nothing. I call it in the console prompt and it simply does nothing, the program just shows a blank line and goes back to the command prompt as if nothing happened.
In the video tutorial the guy assembled his program and compiled and worked fine, but for me nothing happens.