Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Lockyer
committed
Nov 23, 2017
1 parent
6297364
commit 5c844cd
Showing
27 changed files
with
30 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,11 @@ | ||
# plc | ||
# StreASM | ||
|
||
| SYNTAX | DESC | | ||
|---|---| | ||
| NXT name, name | | | ||
| MOV dest, src | | | ||
| BS reg, bit, val | | | ||
| INCR reg | | | ||
| DECR reg | | | ||
| ADD dest, src1, src2 | | | ||
| SUB dest, src1, src2 | | | ||
| MUL dest, src1, src2 | | | ||
| DIV dest, src1, src2 | | | ||
| AND dest, src1, src2 | | | ||
| OR dest, src1, src2 | | | ||
| NOR dest, src1, src2 | | | ||
| XOR dest, src1, src2 | | | ||
| NAND dest, src1, src2 | | | ||
| COM dest, src1 | | | ||
| CLR reg | | | ||
| JMP label | | | ||
| CALL label | | | ||
| RET | | | ||
| TSTZ reg, if0, ifn0 | | | ||
| TSTE reg1, reg2, ifeq, ifneq | | | ||
| TSTG reg1, reg2, ifg, ifng | | | ||
| TSTGE reg1, reg2, ifge, ifnge | | | ||
| TSTL reg1, reg2, ifl, ifnl | | | ||
| TSTLE reg1, reg2, ifle, ifnle | | | ||
| TSTB reg, bit, if1, if0 | | | ||
> A stream processing language for the criminally insane | ||
StreASM is a stream processing language styled after Assembly instructions. It operates on numerical inputs. | ||
|
||
It was created by [Daniel Lockyer](https://github.com/NeoSilky) and [Jet Holt](https://github.com/Jetroid) as part of the Programming Language Concepts module at the University of Southampton. | ||
|
||
The StreASM interpreter is written in OCaml using `ocamllex` and `ocamlyacc`. | ||
|
||
Full documentation is in the [project report](https://github.com/neosilky/StreASM/blob/master/docs/StreASMDocumentation.pdf). |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;Delayed Feedback | ||
;Take a sequence a1 a2 a3 a4 a5 ... as an input | ||
;and output | ||
;and output | ||
;a1 | ||
;a2 | ||
;a3 + (a1) | ||
|
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0
example/pr6.spl → example/pr6.asm
100644 → 100755
File renamed without changes.
Empty file.
0
example/pr7.spl → example/pr7.asm
100644 → 100755
File renamed without changes.
Empty file.
0
example/pr8.spl → example/pr8.asm
100644 → 100755
File renamed without changes.
Empty file.
0
example/pr9.spl → example/pr9.asm
100644 → 100755
File renamed without changes.
Empty file.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters