flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > little problem in displaying error messages

Author
Thread Post new topic Reply to topic
N-LG



Joined: 14 Feb 2019
Posts: 40
Location: france
N-LG 11 May 2020, 19:23
I'm in the process of adapting Fasm to my little operating system. this seems to work well (at least for small programs) except for displaying errors in the event of a problem. the line causing the problem is not displayed, and the fault was still a "source file not found" fault

I went back to the routine "assembler_error" in the file system.inc, and I would like to understand the variable "current_line" it seems to be a variable which points to an element table of 16 bytes but apart from the dword at address 4 of this table which seems to be the line numbers in default I do not understand the uses of the other elements of this table

Could someone enlighten me on the structure pointed to by "current line" so that I can go further on my debugging?
Post 11 May 2020, 19:23
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 11 May 2020, 20:34
This structure is a run-time version of the preprocessed line header described in the table 3 of the .fas format documentation. Where .fas has offsets in file, run-time version of this structure has direct pointers.
Post 11 May 2020, 20:34
View user's profile Send private message Visit poster's website 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.