Quote:
Originally Posted by prb28
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