Hundred Rabbits <hundredrabbits@gmail.com> wrote:
> Thanks to @tbsp on mastodon, uxnasm also outputs a symbols file upon assembly!
>
> demo: https://merveilles.town/web/@neauoire/109485713584294162
> *.sym details: http://wiki.xxiivv.com/site/symbols.html
This is good. However, I had made up my own symbol file format predating this one,
in the variant of uxnasm included with Uxn38. However, I could add a switch to
control the symbol file format.
It would also be possible to convert between the two formats, which should not be
too difficult to do. I wrote such a program in uxn, which is included with Uxn38.
(Please tell me if you find any mistake in it.)
The official implementation isn't very good. It seems to assume it is running on
a small-endian computer, has no mode to tell it whether or not to write a symbol
file, and will silently ignore it if the file name is too long.
--
Don't laugh at the moon when it is day time in France.
Your name-to-symbol program worked perfectly, I was able to see the
uxnasm38 names in beetbug :) For anyone looking to give it a try:
http://zzo38computer.org/fossil/uxn.ui/artifact/bbb0e3f851b17470
The uxnasm implementation will be updated by Alderwick soon, I just
hacked it together so it could be tested more broadly with folks who
shown an interested on Mastodon yesterday. I don't use uxnasm
personally and I'm a terrible C programmer.
Someone could add a flag or some other gizmo to decide if it wants to
output a symbols file or not. I spoke with Andrew and he had started
implementing it in uxn32 as well! I'd love for uxncli and uxnemu to
also make use of the symbols soon.