View Single Post
Old 22 August 2019, 14:58   #86
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,525
Quote:
Originally Posted by prb28 View Post
Thanks for this info.
And what about the macros ?
I imagine it's the same problem.
Ok, now I analyzed the source and know what to do. The problem with macros and repetitions is easy to solve. Currently they store the line number from inside their own macro/rept-block, so I only have to offset it with the current line number of the real parent source text.

To allow inclusion of code from different source texts I would have to add another DEBUG-LINE hunk with a base-offsets and a different file name, just like the linker would do when merging multiple files. When returning from an include another DEBUG-LINE hunk has to be created which resets the file name and current section offset of the previous source.

Working on it...

EDIT: Done. First tests look ok. Macros, repetitions and multiple source files are supported. Please try tomorrow's vasm source snapshot: http://sun.hasenbraten.de/vasm/index.php?view=source

Last edited by phx; 22 August 2019 at 18:55. Reason: Update
phx is offline  
 
Page generated in 0.04388 seconds with 11 queries