Purpose/design (2)
To enable selfassembly approach sooner in the process the following is the "road map":
Hand assembled code will be written as a hex-ascii string in a text file.
The assembler 0.1 simply reads this and converts it to pure binary, in the loader format. This is a partial implementation of the 2nd pass (the linker part) of the assembler. This should be handcoded and pushbutton entered.
Moving forward
After this, the code for the next version (with extended functionality like allowing comments) is editing this HEX-code-source-file and using the current assembler to produce this improved version.
These next couple of versions will still involve hand assembly, but be easier and easier to read/edit in this hex-text-file. f.ex. the simple backward labels. Time will tell. But each implementation will involve editing the hex-source file becoming more and more like assembler. When the real global forward reference code is made, it will need the 2 pass structure outlined earlier.
Lastly more and more of the HEX will be replaced by mnemonics and arguments evolving, incrementally, to the proper assembler.
OK, lets code
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.