Chris Pressey
|
ca1c877a60
|
Support indirect refs in st, e.g. st a, [ptr] + y .
|
2018-02-09 11:23:18 +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
|
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
|
7c8f113c07
|
Properly store address (not contents) of routine into vector table.
|
2018-02-07 13:56:17 +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
|
ed1ed3eb5d
|
Always analyze before compiling.
|
2018-02-06 16:14:44 +00:00 |
|
Chris Pressey
|
9778e083c1
|
Move test, add test, add assertion.
|
2018-02-06 11:52:50 +00:00 |
|
Chris Pressey
|
70ecd52e8a
|
Retain some syntax compatibility: make table a postfix operator.
|
2018-02-06 11:34:21 +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
|
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 |
|
Chris Pressey
|
20c824743e
|
Fix table access bug where index wasn't required to be initialized.
|
2018-02-05 12:35:19 +00:00 |
|
Chris Pressey
|
7dfd2cfe0c
|
Allow copying a routine directly into a vector table.
|
2018-02-05 12:04:28 +00:00 |
|
Chris Pressey
|
bbd3a84c00
|
Retain silly 'name inside the type' syntax (a la C) for now.
|
2018-02-05 11:18:35 +00:00 |
|
Chris Pressey
|
a082aee001
|
NOt 100% sure it's correct, but it seems close.
|
2018-02-02 17:56:50 +00:00 |
|
Chris Pressey
|
0fff8e4f0a
|
Begin to implement vector tables, stuck at a type equality problem.
|
2018-02-02 17:45:07 +00:00 |
|
Chris Pressey
|
eb1974eb8a
|
Vector tables can be parsed.
|
2018-02-02 17:18:25 +00:00 |
|
Chris Pressey
|
b29716fccf
|
Constraints for vector come immediately after the type expression.
|
2018-02-02 17:16:31 +00:00 |
|
Chris Pressey
|
548905dce4
|
Initialized byte tables need not have all 256 bytes initialized.
|
2018-02-02 16:31:23 +00:00 |
|
Chris Pressey
|
f9dc730f88
|
copy []+y, a to indirectly read byte into the a register.
|
2017-12-13 16:11:02 +00:00 |
|
Chris Pressey
|
c7861d375c
|
trash indicates a value is no longer considered meaningful.
|
2017-12-13 15:23:06 +00:00 |
|
Chris Pressey
|
5f535c963e
|
Subtract word (constant or memory location) from word memory location.
|
2017-12-13 14:07:59 +00:00 |
|
Chris Pressey
|
f87bcf5ee4
|
Initial work on initialized byte tables.
|
2017-12-12 16:41:49 +00:00 |
|
Chris Pressey
|
50390b0787
|
Can copy a literal word to a word table.
|
2017-12-12 16:04:59 +00:00 |
|
Chris Pressey
|
63f75a26b4
|
Initialized word type memory locations.
|
2017-12-12 15:34:51 +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
|
0194d37bbd
|
forward modifier on location expression, instead of assign .
|
2017-12-12 14:23:34 +00:00 |
|
Chris Pressey
|
b7b28830d7
|
Introducing a new pseudo-opcode is rarely an elegant solution.
|
2017-12-12 14:09:17 +00:00 |
|
Chris Pressey
|
19dd089a03
|
Allow call and goto routines defined further down in the source.
|
2017-12-12 13:17:00 +00:00 |
|
Chris Pressey
|
8dc44673fa
|
LocationRefs are equal if names/type are; this needed __str__ tho.
|
2017-12-12 12:45:47 +00:00 |
|
Chris Pressey
|
b3d2d0bfcf
|
Clearing up a little mystery I had here.
|
2017-12-12 10:10:58 +00:00 |
|
Chris Pressey
|
ec2e051518
|
Constraint sets may only contain labels, which are resolved late.
|
2017-12-11 17:49:02 +00:00 |
|
Chris Pressey
|
2a71c7e247
|
Add failing test for a vector being able to name itself in outputs.
|
2017-12-11 16:57:18 +00:00 |
|
Chris Pressey
|
b4709268bc
|
Check in test appliance (dcc6502-adapter) that was missed.
|
2017-12-11 13:46:06 +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
|
81aeb6c3f7
|
Use dcc6502 to disassemble code for comparison in unit tests.
|
2017-12-11 11:16:27 +00:00 |
|
Chris Pressey
|
404f8c72a3
|
We really need to review how storage location labels are emitted.
|
2017-12-08 16:59:31 +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
|
689ed37f2e
|
Beginnings of implementing word tables. One test still fails.
|
2017-12-08 13:41:48 +00:00 |
|
Chris Pressey
|
ad8e0647a4
|
Use right endianness when copy ing literal word into storage.
|
2017-12-07 16:49:43 +00:00 |
|
Chris Pressey
|
75cf18d3a2
|
Add word (constant or memory loc) to pointer (unchecked for now).
|
2017-12-07 14:14:43 +00:00 |
|
Chris Pressey
|
a4fd0e590b
|
Adding a word memory location to another word memory location.
|
2017-12-07 13:15:21 +00:00 |
|