News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Macro reporting fatal error

Started by Vortex, April 17, 2025, 09:46:15 PM

Previous topic - Next topic

Vortex

Hello,

The code below reports the following error message, tested with Poasm Version 13.00.12 :

Test.asm(20): fatal error: Invalid use of 'Tab'.
.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG

include CstrMacro.asm

.data?

str1 dd ?

.code

start:

    invoke  printf,\
            @Cstr("Tab\tcharacter\ttest\nAnother line\qSample line\nEscaped symbol \\\n")

    mov     eax,DWORD PTR [esp-4]
    mov     str1,eax

    invoke  ExitProcess,0

END start

Poasm Version 12.00.1 can assemble the code without any issues.
Code it... That's all...