Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature Proposal: Auto Macro Translation #7

Open
laqieer opened this issue Jul 27, 2018 · 0 comments
Open

Feature Proposal: Auto Macro Translation #7

laqieer opened this issue Jul 27, 2018 · 0 comments

Comments

@laqieer
Copy link

laqieer commented Jul 27, 2018

"THE MODULE FORMAT

The first line holds the module file version. For this file, that's "1".
No decimal points or anything fancy.
The second line is the module description, which appears on the title
bar when the module is loaded.
The third line is the root address of the data table.
The fourth line is the number of table entries.
The fifth line is the length of a single entry.
The sixth line is a filename, indicating a list of names to be used by
the entry selector. If "NULL", the entry selector will only use
numbers. If names run out before numbers do, the selector will continue
with just numbers.
The seventh line is also a filename, indicating the table file to be used
by TEXT entries. Tables here can only be letter-matching, that is, of
the form XX=Y; multiple bytes or multiple characters, such as XXYY=Z,
or XX=yz, are not permitted. If "NULL", standard ASCII is assumed."

Translate value to macro according to 6th line automatically. It should be able to skip invalid string for macro or convert them, avoid redefinition, split bitfield and then output the definition file. An alternative is to load a predefined definition file.
Another solution is to make a script to convert all text files set in NMM files to required macro definition files. Rule conversion -> error correction log for macro -> human review.

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

No branches or pull requests

1 participant