So, I am getting to the point where I really need some firmware to test out everything and get the breadboarded control system running. The instruction set on the MC14500b is delightfully simple:
It is so simple that I expected that could just write out the control program in hex machine code and I would not need any sort of assembler. In fact, I specifically wanted to avoid writing an assembler to keep the project moving. Well, looking back and forth at the manual to pick out hex codes got old quick. So then I thought I would just write a quick shell script to convert the mnemonics to hex, then, of course, I would want it to ignore comments and output in a listing format OR a binary... Pretty soon I had a useful tool that was NOT an assembler, because if it was an assembler, that would mean I got distracted from building a robot today. (There is a python script to do this in github, but my personal experience with python is that it takes longer to figure out all the dependency and pip version conflict errors than to just do something manually. There is only so much diversion I can justify.) An array or hashtable probably would have been better for all those sed command opcodes, but this was quick and dirty. I will keep it updated and possibly add features.
No comments:
Post a Comment