1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2026-03-11 14:42:13 +00:00

Commit Graph

  • 69fa91417c Add missing example source Chris Pressey 2015-10-20 17:39:00 +01:00
  • 6e0ca3838e Recast Evaluator as an object. Handle goto inside it. Chris Pressey 2015-10-20 14:39:32 +01:00
  • be76b9a00d Syntax for goto. Chris Pressey 2015-10-20 14:10:33 +01:00
  • 16649042cb I kind of forgot that indirect JSR needs a trampoline first :/ Chris Pressey 2015-10-20 13:15:21 +01:00
  • f16cb75677 Fix compiler. All tests pass once again. Chris Pressey 2015-10-20 12:53:07 +01:00
  • b4e0756d7e Unbreak evaluator, but break compiler b/c change in parser. Chris Pressey 2015-10-20 10:07:28 +01:00
  • 2dc4dd988e Parse indirect calls, but break evaluator. Chris Pressey 2015-10-20 09:33:30 +01:00
  • 7d56705530 Check that the constraints on a routine match those of vector. Chris Pressey 2015-10-19 19:17:27 +01:00
  • 3010435add Inputs/outputs/trashes are now part of the type information only. Chris Pressey 2015-10-19 18:44:20 +01:00
  • 98524e931a Vector and routine types are constructors with constraints now. Chris Pressey 2015-10-19 18:18:06 +01:00
  • f0b8942aa1 Allow vectors to be decorated with inputs/outputs/trashes; test. Chris Pressey 2015-10-19 13:04:08 +01:00
  • a12a44eadb Re-enable disabled test and fix it and add a few related tests. Chris Pressey 2015-10-19 12:22:44 +01:00
  • 04de73d04d Solve this by defining an Offset emittable. Chris Pressey 2015-10-19 08:55:47 +01:00
  • e3fe337730 Interesting dead end we've got ourselves into here. Chris Pressey 2015-10-18 23:31:17 +01:00
  • 645079f03a Implement 'with interrupts off'. Chris Pressey 2015-10-18 23:15:40 +01:00
  • fd07f4bae9 More sophisticated static analysis: writeable, touched, meaningful. Chris Pressey 2015-10-18 22:27:51 +01:00
  • 8b30a232fa Analyze copy, but... we now need more sophisticated context. :/ Chris Pressey 2015-10-18 20:16:14 +01:00
  • c98e446583 Spec and syntax for vectors and copy instruction. Chris Pressey 2015-10-18 19:41:26 +01:00
  • ab1b5990e7 Added tag 0.5 for changeset 19c782179db9 Chris Pressey 2015-10-18 19:02:21 +01:00
  • 6b69b5da3a Removed tag 0.6 0.5 Chris Pressey 2015-10-18 19:02:15 +01:00
  • cce9e897e9 Added tag 0.6 for changeset 7a39b84bb002 Chris Pressey 2015-10-18 19:02:10 +01:00
  • 41414b0a1f Prep for release of 0.5. Chris Pressey 2015-10-18 19:02:07 +01:00
  • 9235c6eacc Support line comments. Chris Pressey 2015-10-18 18:54:28 +01:00
  • a933c81768 Well, that's a hack. But it works. Chris Pressey 2015-10-18 18:47:47 +01:00
  • a9bd8a3714 Indexed access, + x / + y, at least for LDA and STA. Chris Pressey 2015-10-18 18:32:20 +01:00
  • 5a5953ca4c A little awkward, but analyze byte table access correctly. Chris Pressey 2015-10-18 18:12:47 +01:00
  • f4186c5f22 AbsoluteX, AbsoluteY addressing modes in 6502-code generator. Chris Pressey 2015-10-18 17:47:45 +01:00
  • 4287bf81c1 Parse byte table declarations and indexing modifiers. Chris Pressey 2015-10-18 17:40:53 +01:00
  • 41432b5cb3 Syntax is syntax, test it there. Register built-ins as symbols. Chris Pressey 2015-10-18 17:32:12 +01:00
  • e1cf162a5b Refs have types. Chris Pressey 2015-10-18 17:23:01 +01:00
  • 4990493b11 Added tag 0.4 for changeset d30f05a8bb46 Chris Pressey 2015-10-18 16:34:21 +01:00
  • f809a5ebd1 Prep for release of 0.4. 0.4 Chris Pressey 2015-10-18 16:34:18 +01:00
  • 522c771208 Add explicitly-addressed memory locations. Chris Pressey 2015-10-18 16:22:36 +01:00
  • 49e42af953 Implement if not and repeat forever. Chris Pressey 2015-10-18 15:32:28 +01:00
  • c5998ed240 Compile repeat loops. Chris Pressey 2015-10-18 13:55:40 +01:00
  • f7eb0d48a8 Spec, parse, evaluate, and analyze repeat blocks. Chris Pressey 2015-10-18 13:37:35 +01:00
  • 24273f1344 Update documentation to reflect this is now 0.4-PRE. Chris Pressey 2015-10-17 18:31:15 +01:00
  • 7613c37a49 Added tag 0.3 for changeset 5d95f1d75a32 Chris Pressey 2015-10-17 18:29:37 +01:00
  • 8daa1449c4 Bump version number for release of version 0.3. 0.3 Chris Pressey 2015-10-17 18:29:33 +01:00
  • 070ffacf69 Don't generate code for empty else blocks. Chris Pressey 2015-10-17 18:25:54 +01:00
  • b794d8d273 Get serialization of relative labels correct. Chris Pressey 2015-10-17 18:11:23 +01:00
  • a5c3b4725d Pass address when serializing. Still wrong, of course. Chris Pressey 2015-10-17 16:51:35 +01:00
  • b6bb64528f Implement compiling if, but we need relative addressing first. Chris Pressey 2015-10-17 16:34:02 +01:00
  • 479b484313 Compile the rest of the instructions. Chris Pressey 2015-10-17 16:17:35 +01:00
  • e62fd85ccf Compile access of defined memory locations. Chris Pressey 2015-10-17 15:46:28 +01:00
  • a3160a5166 Call defined routines. Chris Pressey 2015-10-17 15:23:00 +01:00
  • 643a48a2c5 Compiler object, labels, compile 'call'... It prints 'A'! Chris Pressey 2015-10-17 15:06:50 +01:00
  • 2ffff3bbdb Make extern routines survive analysis. Chris Pressey 2015-10-17 14:54:28 +01:00
  • 49d90dfae0 Add syntax for extern routines, add syntax tests. Chris Pressey 2015-10-17 13:50:21 +01:00
  • d716c9b4e0 Update TODO plan. Chris Pressey 2015-10-17 12:30:45 +01:00
  • d0e3dfbf84 Add tests for compilation, BASIC header, load-n-go script. Chris Pressey 2015-10-17 12:28:39 +01:00
  • 5b429adfd9 6502 opcodes are Emittables. Can compile simple programs now! Chris Pressey 2015-10-17 11:08:25 +01:00
  • c0243ee6ba Wire up the compiler and wring out obvious bugs. Chris Pressey 2015-10-17 10:17:44 +01:00
  • ba55065060 Sketch the compiler. Chris Pressey 2015-10-16 23:12:52 +01:00
  • bb7fbcda6c Add Emitter framework, and 6502 Generator (will likely change.) Chris Pressey 2015-10-16 22:59:35 +01:00
  • 20ff255b40 Added tag 0.2 for changeset 9ad29480d9bb Chris Pressey 2015-10-16 19:34:01 +01:00
  • a300ac11bc Prep for release of version 0.2. 0.2 Chris Pressey 2015-10-16 19:33:58 +01:00
  • 22c58ba556 Improve evaluator internals. Finish test suite for analysis. Chris Pressey 2015-10-16 19:32:18 +01:00
  • 4d61f439bc Fix up spec, split off to 6502 opcodes doc, add some tests. Chris Pressey 2015-10-16 19:15:01 +01:00
  • 4fc38be387 Update spec. Chris Pressey 2015-10-16 18:39:38 +01:00
  • 8ccabdf202 Work on the spec a bit. Chris Pressey 2015-10-16 15:36:56 +01:00
  • c3a0659058 Write sufficient tests (I think) for analysis of ifs. Chris Pressey 2015-10-16 14:01:45 +01:00
  • d22edc52a9 Allow if analysis to pass (needs more tests.) Better styling. Chris Pressey 2015-10-16 13:06:18 +01:00
  • 9c201ccf07 Fix links in README. Implement Context.clone(). Chris Pressey 2015-10-16 10:54:12 +01:00
  • dd4c50fc50 Refactor to replace some sketchy code with code actually in use. Chris Pressey 2015-10-16 10:40:38 +01:00
  • 15e6a732f5 Add TODO to README, update license information. Chris Pressey 2015-10-16 10:00:51 +01:00
  • 6192a6a7f8 Add specific error for uninit outputs. Sketch if analysis. Chris Pressey 2015-10-16 09:38:38 +01:00
  • f92056d640 REBOOT the entire language & implementation as version 0.2-PRE. Chris Pressey 2015-10-16 09:30:24 +01:00
  • c06e2ba2b6 Fix a few small typo's. Chris Pressey 2015-05-29 15:23:40 +01:00
  • dedd1bb792 Added tag 0.1-2014.1230 for changeset 6490aea10e20 Chris Pressey 2014-12-30 13:03:19 +00:00
  • d56e261b07 Don't use deprecated Falderal variable names anymore. 0.1-2014.1230 Chris Pressey 2014-09-24 19:58:14 +01:00
  • a0f8afa76f Added tag 0.1 for changeset 923e42a2d0c1 Chris Pressey 2014-05-25 17:52:08 +01:00
  • 922fcfd1fc Parsec that ships with Hugs throws weirder errors sometimes. 0.1 Cat's Eye Technologies 2014-04-27 10:34:26 +01:00
  • bd25d7b9f0 Make work under Hugs98 Sep2006. Falderal needs improving, though. Cat's Eye Technologies 2014-04-26 15:17:53 +01:00
  • cfd99c69e2 Tweaks to README. Cat's Eye Technologies 2014-04-26 14:41:33 +01:00
  • 2091dada5e Add failing test. Cat's Eye Technologies 2014-04-25 23:21:00 +01:00
  • 5a794a46e6 Name flags in routine outputs. Refactor game, add check_button. Cat's Eye Technologies 2014-04-13 13:42:15 +01:00
  • 730f9f1cb1 Make game even more interesting -- 619 bytes. Cat's Eye Technologies 2014-04-13 13:14:04 +01:00
  • cbd88abc89 Vector tables, and copy routine into a vector table. Cat's Eye Technologies 2014-04-13 12:41:26 +01:00
  • eec59ac8a9 Make game more interesting (and 544 bytes long...) Cat's Eye Technologies 2014-04-13 12:24:21 +01:00
  • 13d38dc45f Immediate, or register, on LHS of copy command. Cat's Eye Technologies 2014-04-13 12:12:53 +01:00
  • 26448ccce5 More access of word tables. Game works with a word table now! Cat's Eye Technologies 2014-04-13 12:06:36 +01:00
  • cbeac87a73 Beginnings of using word tables Cat's Eye Technologies 2014-04-13 11:41:40 +01:00
  • 16d6a54fb5 Parse (at the very least) decls for word and vector tables. Cat's Eye Technologies 2014-04-12 21:54:00 +01:00
  • cac23cc7d0 Two kinds of actor. We now need vector tables! Cat's Eye Technologies 2014-04-12 21:45:27 +01:00
  • 04678ca809 Block-level decls are visible in inner blocks. Cat's Eye Technologies 2014-04-12 21:27:04 +01:00
  • 23185b8045 Work on game a bit. Multiple actors. Cat's Eye Technologies 2014-04-12 21:20:45 +01:00
  • 8acde175ad mergeRoutCtxs does not need to throw poisoning errors. Cat's Eye Technologies 2014-04-12 20:37:42 +01:00
  • af7d65ee09 Fix example programs; allow externals to be called. Cat's Eye Technologies 2014-04-12 19:13:13 +01:00
  • ad1e159317 Character tables. Emit tables properly. Cat's Eye Technologies 2014-04-12 13:55:08 +01:00
  • 7a3b3b1b25 Initial values for reserved tables; checks length is right. Cat's Eye Technologies 2014-04-12 13:38:11 +01:00
  • f9d0c8173d Handle tricky case of abs.interp.'ing a repeat loop. Cat's Eye Technologies 2014-04-12 13:07:46 +01:00
  • 2607e408d5 Update notes in README. Cat's Eye Technologies 2014-04-12 12:55:33 +01:00
  • 1f2f4a313a Add .gitignore. Cat's Eye Technologies 2014-04-12 12:40:32 +01:00
  • 6095aefc5e Add BSD-style licensing. Cat's Eye Technologies 2014-04-12 12:37:49 +01:00
  • 00daec53a7 Check that block-level reserves do not supply initial value. Cat's Eye Technologies 2014-04-12 12:23:10 +01:00
  • 915b0cfef0 Number each temporary uniquely across program. Sweet! Cat's Eye Technologies 2014-04-12 12:16:09 +01:00
  • 7a7127fc06 Get storage location renaming almost right. Cat's Eye Technologies 2014-04-12 12:12:14 +01:00
  • f3924d1bad Lift block-level decls to top-level; still needs to rename them. Cat's Eye Technologies 2014-04-12 11:45:10 +01:00
  • aaec12d5e5 Initial, awkward support for block-level declarations, including a failing test. Cat's Eye Technologies 2014-04-11 22:50:03 +01:00