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

641 Commits

Author SHA1 Message Date
Chris Pressey
f99cf47661
Merge pull request #15 from catseye/16-bit-compare
16-bit compare instruction
2018-11-29 17:46:48 +00:00
Chris Pressey
d598b505e0 Add more tests. 2018-11-27 17:40:25 +00:00
Chris Pressey
3814d2624d Improve tests. 2018-11-27 17:26:58 +00:00
Chris Pressey
d1befe7123 All tests pass again -- but this needs lots more tests please. 2018-11-27 17:11:37 +00:00
Chris Pressey
07ec6752ee Introduce yet another new error. 2018-11-27 17:09:38 +00:00
Chris Pressey
a53a3529ea Better name for this error. 2018-11-27 17:06:07 +00:00
Chris Pressey
21e623f3ad Collect exit contexts. Disturbs fallthru analysis, but otherwise? 2018-11-27 16:59:16 +00:00
Chris Pressey
0ca545c89a Begin working out what happens when you encounter a goto. 2018-11-27 15:44:39 +00:00
Chris Pressey
27aca3dd86 Looks like, when we "goto", we should "pull in" the constraints. 2018-11-27 15:10:18 +00:00
Chris Pressey
0c481845e9 Add failing test. 2018-11-27 14:52:59 +00:00
Chris Pressey
6dbce205d1 goto is no longer restricted to appearing in tail position. 2018-11-27 14:25:43 +00:00
Chris Pressey
9364a5fbec Small step towards the goal of this branch. 2018-11-27 13:56:32 +00:00
Chris Pressey
d90ac92a33 Merge branch 'develop-0.18' into goto-at-end-of-block 2018-11-27 13:55:36 +00:00
Chris Pressey
9e9284bee5 goto may only occur at the end of a block. 2018-11-27 13:43:36 +00:00
Chris Pressey
94ee042a1e Fix order of operands in word-sized cmp. 2018-11-27 13:12:55 +00:00
Chris Pressey
046e43cd66 Add another example. Even more convincing that the order is wrong. 2018-11-27 13:05:19 +00:00
Chris Pressey
2d767e9fe7 Add example program that suggests we've got the arguments backwards. 2018-11-23 23:11:06 +00:00
Chris Pressey
dcc944d732 If add and sub can work on words, then cmp can work on words too. 2018-11-23 23:00:41 +00:00
Chris Pressey
a765a50c1e Notes on compare. 2018-11-23 22:23:41 +00:00
Chris Pressey
0bc79d20d6 Merge branch 'develop-0.18' into 16-bit-compare 2018-11-23 22:17:05 +00:00
Chris Pressey
f860db055c Note what's on this development branch so far. 2018-11-23 22:16:21 +00:00
Chris Pressey
e74c7f2b31 Initial attempt at 16-bit compare. Not super well tested yet. 2018-11-23 22:09:28 +00:00
Chris Pressey
0429e4bd90 Make lexer greatly less inefficient on large source files. 2018-11-20 13:14:45 +00:00
Chris Pressey
3cd28bdb3e
Merge pull request #14 from catseye/develop-0.17
Develop 0.17
2018-11-16 11:48:24 +00:00
Chris Pressey
23936333ec These notes have been incorporated in the loadngo.sh script. 2018-11-16 11:41:41 +00:00
Chris Pressey
92db4ac3f0 More tests for "for" loops. 2018-09-16 21:30:53 +01:00
Chris Pressey
dd86015cd5 Add another test for for. There's another one I want to add too. 2018-09-16 18:45:09 +01:00
Chris Pressey
6e9b15e017 Small documentation updates. 2018-09-14 13:14:32 +01:00
Chris Pressey
7680f09850 More conversion. I think that's the last of it. 2018-09-09 15:31:35 +01:00
Chris Pressey
7d32277e2c More conversion. 2018-09-09 15:03:43 +01:00
Chris Pressey
5549b8379f More conversion. 2018-09-09 14:01:38 +01:00
Chris Pressey
f81757fd76 Partial conversion of example programs. 2018-09-07 23:00:29 +01:00
Chris Pressey
38119dbe29 Convert all tests to new syntax. 2018-09-07 22:55:54 +01:00
Chris Pressey
5e692446b8 Convert remainder of routine declarations in this file. 2018-09-07 22:49:39 +01:00
Chris Pressey
da44e1b22e Many, many define main routine, define foo routine, etc. 2018-09-07 18:49:39 +01:00
Chris Pressey
0c63de9351 Merge branch 'develop-0.17' into remove-legacy-syntax 2018-09-07 17:49:03 +01:00
Chris Pressey
ff54a568a8 Update TODO 2018-09-07 17:47:59 +01:00
Chris Pressey
505fcb7b92 game_state_routines pass through player_died; saves a few bytes. 2018-09-07 17:41:40 +01:00
Chris Pressey
443c3186c2 Change global instead of returning with carry set. 2018-09-07 17:38:56 +01:00
Chris Pressey
fee36294db Update TODO and HISTORY. 2018-09-07 15:35:42 +01:00
Chris Pressey
684b26dd5c locexpr() always returns a ForwardReference if it can't lookup it. 2018-09-07 15:03:41 +01:00
Chris Pressey
07ef1e243a backpatch_constraint_labels can resolve ForwardReferences. 2018-09-07 14:51:16 +01:00
Chris Pressey
29a5bba85c Distinct symbol resolution phase (as a method on parser.) 2018-09-07 14:27:49 +01:00
Chris Pressey
cc98e023c4 Simply always produce ForwardReferences in locexpr(forward=True). 2018-09-07 14:02:40 +01:00
Chris Pressey
d70092c373 Even more general. 2018-09-07 13:42:18 +01:00
Chris Pressey
af0e1b41c7 Forward-reference resolution becomes increasingly general. 2018-09-07 13:40:41 +01:00
Chris Pressey
26a2fb448c Generalize forward reference resolution a smidge. 2018-09-07 13:27:18 +01:00
Chris Pressey
33d5093e5a Resolve forward references more explicitly. 2018-09-07 13:20:18 +01:00
Chris Pressey
7c9f76c007 Removing support for it is one thing, updating all tests another. 2018-09-07 13:03:57 +01:00
Chris Pressey
5bad7ff576 Another conversion away from self.context.fetch to self.declare. 2018-09-07 12:43:55 +01:00