Tree @0.3 (Download .tar.gz)
SixtyPical
SixtyPical is a very low-level programming language, similar to 6502 assembly, with static analysis through abstract interpretation.
In practice, this means it catches things like
- you forgot to clear carry before adding something to the accumulator
- a subroutine that you call trashes a register you thought was preserved
and suchlike.
It is a work in progress, currently at the proof-of-concept stage.
The current released version of SixtyPical is 0.3.
Documentation
- Design Goals — coming soon.
- SixtyPical specification
- Literate test suite for SixtyPical execution
- Literate test suite for SixtyPical analysis
- 6502 Opcodes used/not used in SixtyPical
TODO
For 0.4:
while
loops.repeat
loops.- explicitly-addressed memory locations
For 0.5:
- add line number (or at least routine name) to error messages.
- hexadecimal literals.
if not
.- 6502-mnemonic aliases (
sec
,clc
) - other handy aliases (
eq
forz
, etc.) - source code comments.
For 0.6:
word
type.table
type constructor and indirect addressing.
Commit History
@0.3
git clone https://git.catseye.tc/SixtyPical/
- Bump version number for release of version 0.3. Chris Pressey 7 years ago
- Don't generate code for empty `else` blocks. Chris Pressey 7 years ago
- Get serialization of relative labels correct. Chris Pressey 7 years ago
- Pass address when serializing. Still wrong, of course. Chris Pressey 7 years ago
- Implement compiling `if`, but we need relative addressing first. Chris Pressey 7 years ago
- Compile the rest of the instructions. Chris Pressey 7 years ago
- Compile access of defined memory locations. Chris Pressey 7 years ago
- Call defined routines. Chris Pressey 7 years ago
- Compiler object, labels, compile 'call'... It prints 'A'! Chris Pressey 7 years ago
- Make extern routines survive analysis. Chris Pressey 7 years ago