Got reminded of a project I did while back. It's a Python based assembler. The main idea is that the assembly file is actually a Python file with pre-set functions (assembly instruction).
In this manner, I managed to skip lexing, parsing and other things and deliver a working assembler in
two days.
You can view the presentation I gave on this
here.
The Assembler
Example Input
I've read this when you first posted it and went over it again now. It's really an impressive example of thinking out of the box.
ReplyDeleteL
Thanks!
ReplyDeleteWould you mind helping me out with my planned OS in Python, converted to C/C++ using py2c (http://code.google.com/p/py2c/).
ReplyDeleteYour assembly knowledge looks good for my OS.
PS:py2c needs developers;even if you can only spare a few minutes, that is enough to be usefull!
Answered Ramchandra Apte in email ...
ReplyDeletenice blog.
ReplyDeleteAppreciate this blog postt
ReplyDelete