Skip to content

Commit 5a2f48b

Browse files
committed
add README
1 parent 56fd520 commit 5a2f48b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# ChAcc Assembler
2+
I wanted to write assembly to test on our processor made in VHDL and needed an assembler.
3+
It was also an exercise to see how functional/combinatorial parsing worked in haskell (see Parser.hs)
4+
5+
## Processor description
6+
The ChAcc processor, based on the lab processor of HY-120 course in the institute of Computer Science
7+
in FORTH, Greece, is a simple and slow processor which can run various programs. It is an 8-bit processor,
8+
i.e., the processor executes operations on 8-bit data but executes instructions
9+
which are 12-bit long. ChAcc makes use of the accumulator architecture, which has a special register, called
10+
Accumulator (ACC). The register is so named because it can perform consecutive operations (e.g., additions)
11+
and accumulate the result. ACC keeps the result of the most recent operation. Almost every instruction
12+
works on ACC and the content of a memory location.
13+
14+
## Build
15+
ghc --make Main.hs
16+
17+
## Run
18+
./Main valid.asm

0 commit comments

Comments
 (0)