Chris Pressey
|
2f513f7291
|
Initial support for initializing byte tables with list of bytes.
|
2018-03-29 10:45:18 +01:00 |
|
Chris Pressey
|
9b912de17c
|
Accessing zero-page with ld and st generates zero-page opcodes.
|
2018-03-29 10:31:42 +01:00 |
|
Chris Pressey
|
1f992f8dbd
|
Support of NOP opcode.
|
2018-03-28 14:52:16 +01:00 |
|
Chris Pressey
|
0093c7b7d9
|
First cut at support for targetting the Atari 2600.
|
2018-03-28 14:20:53 +01:00 |
|
Chris Pressey
|
bb0e7aa992
|
Track the gotos that we have encountered in a routine.
|
2018-03-27 17:27:09 +01:00 |
|
Chris Pressey
|
6744ad29a9
|
Beginnings of modularity.
|
2018-03-27 16:23:22 +01:00 |
|
Chris Pressey
|
d9e625db30
|
Clean up driver code, add filename to error messages.
|
2018-03-27 15:55:29 +01:00 |
|
Chris Pressey
|
3f0e36a67c
|
Add symbolic constants.
|
2018-03-27 12:36:33 +01:00 |
|
Chris Pressey
|
b91c3ed2f1
|
Add three more tests. Ensure they pass.
|
2018-03-26 17:40:43 +01:00 |
|
Chris Pressey
|
ceaae962d5
|
Make tests pass. Add two more tests towards completeness of spec.
|
2018-03-26 12:48:57 +01:00 |
|
Chris Pressey
|
96fbe03ce7
|
Make compilation tests pass.
|
2018-03-14 16:27:33 +00:00 |
|
Chris Pressey
|
adb53f7a04
|
Almost compile for loops correctly.
|
2018-03-14 15:33:11 +00:00 |
|
Chris Pressey
|
b79059faa4
|
Two seperate words looks better.
|
2018-03-14 09:51:24 +00:00 |
|
Chris Pressey
|
9a9db83fc6
|
Analyze the range in the for loop. All unit tests pass again.
|
2018-03-13 17:44:44 +00:00 |
|
Chris Pressey
|
7a3b52dc1e
|
More correct determination of tail position for purposes of goto .
|
2018-03-13 17:00:49 +00:00 |
|
Chris Pressey
|
689670a69e
|
Small bugfixes and changes.
|
2018-03-13 09:25:06 +00:00 |
|
Chris Pressey
|
994449ecb0
|
Make the loop variable unwriteable in the body of the "for" loop.
|
2018-03-08 17:41:42 +00:00 |
|
Chris Pressey
|
f73a2313bd
|
Add some failing tests for analyzing "for".
|
2018-03-08 17:17:49 +00:00 |
|
Chris Pressey
|
d815e05e0c
|
Syntax for "open-faced for loop".
|
2018-03-08 16:54:12 +00:00 |
|
Chris Pressey
|
bda0202dee
|
Confirm that AND clips the range and INC/DEC invalidate it.
|
2018-03-06 15:42:12 +00:00 |
|
Chris Pressey
|
1eaec602e3
|
The exception object now contains an AST node, renders name.
|
2018-03-06 14:39:47 +00:00 |
|
Chris Pressey
|
42cbd73a20
|
Show line numbers in static analysis errors (clumsily.)
|
2018-03-06 13:13:18 +00:00 |
|
Chris Pressey
|
e44c802314
|
Syntax errors have line numbers in them now.
|
2018-03-06 12:23:57 +00:00 |
|
Chris Pressey
|
9ad34ed34f
|
Refine the AST classes even more.
|
2018-03-06 10:43:23 +00:00 |
|
Chris Pressey
|
8a7e3aaebb
|
Flatten more.
|
2018-03-05 15:32:08 +00:00 |
|
Chris Pressey
|
1180d2fe2a
|
Attempt to flatten the code for generating code for copy .
|
2018-03-05 15:22:47 +00:00 |
|
Chris Pressey
|
c194808e64
|
Label the various cases for compiling a copy instruction.
|
2018-03-05 13:23:09 +00:00 |
|
Chris Pressey
|
c85159a9c0
|
Start trying to clean up the code for compiling copy .
|
2018-03-05 12:34:24 +00:00 |
|
Chris Pressey
|
b579e8b2eb
|
Refs have indexes. Instructions do not.
|
2018-03-05 12:19:27 +00:00 |
|
Chris Pressey
|
0a83d90515
|
Tighten structure of AST more.
|
2018-03-05 12:13:15 +00:00 |
|
Chris Pressey
|
4b43ba734e
|
Make AST more structured (borrowed from ALPACA.)
|
2018-03-05 11:55:06 +00:00 |
|
Chris Pressey
|
b42aa8b051
|
Fix error message.
|
2018-03-05 11:28:08 +00:00 |
|
Chris Pressey
|
d24e9fa2e1
|
I can no longer see a reason to require that it is a power of two.
|
2018-03-05 10:38:20 +00:00 |
|
Chris Pressey
|
42c4bed36e
|
Make tests pass.
|
2018-02-16 15:46:55 +00:00 |
|
Chris Pressey
|
0e0a3d552a
|
Implement Context.copy_range(), ranges for constants. Progress!
|
2018-02-14 16:35:19 +00:00 |
|
Chris Pressey
|
0687da80d5
|
Some headway on context.assert_in_range().
|
2018-02-14 15:54:57 +00:00 |
|
Chris Pressey
|
2897a04718
|
Get and set top of range of a location. Make AND do this to A reg.
|
2018-02-14 15:13:35 +00:00 |
|
Chris Pressey
|
93e2dada16
|
Check for table size (in parser, thus tests are for syntax.)
|
2018-02-14 13:53:22 +00:00 |
|
Chris Pressey
|
ab33331924
|
Associate a range with each meaningful storage location in context.
|
2018-02-14 13:31:03 +00:00 |
|
Chris Pressey
|
5fa8c69bd2
|
Don't fudge the name of IndexRefs; dig in to find the ref's name.
|
2018-02-13 17:17:27 +00:00 |
|
Chris Pressey
|
f6fa1ec7d2
|
Remove need for forward keyword in forward reference in copy .
|
2018-02-12 15:59:20 +00:00 |
|
Chris Pressey
|
08ec0e46a3
|
Remove the need for parens in vector (routine ...) table type.
|
2018-02-12 14:53:49 +00:00 |
|
Chris Pressey
|
e9d9c717bb
|
More statics in demo game.
|
2018-02-09 16:57:49 +00:00 |
|
Chris Pressey
|
7a024f3062
|
Compile static storage location access.
|
2018-02-09 16:13:09 +00:00 |
|
Chris Pressey
|
52fb1dc6b9
|
Inch toward compiling statics.
|
2018-02-09 14:44:41 +00:00 |
|
Chris Pressey
|
71cded0297
|
Move compiler towards being able to compile access to statics.
|
2018-02-09 14:13:39 +00:00 |
|
Chris Pressey
|
55331e9c54
|
Statics are always writeable. Statics are always meaningful.
|
2018-02-09 13:35:59 +00:00 |
|
Chris Pressey
|
b829836cdc
|
Ability to parse static definitions and look them up.
|
2018-02-09 12:33:45 +00:00 |
|
Chris Pressey
|
ca1c877a60
|
Support indirect refs in st, e.g. st a, [ptr] + y .
|
2018-02-09 11:23:18 +00:00 |
|
Chris Pressey
|
a7365731ca
|
Even if we goto another routine, we can't trash an output.
|
2018-02-08 16:37:40 +00:00 |
|