flat assembler
Message board for the users of flat assembler.

Index > Main > fasm - error message: same row as line number possible?

Author
Thread Post new topic Reply to topic
DenimJeans



Joined: 29 Dec 2023
Posts: 11
DenimJeans 21 Jan 2024, 23:16
Hi Tomasz and FASM users,

is it possible change the output for FASM in case of an error in 1 row? Example
error is on row 246 and message / error is mov [payloadStart],[rax]
Code:
$ ./FASM.EXE main.asm
flat assembler  version 1.73.31  (1048576 kilobytes memory)
main.asm [246]:
        mov     [payloadStart],[rax]
processed: mov[payloadStart],[rax]
error: invalid operand.
    



error output possible like below (in 1 row, line num and message)
Code:
...
main.asm [246]:  mov     [payloadStart],[rax]
...    

I am using code::blocks now as IDE and the parser only accepts 1 row.
thanks
DJ
Post 21 Jan 2024, 23:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20404
Location: In your JS exploiting you and your system
revolution 22 Jan 2024, 04:53
For each supported system the file named "SYSTEM.INC" has a line similar to this:
Code:
line_data_start db ':',0xA,0    
You can delete the line feed.
Post 22 Jan 2024, 04:53
View user's profile Send private message Visit poster's website Reply with quote
DenimJeans



Joined: 29 Dec 2023
Posts: 11
DenimJeans 22 Jan 2024, 08:14
crazy, works directly well Smile
thanks again revolution for your quick reply
Post 22 Jan 2024, 08:14
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.