codehag / asm_in_prolog

assembler written in prolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asm_in_prolog

assembler written in prolog

a dog

So.. I needed to write an assembler for a very small assembly language for a 16 bit machine. And I figured, why not do it in prolog?

Except I have never written prolog before and I had very little idea about it, beyond that it was an interesting language.

To run, I used swipl.

swipl parser.pl

then you can run it against the test assembly file

-? main("Add").

About

assembler written in prolog


Languages

Language:Prolog 96.6%Language:Assembly 3.4%