Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working around non-standard macro processor #1

Open
gtoal opened this issue Apr 2, 2020 · 3 comments
Open

Working around non-standard macro processor #1

gtoal opened this issue Apr 2, 2020 · 3 comments

Comments

@gtoal
Copy link

gtoal commented Apr 2, 2020

I hacked up a quick macro processor to expand the user-defined macros in the .sa files.

Not extensively tested, but I've finished all I'll be doing with it. If it is helpful to anyone, pick it up from http://gtoal.com/src/asm-expand/expand.c ( http://gtoal.com/src/asm-expand/expand.c.html )

I think a subsequent pass will be needed to convert from this assembly language to some current assembler format, even after macro expansion. It doesn't look like a format any current assembler that I'm aware of can handle. Also some pretty-printing to tidy up the final source files wouldn't hurt!

@thorpej
Copy link

thorpej commented Jun 27, 2022

I have a need for a 6809 FP library, and I stumbled upon this and want to say thanks for doing this macro expander! I'm taking a different tack and actually modifying the code manually... sometimes I expand the macros manually, sometimes I replace them with new ones that work with asm6809.

In any case, there definitely are bugs that will need fixing in the fp09 code itself. In particular, the VALID function's missing tail. I think I know what needs to be done to fix that, but there might be more glitches like that lurking elsewhere.

@gtoal
Copy link
Author

gtoal commented Jun 27, 2022

In any case, there definitely are bugs that will need fixing in the fp09 code itself. In particular, the VALID function's missing tail.

You might also find these helpful: Lennart Lindell fixed the missing code fragments: http://lell.se/hacks/float09/float09.zip and Tim Lindner recreated the manual: http://tlindner.macmess.org/?page_id=691

@thorpej
Copy link

thorpej commented Aug 4, 2022

@gtoal Thanks to the pointer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants