Assemblers

March 28, 2008

Looks like I did complete those god-awful-time-consuming programs. Here they are, for future reference or whatever…

Mind you, they’re not perfect, nowhere close to it, in fact. The instruction set isn’t complete (bleh) and I’ve used short cuts where it just didn’t make sense to waste time on some feature. There are a few obvious mistakes in the output too, but the damned thing works. So there!

All three programs are written in C Language and are based on the algorithms for the same, provided in “System Software: An Introduction to Systems Programming“, by Leland L. Beck. They’re only sparsely documented, so you’ll probably have trouble reading. Do I look like I care? Oh, and it’s been written for Turbo C++ 3.0 :D

One Pass Assembler

Two Pass Assembler

Absolute Loader

You may also need these files, especially the assemble.txt, which is the source file both the assemblers use (and are equipped to handle).

assemble.txt - Source SIC program

objcode.txt - Output of Two-Pass Assembler

objcod1p.txt - Output of One-Pass Assembler

machcode.txt - Output of Absolute Loader

And no, I don’t mind if you use it partly or in its entirety for whatever purpose you can think of. ^_^

Have fun, people!

2 Responses to “Assemblers”

  1. Illogicality « Elvesbane said:

    [...] I’ve completed those programs and talked about them here. Posted by elvesbane Filed in Blogroll, College Life, Computers, [...]

  2. Jasim said:

    Hari, your code looks nice. Seems to be simple too. Hope you dont mind if I take it to teach some of my friends :)

Leave a Reply