Tree @0d3ac8c (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.5. The current development version of SixtyPical, unreleased as of this writing, is 0.6-PRE.
Documentation
- Design Goals — coming soon.
- SixtyPical specification
- SixtyPical history
- Literate test suite for SixtyPical syntax
- Literate test suite for SixtyPical execution
- Literate test suite for SixtyPical analysis
- Literate test suite for SixtyPical compilation
- 6502 Opcodes used/not used in SixtyPical
TODO
For 0.6:
call
vector (generates an JSR to a trampoline that does indirect JMP.)- routines shouldn't need to be listed as inputs.
For 0.7:
- A more involved demo for the C64 — one that sets up an interrupt?
For 0.8:
word
type.trash
instruction.- zero-page memory locations.
- indirect addressing.
At some point...
interrupt
routines.- 6502-mnemonic aliases (
sec
,clc
) - other handy aliases (
eq
forz
, etc.) - have
copy
instruction able to copy a constant to a user-def mem loc, etc. - add absolute addressing in shl/shr, absolute-indexed for add, sub, etc.
- check and disallow recursion.
Commit History
@0d3ac8c2475686089e77c61b39164a4696c2eec9
git clone https://git.catseye.tc/SixtyPical/
- {Low,High}AddressByte emittables to fix copy, make indirect call! Chris Pressey 9 years ago
- Implement indirect JSRs with trampolines in theory; doesn't work. Chris Pressey 9 years ago
- Update README Chris Pressey 9 years ago
- Fix my own confusion, and with it, the unit test. Chris Pressey 9 years ago
- Bring the rest of the tests up to date with the new names. Chris Pressey 9 years ago
- Try to improve error messages, thus breaking many unit tests. Chris Pressey 9 years ago
- Spec `goto`. Chris Pressey 9 years ago
- Merge. Chris Pressey 9 years ago
- It's getting a little chaotic. Needs better error messages! Chris Pressey 9 years ago
- Compile goto's. Chris Pressey 9 years ago