1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-11-22 17:32:01 +00:00
Commit Graph

480 Commits

Author SHA1 Message Date
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
Chris Pressey
7c8f113c07 Properly store address (not contents) of routine into vector table. 2018-02-07 13:56:17 +00:00
Chris Pressey
1ee60095db Fairly minimal example that exhibits the problem. 2018-02-07 13:43:41 +00:00
Chris Pressey
6c1c1cb153 Include final RTS when emitting trampolines for indirect calls. 2018-02-07 11:11:14 +00:00
Chris Pressey
b4f5d60ad3 I think it should actually look like this! 2018-02-06 17:00:04 +00:00
Chris Pressey
4099c9cc1b Attempting to debug this vector table stuff. 2018-02-06 16:45:35 +00:00
Chris Pressey
735bfe2e77 Update loadngo script. 2018-02-06 16:35:38 +00:00
Chris Pressey
ed1ed3eb5d Always analyze before compiling. 2018-02-06 16:14:44 +00:00
Chris Pressey
43b3a088b0 Use a vector table in the demo game. 2018-02-06 15:03:59 +00:00
Chris Pressey
02d703aaf1 Add typedefs to HISTORY. 2018-02-06 13:08:17 +00:00
Chris Pressey
bae152f94d
Merge pull request #5 from catseye/refactor-types-for-typedefs
Refactor types for typedefs
2018-02-06 11:55:07 +00:00
Chris Pressey
9778e083c1 Move test, add test, add assertion. 2018-02-06 11:52:50 +00:00
Chris Pressey
783d8764ca Attempt to bring the grammar up to date. 2018-02-06 11:46:11 +00:00
Chris Pressey
043872584b Add another typedef in the demo game. 2018-02-06 11:41:32 +00:00
Chris Pressey
fa5f32b2d2 Update syntax of demo game. 2018-02-06 11:36:11 +00:00
Chris Pressey
70ecd52e8a Retain some syntax compatibility: make table a postfix operator. 2018-02-06 11:34:21 +00:00
Chris Pressey
f78460a37b Finally, use typedefs in example game. 2018-02-06 10:41:21 +00:00
Chris Pressey
44ee8efbef When backpatching constraints, don't strip ones we've already done. 2018-02-06 10:28:41 +00:00
Chris Pressey
612ae588f7 Add some tests, fix some bugs, show that one bug remains. 2018-02-06 10:05:56 +00:00
Chris Pressey
c12a76e106 Make assertions more robust, in hopes of hunting down bugs. 2018-02-06 09:52:01 +00:00
Chris Pressey
afd083052e Update syntax in proto-game. 2018-02-05 18:14:44 +00:00
Chris Pressey
74f8675761 Start of typedef support. 2018-02-05 18:12:48 +00:00
Chris Pressey
0be721667a Kind-of not-pretty syntax refactor to support adding typedefs. 2018-02-05 17:01:25 +00:00
Chris Pressey
15072eff52 The evaluator doesn't add much and keeps falling behind; remove it. 2018-02-05 13:17:23 +00:00