Interactive Demo
This is a real interactive demo that uses PHP and javascript magic to talk to my C assembler program and run it so you can see it's test cases live.
Execution Console
01 / Input
Select a dataset to preview its contents.
02 / C Program Output
Ready to run. Select your options above.
Ready.
Got Questions?
Frequently Asked Questions
What the hell is an Assembler?
When programmers write code, it has to become binary to be able to be understood by the computer.
A compiler takes written code and converts it into a low level language assembly. An Assembler then does
the rest of the work to convert the assembly code into object code and binary.
What is a symbol table?
In the first pass of an assembler it compiles a symbol table. The table is a date structure that
pairs all the symbol names and all the addresses in memory where the corresponding instructions are.
It's important later for figuring out the total space of the program, and constructing the object code.
Why so many test cases?
Besides the work of conversion, compilers and assemblers also do a lot of error handling to ensure the program
is properly constructed. A great deal of the test cases are for these sorts of errors that assembly programs
aren't allowed to have such as blank lines, invalid hex values, too large of a program, and more.