Chris Pressey
|
fd07f4bae9
|
More sophisticated static analysis: writeable, touched, meaningful.
|
2015-10-18 22:27:51 +01:00 |
|
Chris Pressey
|
8b30a232fa
|
Analyze copy , but... we now need more sophisticated context. :/
|
2015-10-18 20:16:14 +01:00 |
|
Chris Pressey
|
c98e446583
|
Spec and syntax for vectors and copy instruction.
|
2015-10-18 19:41:26 +01:00 |
|
Chris Pressey
|
9235c6eacc
|
Support line comments.
|
2015-10-18 18:54:28 +01:00 |
|
Chris Pressey
|
a933c81768
|
Well, that's a hack. But it works.
|
2015-10-18 18:47:47 +01:00 |
|
Chris Pressey
|
a9bd8a3714
|
Indexed access, + x / + y, at least for LDA and STA.
--HG--
rename : eg/screen.60p => eg/screen1.60p
|
2015-10-18 18:32:20 +01:00 |
|
Chris Pressey
|
5a5953ca4c
|
A little awkward, but analyze byte table access correctly.
|
2015-10-18 18:12:47 +01:00 |
|
Chris Pressey
|
f4186c5f22
|
AbsoluteX, AbsoluteY addressing modes in 6502-code generator.
|
2015-10-18 17:47:45 +01:00 |
|
Chris Pressey
|
4287bf81c1
|
Parse byte table declarations and indexing modifiers.
|
2015-10-18 17:40:53 +01:00 |
|
Chris Pressey
|
41432b5cb3
|
Syntax is syntax, test it there. Register built-ins as symbols.
|
2015-10-18 17:32:12 +01:00 |
|
Chris Pressey
|
e1cf162a5b
|
Refs have types.
|
2015-10-18 17:23:01 +01:00 |
|
Chris Pressey
|
522c771208
|
Add explicitly-addressed memory locations.
|
2015-10-18 16:22:36 +01:00 |
|
Chris Pressey
|
49e42af953
|
Implement if not and repeat forever .
|
2015-10-18 15:32:28 +01:00 |
|
Chris Pressey
|
c5998ed240
|
Compile repeat loops.
|
2015-10-18 13:55:40 +01:00 |
|
Chris Pressey
|
f7eb0d48a8
|
Spec, parse, evaluate, and analyze repeat blocks.
|
2015-10-18 13:37:35 +01:00 |
|
Chris Pressey
|
070ffacf69
|
Don't generate code for empty else blocks.
|
2015-10-17 18:25:54 +01:00 |
|
Chris Pressey
|
b794d8d273
|
Get serialization of relative labels correct.
|
2015-10-17 18:11:23 +01:00 |
|
Chris Pressey
|
a5c3b4725d
|
Pass address when serializing. Still wrong, of course.
|
2015-10-17 16:51:35 +01:00 |
|
Chris Pressey
|
b6bb64528f
|
Implement compiling if , but we need relative addressing first.
|
2015-10-17 16:34:02 +01:00 |
|
Chris Pressey
|
479b484313
|
Compile the rest of the instructions.
|
2015-10-17 16:17:35 +01:00 |
|
Chris Pressey
|
e62fd85ccf
|
Compile access of defined memory locations.
|
2015-10-17 15:46:28 +01:00 |
|
Chris Pressey
|
a3160a5166
|
Call defined routines.
|
2015-10-17 15:23:00 +01:00 |
|
Chris Pressey
|
643a48a2c5
|
Compiler object, labels, compile 'call'... It prints 'A'!
|
2015-10-17 15:06:50 +01:00 |
|
Chris Pressey
|
2ffff3bbdb
|
Make extern routines survive analysis.
|
2015-10-17 14:54:28 +01:00 |
|
Chris Pressey
|
49d90dfae0
|
Add syntax for extern routines, add syntax tests.
|
2015-10-17 13:50:21 +01:00 |
|
Chris Pressey
|
5b429adfd9
|
6502 opcodes are Emittables. Can compile simple programs now!
|
2015-10-17 11:08:25 +01:00 |
|
Chris Pressey
|
c0243ee6ba
|
Wire up the compiler and wring out obvious bugs.
|
2015-10-17 10:17:44 +01:00 |
|
Chris Pressey
|
ba55065060
|
Sketch the compiler.
|
2015-10-16 23:12:52 +01:00 |
|
Chris Pressey
|
bb7fbcda6c
|
Add Emitter framework, and 6502 Generator (will likely change.)
|
2015-10-16 22:59:35 +01:00 |
|
Chris Pressey
|
22c58ba556
|
Improve evaluator internals. Finish test suite for analysis.
|
2015-10-16 19:32:18 +01:00 |
|
Chris Pressey
|
c3a0659058
|
Write sufficient tests (I think) for analysis of if s.
|
2015-10-16 14:01:45 +01:00 |
|
Chris Pressey
|
d22edc52a9
|
Allow if analysis to pass (needs more tests.) Better styling.
|
2015-10-16 13:06:18 +01:00 |
|
Chris Pressey
|
9c201ccf07
|
Fix links in README. Implement Context.clone().
|
2015-10-16 10:54:12 +01:00 |
|
Chris Pressey
|
dd4c50fc50
|
Refactor to replace some sketchy code with code actually in use.
--HG--
rename : src/sixtypical/objects.py => src/sixtypical/model.py
|
2015-10-16 10:40:38 +01:00 |
|
Chris Pressey
|
6192a6a7f8
|
Add specific error for uninit outputs. Sketch if analysis.
|
2015-10-16 09:38:38 +01:00 |
|
Chris Pressey
|
f92056d640
|
REBOOT the entire language & implementation as version 0.2-PRE.
|
2015-10-16 09:30:24 +01:00 |
|