1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-06-02 03:41:28 +00:00
Commit Graph

175 Commits

Author SHA1 Message Date
Chris Pressey
d9c9dab9e7 Clear the screen when starting the game. 2017-12-13 12:32:24 +00:00
Chris Pressey
9c7082db6e Display message on-screen at start of game. 2017-12-13 12:24:11 +00:00
Chris Pressey
4854077cce Correctly analyze repeat { ... } forever loops. 2017-12-12 15:18:59 +00:00
Chris Pressey
3417fd96c7 Apparently this hack was only needed previously due to a bug? 2017-12-12 14:55:57 +00:00
Chris Pressey
7d11273c6c Slightly less of a hack. Not very much. But more illustrative. 2017-12-12 14:40:32 +00:00
Chris Pressey
5e8f41307d Give the "game" a "title screen" of sorts; click to begin. 2017-12-12 10:58:59 +00:00
Chris Pressey
b3d2d0bfcf Clearing up a little mystery I had here. 2017-12-12 10:10:58 +00:00
Chris Pressey
e46c6f6c6e Improve error messaging yet more. Game kind of has game states now. 2017-12-12 09:59:43 +00:00
Chris Pressey
7323927f72 Add more notes and basically small cleanups in many places. 2017-12-11 15:21:40 +00:00
Chris Pressey
4f919c1d81 Slightly frustrating, but illuminating, attempt to title screen. 2017-12-11 14:40:30 +00:00
Chris Pressey
73810827b9 "repeat forever" in the main loop, or at least as close as we can. 2017-12-11 14:21:32 +00:00
Chris Pressey
b6ae45e0cb Add a routine to clear the screen, in the demo game. Untested. 2017-12-11 14:09:55 +00:00
Chris Pressey
b395dbcfda Spiff up the demo game source a little bit. 2017-12-11 14:01:57 +00:00
Chris Pressey
2216fcec17 copy from word storage to word table and back, indexed by x or y. 2017-12-11 12:02:48 +00:00
Chris Pressey
b86e7491d5 Copy word to word table. 2017-12-11 11:43:53 +00:00
Chris Pressey
84ca6c4e96 Break the ground where we need to implement word table read/write. 2017-12-08 15:53:18 +00:00
Chris Pressey
ad8e0647a4 Use right endianness when copying literal word into storage. 2017-12-07 16:49:43 +00:00
Chris Pressey
14494bcdbe Add beginnings of thing which may one day become a game. Untested. 2017-12-07 16:14:02 +00:00
Chris Pressey
92525fd482 Adding a constant word to a memory location. 2017-12-07 12:48:56 +00:00
Chris Pressey
cf679b293a Ability to --debug analysis. Make 16-bit addition test pass. 2017-12-07 11:49:15 +00:00
Chris Pressey
d84566a880 Write stored values, and read values, through pointers. 2017-12-01 13:52:56 +00:00
Chris Pressey
32389e4422 Require that the program does ^buf to get at the address of buf. 2017-12-01 12:36:58 +00:00
Chris Pressey
19a196f765 Compile copy[]+y. 2017-11-24 16:56:55 +00:00
Chris Pressey
c8c69a2a7d Fix problem with test case, and with serializing as zero page. 2017-11-24 13:42:14 +00:00
Chris Pressey
22cc7bfc11 Support copy'ing a word constant to a word location. Joystick eg. 2017-11-20 15:18:21 +00:00
Chris Pressey
2c564f0e48 Add uncommitted example source, and fix names of 2 others. 2016-06-16 11:14:08 -05:00
Chris Pressey
3e72580cd2 Prep for release of 0.6. 2015-10-23 16:37:18 +01:00
Chris Pressey
0b2b5d904e Implement indirect JSRs with trampolines in theory; doesn't work. 2015-10-22 15:45:16 +01:00
Chris Pressey
16450e06d5 Compile goto's. 2015-10-21 15:51:52 +01:00
Chris Pressey
69fa91417c Add missing example source 2015-10-20 17:39:00 +01:00
Chris Pressey
7d56705530 Check that the constraints on a routine match those of vector. 2015-10-19 19:17:27 +01:00
Chris Pressey
e3fe337730 Interesting dead end we've got ourselves into here. 2015-10-18 23:31:17 +01:00
Chris Pressey
9235c6eacc Support line comments. 2015-10-18 18:54:28 +01:00
Chris Pressey
a9bd8a3714 Indexed access, + x / + y, at least for LDA and STA.
--HG--
rename : eg/screen.60p => eg/screen1.60p
2015-10-18 18:32:20 +01:00
Chris Pressey
522c771208 Add explicitly-addressed memory locations. 2015-10-18 16:22:36 +01:00
Chris Pressey
49e42af953 Implement if not and repeat forever. 2015-10-18 15:32:28 +01:00
Chris Pressey
c5998ed240 Compile repeat loops. 2015-10-18 13:55:40 +01:00
Chris Pressey
b794d8d273 Get serialization of relative labels correct. 2015-10-17 18:11:23 +01:00
Chris Pressey
e62fd85ccf Compile access of defined memory locations. 2015-10-17 15:46:28 +01:00
Chris Pressey
643a48a2c5 Compiler object, labels, compile 'call'... It prints 'A'! 2015-10-17 15:06:50 +01:00
Chris Pressey
d0e3dfbf84 Add tests for compilation, BASIC header, load-n-go script. 2015-10-17 12:28:39 +01:00
Chris Pressey
f92056d640 REBOOT the entire language & implementation as version 0.2-PRE. 2015-10-16 09:30:24 +01:00
Cat's Eye Technologies
5a794a46e6 Name flags in routine outputs. Refactor game, add check_button. 2014-04-13 13:42:15 +01:00
Cat's Eye Technologies
730f9f1cb1 Make game even more interesting -- 619 bytes. 2014-04-13 13:14:04 +01:00
Cat's Eye Technologies
cbd88abc89 Vector tables, and copy routine into a vector table. 2014-04-13 12:41:26 +01:00
Cat's Eye Technologies
eec59ac8a9 Make game more interesting (and 544 bytes long...) 2014-04-13 12:24:21 +01:00
Cat's Eye Technologies
13d38dc45f Immediate, or register, on LHS of copy command. 2014-04-13 12:12:53 +01:00
Cat's Eye Technologies
26448ccce5 More access of word tables. Game works with a word table now! 2014-04-13 12:06:36 +01:00
Cat's Eye Technologies
cbeac87a73 Beginnings of using word tables 2014-04-13 11:41:40 +01:00
Cat's Eye Technologies
cac23cc7d0 Two kinds of actor. We now need vector tables! 2014-04-12 21:45:27 +01:00
Cat's Eye Technologies
04678ca809 Block-level decls are visible in inner blocks. 2014-04-12 21:27:04 +01:00
Cat's Eye Technologies
23185b8045 Work on game a bit. Multiple actors. 2014-04-12 21:20:45 +01:00
Cat's Eye Technologies
8acde175ad mergeRoutCtxs does not need to throw poisoning errors. 2014-04-12 20:37:42 +01:00
Cat's Eye Technologies
af7d65ee09 Fix example programs; allow externals to be called.
--HG--
rename : eg/hi.60p => eg/hello-world.60p
2014-04-12 19:13:13 +01:00
Cat's Eye Technologies
9a0896c90f Explicit with syntax. 2014-04-11 21:26:27 +01:00
Cat's Eye Technologies
2fb9621a04 Switch to C++/Javascript-style comments, in whitespace production. 2014-04-11 16:21:54 +01:00
Cat's Eye Technologies
3ff96a0353 Fix (bodge?) and document my worries. 2014-04-04 19:50:34 +01:00
Cat's Eye Technologies
de4a6a7c83 report the name of the routine that does not preserve locations 2014-04-04 19:23:27 +01:00
Cat's Eye Technologies
5e4bf5caad Get eg/* working again. 2014-04-04 16:16:51 +01:00
Cat's Eye Technologies
b455709ef1 Analyze bfore mitting 2014-04-04 15:45:49 +01:00
Cat's Eye Technologies
2088769b8e Generalized copy command for great justice. 2014-04-03 22:07:19 +01:00
Cat's Eye Technologies
0850162d43 Improve game slightly. Add foldRoutine*, use in checker. 2014-04-03 20:29:43 +01:00
Cat's Eye Technologies
571b3d403b Fix jmp (vector) syntax. Filename extension is .60p.
--HG--
rename : eg/cinv.60pical => eg/cinv.60p
rename : eg/demo.60pical => eg/demo.60p
rename : eg/hi.60pical => eg/hi.60p
rename : eg/screen.60pical => eg/screen1.60p
rename : eg/screen2.60pical => eg/screen2.60p
rename : eg/screen3.60pical => eg/screen3.60p
2014-04-03 18:52:58 +01:00
Cat's Eye Technologies
cfbc840195 version of demo with joystick is almost a game. 2014-04-02 22:11:27 +01:00
Cat's Eye Technologies
e8e9e00a19 Use words in demo. 2014-04-02 21:37:23 +01:00
Cat's Eye Technologies
061a1661dd Indexed indirect. For a relaxing demo. 2014-04-02 17:48:44 +01:00
Cat's Eye Technologies
765073f94e Add some demos, one of which works. 2014-04-02 14:24:43 +01:00
Cat's Eye Technologies
abe2279b46 Emit externals, jsr, eg that uses Kernal. 2014-04-02 13:39:54 +01:00
Cat's Eye Technologies
c80591f7f5 Finally, this. 2014-04-01 23:27:54 +01:00
Cat's Eye Technologies
cb0fe91a8a Wow, we have an interrupt handler. Well, a cinv. Good enough! 2014-04-01 22:05:02 +01:00
Cat's Eye Technologies
4cceb05256 Immediate mode versions of ldx, ldy, cmp, cpx, cpy. 2014-04-01 18:34:41 +01:00
Cat's Eye Technologies
421bf03f8a We have repeat loops now. 2014-04-01 17:55:59 +01:00
Cat's Eye Technologies
6132b05b27 if statement takes any kind of branch. instruction support table 2014-04-01 17:00:16 +01:00
Cat's Eye Technologies
8c9dfe7004 Ophis AND VICE like the look of things now. 2014-04-01 15:09:28 +01:00
Cat's Eye Technologies
650405c2fe Initial import. 2014-03-31 23:14:07 +01:00