The MASM Forum

Microsoft 64 bit MASM => MASM64 SDK => Topic started by: sinsi on November 14, 2018, 01:11:07 AM

Title: Problem with console output
Post by: 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.
Title: Re: Problem with console output
Post by: LiaoMi on November 14, 2018, 02:30:14 AM
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 (http://masm32.com/board/index.php?topic=6408.msg81259#msg81259)
Title: Re: Problem with console output
Post by: hutch-- on November 14, 2018, 11:06:38 AM
Look in the help file under the title MACROS - CONSOLE FUNCTIONS.

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