1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-11-08 03:07:29 +00:00
Commit Graph

403 Commits

Author SHA1 Message Date
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
a115c2bc9f Add notes for for-like loop. 2018-03-05 10:34:49 +00:00
Chris Pressey
42c4bed36e Make tests pass. 2018-02-16 15:46:55 +00:00
Chris Pressey
15fa4889e7 Add some more tests (failing currently). 2018-02-16 12:28:11 +00:00
Chris Pressey
e2d10d7d33 Documentation/notes changes for the 0.13 branch. 2018-02-16 09:51:24 +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
aa5b06980c Add some initial failing tests. 2018-02-14 13:41:48 +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
c10e73bdcb
Merge pull request #8 from catseye/develop-0.12
Develop 0.12
2018-02-14 11:41:51 +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
6039e59999 Small documentation sorting. 2018-02-12 16:40:53 +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
5c3c560fe4 Refine documentation. 2018-02-12 14:31:26 +00:00
Chris Pressey
79d7c8d198 button_down is local to check_button. 2018-02-09 16:59:01 +00:00
Chris Pressey
e9d9c717bb More statics in demo game. 2018-02-09 16:57:49 +00:00
Chris Pressey
1bd765dbce Begin using static in the demo game. 2018-02-09 16:46:53 +00:00
Chris Pressey
31a16ed37c
Merge pull request #7 from catseye/routine-static-storage
Routine static storage
2018-02-09 16:34:47 +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
8e1153ebb0 Update notes in README 2018-02-09 11:32:16 +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
Chris Pressey
105534de5b Trim the type of game_state_routine, but run into something odd. 2018-02-08 16:03:22 +00:00
Chris Pressey
1116229867 Clean up example programs a little bit. 2018-02-08 15:05:37 +00:00
Chris Pressey
3bee722900 The "union rule" lets us clean up some of these redundant trashes. 2018-02-08 14:20:17 +00:00
Chris Pressey
b20b664748 Implement the "union rule for trashes" when analyzing if blocks. 2018-02-08 14:04:51 +00:00
Chris Pressey
3f1f3bf16e Set a location as touched when trashed with a trash instruction. 2018-02-08 13:43:06 +00:00
Chris Pressey
f4befb45d3 Add more tests, which show inconsistent treatment of trashes. 2018-02-08 13:34:03 +00:00
Chris Pressey
cde2824c44 Articulate the "union rule" for trashes in if, add failing tests. 2018-02-08 12:46:28 +00:00
Chris Pressey
69f69d35a4 Update notes in README. 2018-02-08 12:18:55 +00:00
Chris Pressey
f92e1f15bf Tired: copy [ptr]+y, a. Wired: ld a, [ptr]+y. 2018-02-08 11:58:24 +00:00
Chris Pressey
34daad0e56 Make ld parse to a IndexedRef or IndirectRef (latter still todo.) 2018-02-08 11:04:11 +00:00
Chris Pressey
f87c07e52a
Merge pull request #6 from catseye/develop-0.11
Develop 0.11
2018-02-07 16:57:39 +00:00
Chris Pressey
15e1fa51dc Update documentation. 2018-02-07 14:48:55 +00:00
Chris Pressey
6fc3ce27cc Finally, vector table for actor logic in demo game works. 2018-02-07 13:58:10 +00:00