🎨
Macro-Processor
A short assembly macro-processor script to simulate the process and show the different stages
📝
Note
- This script now supports nested Macro's
- In case you don't want to specify output file a new one will be made on your desktop
- In case your desktop is not found a new folder will be created in your user home directory and a output file will be made there
🧧
Java Version < 11 peeps
🧧
Run this command first in the same directory where the downloaded file is being kept.
javac MacroProcessor.java
To run the code make of use these commands.
Note in case of missing parameters, default ones will be selected.
Here "inputfile.txt"
is the path and file name of file which contains the assembly code.
Also "outputfile.txt"
is the path and file name of your custom output file.
If the output file specified by you, has not been created, the code will handle it.
java MacroProcessor "inputFile.txt" "outputFile.txt"
In case where no output parameter is specified, the code will create one named "macroProcessor_output.txt"
on your desktop.
java MacroProcessor "inputFile.txt"
In case where no parameters are provided the code will scan for a file named "scan_for_macro.txt"
on your desktop.
java MacroProcessor
✨
Java Version > 11 peeps
✨
Run the code directly using these commands
Note in case of missing parameters, default ones will be selected.
Here "inputfile.txt"
is the path and file name of file which contains the assembly code.
Also "outputfile.txt"
is the path and file name of your custom output file.
If the output file specified by you, has not been created, the code will handle it.
java MacroProcessor.java "inputFile.txt" "outputFile.txt"
In case where no output parameter is specified, the code will create one named "macroProcessor_output.txt"
on your desktop.
java MacroProcessor.java "inputFile.txt"
In case where no parameters are provided, the code will scan for a file named "scan_for_macro.txt"
on your desktop.
java MacroProcessor.java