I have made a few enhancements to John's s3c8asm. s3c8asm_7.zip
New features (v7.4):
Conditional assembly
Relational operators
Non-redefinable assignment directive
Echo
-D/-U command line symbol definition options
Non-zero exit code with unsuccessful assembly
File name and line number printed in the error message
These features help developers of the extenders and the special protocols create a combined single source file that supports multiple remote types, EEPROM sizes, etc. easily.
Also useful for adding assemble time checks and print warning messages when generated code exceeds specific size or falls into a specific memory location that you want to avoid. (e.g. To make sure the extender code fragment fits in the old advanced code area, to avoid non-expendable part of the extender code falling into the area that may be overwritten during the ROM calls, to get around the setup code/other EEPROM config location in some big EEPROM extenders.)
Hal
Last edited by mtakahar on Fri Jun 10, 2005 2:06 am, edited 2 times in total.
Source files can easily become bigger and similar lines would appear in multiple places more often with ifdef's, etc. Line number in the error message would be helpful...