Author Topic: Problem with console output  (Read 1359 times)

sinsi

  • Member
  • *****
  • Posts: 1184
Problem with console output
« on: November 14, 2018, 01:11:07 AM »
Working code in 32-bit
Code: [Select]
include \masm32\include\masm32rt.inc

.code

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

Access violation with 64-bit
Code: [Select]
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.
I can walk on water but stagger on beer bourbon.

LiaoMi

  • Member
  • ****
  • Posts: 590
Re: Problem with console output
« Reply #1 on: November 14, 2018, 02:30:14 AM »
Working code in 32-bit
Code: [Select]
include \masm32\include\masm32rt.inc

.code

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

Access violation with 64-bit
Code: [Select]
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--

  • Administrator
  • Member
  • ******
  • Posts: 6715
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Problem with console output
« Reply #2 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.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: