Commit Graph

691 Commits

Author SHA1 Message Date
Chris Pressey c73590f88c Begin refactoring how the ParsingContext is used by the Parser. 2018-09-07 12:24:07 +01:00
Chris Pressey e7674c44ce Confirm constraint on `save`ing `a`. 2018-09-07 11:33:24 +01:00
Chris Pressey 19461bc205 Support `save X, Y, Z {}` as a shortcut syntax for nested `save`s. 2018-09-07 11:27:42 +01:00
Chris Pressey b63bcfcd2b Begin introducing shortcut syntax for nested `save`s. 2018-09-07 09:36:51 +01:00
Chris Pressey 0593ce6a66 Move merge_programs() out of main. Handle missing -o options. 2018-09-07 09:26:11 +01:00
Chris Pressey 8ce787a797 Inheritance hierarchy; binding is a little less awful. 2018-09-07 09:10:20 +01:00
Chris Pressey 0b6a66fdbb pyflakes. 2018-09-06 18:26:30 +01:00
Chris Pressey 99a0d5624a Awful binding, but at least this code isn't in main anymore. 2018-09-06 18:25:29 +01:00
Chris Pressey 24f093b1db Make all serialize() methods take addr() as an arg, not kwarg. 2018-09-06 18:11:47 +01:00
Chris Pressey 0a91d6bbc0 Rename method for more distinction/clarity. 2018-09-06 17:21:43 +01:00
Chris Pressey 8efa73f79d Explicitly sort the chains by their content, for stable sort. 2018-09-06 17:15:10 +01:00
Chris Pressey 10062fe2fb Fix whitespace (but not sorting) issue in --dump-fallthru-info. 2018-09-06 16:32:48 +01:00
Chris Pressey 4bba75857f --output cmdline argument, serialize() returns an array of bytes. 2018-09-06 16:18:41 +01:00
Chris Pressey 3fd7e52bc7 Reduce number of errors under Python 3 another smidge. 2018-09-06 14:21:29 +01:00
Chris Pressey 3c1564ea09 Abort loadngo apple2, if the SixtyPical program couldn't compile. 2018-09-06 12:50:47 +01:00
Chris Pressey c11869f322 Not making any promises, but reduce the errors under Python 3. 2018-09-05 21:45:58 +01:00
Chris Pressey fca00ff127 Rewrite the intro blurb in the README. 2018-09-05 21:36:18 +01:00
Chris Pressey 3e11d7122c Add apple2 target to loadngo.sh, apple2 example program. 2018-09-05 15:20:44 +01:00
Chris Pressey 3675a186a1 Add notes for Apple II target. 2018-09-05 12:59:38 +01:00
Chris Pressey 51b98df829 Split TODO off into own file. 2018-08-26 14:35:28 +01:00
Chris Pressey 8bba28cde2 Use relative, ?raw=true URL for embedded image. 2018-08-26 14:32:19 +01:00
Chris Pressey 642ca138a3
Merge pull request #13 from catseye/develop-0.16
Develop 0.16
2018-05-08 12:49:36 +01:00
Chris Pressey a73f6e1d94 Update HISTORY and README. 2018-05-08 12:48:15 +01:00
Chris Pressey c3a1bdb4cc Use save block (and a for loop) in the flagship demo game source. 2018-05-08 12:39:21 +01:00
Chris Pressey 8091c45a9a Fix test which is misleading due to the way the appliance works. 2018-05-08 12:14:30 +01:00
Chris Pressey 9b1d71a73e Correct some text in the test suite. 2018-05-08 12:00:55 +01:00
Chris Pressey 9536dd011f
Merge pull request #12 from catseye/save-block
Save block
2018-05-08 10:49:14 +01:00
Chris Pressey eb4ed6a6bc Extract locations from context appropriately. All tests pass. 2018-04-25 16:58:21 +01:00
Chris Pressey d037401b18 Add three tests. One fails when it shouldn't. 2018-04-25 15:55:36 +01:00
Chris Pressey 647fc33f63 Merge branch 'develop-0.16' of https://github.com/catseye/SixtyPical into save-block 2018-04-25 14:19:36 +01:00
Chris Pressey 2f200dc1ea Use --output-format, not --prelude, in loadngo script. 2018-04-25 13:48:38 +01:00
Chris Pressey 01e3ab00aa Make tests pass. 2018-04-25 13:40:39 +01:00
Chris Pressey 76ec7224cd Add failing tests for gotos inside runtime-context-making blocks. 2018-04-25 13:38:54 +01:00
Chris Pressey 4986454733 Support save'ing user-defined locations. 2018-04-25 13:27:47 +01:00
Chris Pressey 07541d7913 Compile code for saving a, x, or y on the stack. 2018-04-25 13:15:53 +01:00
Chris Pressey 80c46485f1 Saving anything except `a` trashes `a`. 2018-04-25 13:06:11 +01:00
Chris Pressey 1410989b2c Merge branch 'develop-0.16' of https://github.com/catseye/SixtyPical into save-block 2018-04-23 13:18:59 +01:00
Chris Pressey 89fa8361a8 Remove --prelude, reform and document --output-formats. 2018-04-23 13:18:01 +01:00
Chris Pressey 8df16d7a2a Another passing test which is a little surprising. 2018-04-20 14:35:41 +01:00
Chris Pressey 0f41857b39 Add two simple tests for save. Surprisingly, they both pass. 2018-04-20 13:36:08 +01:00
Chris Pressey 4d1f9d0f3c First cut at implementing `save`. Only the most basic tests though. 2018-04-19 13:18:52 +01:00
Chris Pressey 398b67cdcc Yet more TODO notes. 2018-04-19 10:35:21 +01:00
Chris Pressey 8a613febe2 More notes. 2018-04-19 09:54:24 +01:00
Chris Pressey 9adc543cc0 Add TODO note. 2018-04-18 17:59:42 +01:00
Chris Pressey 72fed579d1 Expand on the points in the TODOs. 2018-04-18 16:46:34 +01:00
Chris Pressey bc91ef1602 Compile byte-table add, sub, cmp, and, or, xor, shl, shr, inc, dec. 2018-04-18 16:32:12 +01:00
Chris Pressey 5fcbfa1d21 Analyze reads and updates of tables. 2018-04-18 15:45:47 +01:00
Chris Pressey 0c22944afc Able to parse, but not yet able to analyze, other table accesses. 2018-04-18 14:21:03 +01:00
Chris Pressey e565234d28 Support for `shl foo` and `shr foo` where `foo` is a byte storage. 2018-04-18 12:01:53 +01:00
Chris Pressey b451176f37 (Not possible because there are not Indirect,Y modes for LDX, STX) 2018-04-18 11:27:23 +01:00