News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Problem with console output

Started by sinsi, November 14, 2018, 01:11:07 AM

Previous topic - Next topic

sinsi

Working code in 32-bit

include \masm32\include\masm32rt.inc

.code

start proc public
    print "Hello World"
    invoke ExitProcess,0
start endp
end


Access violation with 64-bit

include \masm32\include64\masm64rt.inc

.code

start proc public
    print "Hello World"
    invoke ExitProcess,0
start endp
end


The problem seems to be that the 64-bit print macro just passes the arguments to szmulticat but there is only one argument.

LiaoMi

Quote from: sinsi on November 14, 2018, 01:11:07 AM
Working code in 32-bit

include \masm32\include\masm32rt.inc

.code

start proc public
    print "Hello World"
    invoke ExitProcess,0
start endp
end


Access violation with 64-bit

include \masm32\include64\masm64rt.inc

.code

start proc public
    print "Hello World"
    invoke ExitProcess,0
start endp
end


The problem seems to be that the 64-bit print macro just passes the arguments to szmulticat but there is only one argument.

Hi sinsi,

http://masm32.com/board/index.php?topic=6408.msg81259#msg81259

hutch--

Look in the help file under the title MACROS - CONSOLE FUNCTIONS.

"conout" is very flexible and it is easy to use.