I decided to do a fairly big, one-person project for the summer, and I settled on making my own assembler. Makes sense to me that the first step to AI is a program that writes its own code and compiles it, so I'm figuring out how to make compilers and stuff. I'm going to base it on HTML and CGI using geocities ( because they're the only free server I could find that let you write your own code from scratch. Anyway - a couple of questions on compiling ASM (or ASSEMBLING it).
- I have a list of the binary (machine language) equivalents of all the instructions, but how do I enter binary into a file, because the standard is decimal and ASCII, so how? I'll need to specify it in binary (preferrably) and then maybe use a converter to put it into a file in that form, so that it's usabl;e as an executable.
- How would I include the oparands in the code?
- Any volunteers to test it in September?
Any additional advice would be awesome. Thanks.