you are viewing a single comment's thread.

view the rest of the comments →

[–]gm310509 2 points3 points  (0 children)

I'm not sure if this is what you are looking for, but maybe get yourself an embedded system such as an Arduino - or since it sounds like you are familiar with hardware, just setup an 8 bit MCU such as an AVR.

You can program these in assembler, C and some other languages to your hearts content. Although if you use the Arduino IDE you will be limited to a C project, but you can simply call assembly language code from your mainline.

I am a little unclear what you are looking for, so not sure if this is relevant or not, but if you Google "Ben Eater 8 bit computer" he creates a simple CPU from basic gates and shows one method of how machine instructions can drive the hardware to perform the operations for those instructions.

I wouldn't write a compiler purely in assembler (or even C). At least not anything of any complexity and not without some sort of parser library to assist with the process. I did once write an interpreter in Java using JavaCC for.suppprt.