2014-03-31 23:31:30 +01:00
|
|
|
SixtyPical
|
|
|
|
==========
|
|
|
|
|
2014-04-01 13:01:27 +01:00
|
|
|
SixtyPical is a very low-level programming language, similar to 6502 assembly,
|
2015-10-16 09:30:24 +01:00
|
|
|
with static analysis through abstract interpretation.
|
2014-04-01 13:01:27 +01:00
|
|
|
|
2015-10-16 09:30:24 +01:00
|
|
|
In practice, this means it catches things like
|
2014-04-01 13:01:27 +01:00
|
|
|
|
2015-10-16 09:30:24 +01:00
|
|
|
* you forgot to clear carry before adding something to the accumulator
|
|
|
|
* a subroutine that you call trashes a register you thought was preserved
|
2014-04-04 18:27:51 +01:00
|
|
|
|
2015-10-16 09:30:24 +01:00
|
|
|
and suchlike.
|
2014-04-11 22:50:03 +01:00
|
|
|
|
2015-10-16 09:30:24 +01:00
|
|
|
It is a **work in progress**, currently at the **proof-of-concept** stage.
|
2014-04-12 12:55:33 +01:00
|
|
|
|
2015-10-17 18:29:33 +01:00
|
|
|
The current released version of SixtyPical is 0.3.
|
2014-04-12 12:55:33 +01:00
|
|
|
|
2015-10-16 10:00:51 +01:00
|
|
|
Documentation
|
|
|
|
-------------
|
2014-04-01 14:33:57 +01:00
|
|
|
|
2015-10-16 10:00:51 +01:00
|
|
|
* Design Goals — coming soon.
|
2015-10-16 10:54:12 +01:00
|
|
|
* [SixtyPical specification](doc/SixtyPical.md)
|
|
|
|
* [Literate test suite for SixtyPical execution](tests/SixtyPical Execution.md)
|
|
|
|
* [Literate test suite for SixtyPical analysis](tests/SixtyPical Analysis.md)
|
2015-10-16 19:15:01 +01:00
|
|
|
* [6502 Opcodes used/not used in SixtyPical](doc/6502 Opcodes.md)
|
2015-10-16 10:00:51 +01:00
|
|
|
|
|
|
|
TODO
|
|
|
|
----
|
|
|
|
|
2015-10-17 12:30:45 +01:00
|
|
|
For 0.4:
|
|
|
|
|
2015-10-16 10:00:51 +01:00
|
|
|
* `while` loops.
|
2015-10-17 18:29:33 +01:00
|
|
|
* `repeat` loops.
|
|
|
|
* explicitly-addressed memory locations
|
2015-10-16 10:00:51 +01:00
|
|
|
|
2015-10-17 12:30:45 +01:00
|
|
|
For 0.5:
|
2015-10-16 10:00:51 +01:00
|
|
|
|
2015-10-16 18:39:38 +01:00
|
|
|
* add line number (or at least routine name) to error messages.
|
2015-10-16 10:00:51 +01:00
|
|
|
* hexadecimal literals.
|
|
|
|
* `if not`.
|
|
|
|
* 6502-mnemonic aliases (`sec`, `clc`)
|
|
|
|
* other handy aliases (`eq` for `z`, etc.)
|
2015-10-17 12:30:45 +01:00
|
|
|
* source code comments.
|
|
|
|
|
|
|
|
For 0.6:
|
|
|
|
|
|
|
|
* `word` type.
|
|
|
|
* `table` type constructor and indirect addressing.
|