Tree @646ec38 (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.)goto
(tail call) a a vector.- add routine name to error messages.
- 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
@646ec38aa8494e39a640f17e800c34eed003a7bf
git clone https://git.catseye.tc/SixtyPical/
- Spec `goto`. Chris Pressey 8 years ago
- Merge. Chris Pressey 8 years ago
- It's getting a little chaotic. Needs better error messages! Chris Pressey 8 years ago
- Compile goto's. Chris Pressey 8 years ago
- Refactor Analyzer. Get analysis tests passing once again. Chris Pressey 8 years ago
- Attempt to analyze `goto`. Looks like it'll need some rewriting. Chris Pressey 8 years ago
- Some more tests, which fail because I forgot to pull the repo :/ Chris Pressey 8 years ago
- Add missing example source Chris Pressey 8 years ago
- Recast Evaluator as an object. Handle `goto` inside it. Chris Pressey 8 years ago
- Syntax for `goto`. Chris Pressey 8 years ago