Chris Pressey
|
50433ac860
|
Find cycles in fallthru map. Try to break them; not right, yet.
|
2018-04-04 13:37:32 +01:00 |
|
Chris Pressey
|
d883816298
|
--optimize-fallthru and --dump-fallthru-info options.
|
2018-04-04 11:54:50 +01:00 |
|
Chris Pressey
|
2be4406964
|
Flesh out and describe the fallthru optimization algorithm.
|
2018-04-04 10:15:06 +01:00 |
|
Chris Pressey
|
8f1e35fb39
|
Add some tests, some failing, for expected fallthru maps.
|
2018-03-29 16:44:06 +01:00 |
|
Chris Pressey
|
fa1b0cfae1
|
Support branching and looping on the n flag.
|
2018-03-29 14:45:28 +01:00 |
|
Chris Pressey
|
b9fb26320c
|
Add some failing tests for looping on the n flag.
|
2018-03-29 13:33:06 +01:00 |
|
Chris Pressey
|
ebe53f540c
|
Fix bug when zero page address was $00.
|
2018-03-29 11:46:56 +01:00 |
|
Chris Pressey
|
eadf1eb4ae
|
A byte or word table can be initialized with a list of constants.
|
2018-03-29 11:09:02 +01:00 |
|
Chris Pressey
|
2f513f7291
|
Initial support for initializing byte tables with list of bytes.
|
2018-03-29 10:45:18 +01:00 |
|
Chris Pressey
|
9b912de17c
|
Accessing zero-page with ld and st generates zero-page opcodes.
|
2018-03-29 10:31:42 +01:00 |
|
Chris Pressey
|
1f992f8dbd
|
Support of NOP opcode.
|
2018-03-28 14:52:16 +01:00 |
|
Chris Pressey
|
3f0e36a67c
|
Add symbolic constants.
|
2018-03-27 12:36:33 +01:00 |
|
Chris Pressey
|
b91c3ed2f1
|
Add three more tests. Ensure they pass.
|
2018-03-26 17:40:43 +01:00 |
|
Chris Pressey
|
ceaae962d5
|
Make tests pass. Add two more tests towards completeness of spec.
|
2018-03-26 12:48:57 +01:00 |
|
Chris Pressey
|
d88757c32b
|
Rudimentarily document for ; add failing test cases for it.
|
2018-03-23 17:13:46 +00:00 |
|
Chris Pressey
|
adb53f7a04
|
Almost compile for loops correctly.
|
2018-03-14 15:33:11 +00:00 |
|
Chris Pressey
|
b79059faa4
|
Two seperate words looks better.
|
2018-03-14 09:51:24 +00:00 |
|
Chris Pressey
|
b073fe54a0
|
Tests for the downto variant too.
|
2018-03-13 17:49:48 +00:00 |
|
Chris Pressey
|
7a3b52dc1e
|
More correct determination of tail position for purposes of goto .
|
2018-03-13 17:00:49 +00:00 |
|
Chris Pressey
|
5f62de11c2
|
Add failing test for multiple gotos that are all in tail position.
|
2018-03-13 13:33:30 +00:00 |
|
Chris Pressey
|
f73a2313bd
|
Add some failing tests for analyzing "for".
|
2018-03-08 17:17:49 +00:00 |
|
Chris Pressey
|
d815e05e0c
|
Syntax for "open-faced for loop".
|
2018-03-08 16:54:12 +00:00 |
|
Chris Pressey
|
72efecbb1a
|
Support different preludes for different archs (c64 and vic20 now.)
|
2018-03-06 17:00:39 +00:00 |
|
Chris Pressey
|
bda0202dee
|
Confirm that AND clips the range and INC/DEC invalidate it.
|
2018-03-06 15:42:12 +00:00 |
|
Chris Pressey
|
1eaec602e3
|
The exception object now contains an AST node, renders name.
|
2018-03-06 14:39:47 +00:00 |
|
Chris Pressey
|
e44c802314
|
Syntax errors have line numbers in them now.
|
2018-03-06 12:23:57 +00:00 |
|
Chris Pressey
|
d24e9fa2e1
|
I can no longer see a reason to require that it is a power of two.
|
2018-03-05 10:38:20 +00:00 |
|
Chris Pressey
|
15fa4889e7
|
Add some more tests (failing currently).
|
2018-02-16 12:28:11 +00:00 |
|
Chris Pressey
|
0687da80d5
|
Some headway on context.assert_in_range().
|
2018-02-14 15:54:57 +00:00 |
|
Chris Pressey
|
93e2dada16
|
Check for table size (in parser, thus tests are for syntax.)
|
2018-02-14 13:53:22 +00:00 |
|
Chris Pressey
|
aa5b06980c
|
Add some initial failing tests.
|
2018-02-14 13:41:48 +00:00 |
|
Chris Pressey
|
f6fa1ec7d2
|
Remove need for forward keyword in forward reference in copy .
|
2018-02-12 15:59:20 +00:00 |
|
Chris Pressey
|
08ec0e46a3
|
Remove the need for parens in vector (routine ...) table type.
|
2018-02-12 14:53:49 +00:00 |
|
Chris Pressey
|
7a024f3062
|
Compile static storage location access.
|
2018-02-09 16:13:09 +00:00 |
|
Chris Pressey
|
71cded0297
|
Move compiler towards being able to compile access to statics.
|
2018-02-09 14:13:39 +00:00 |
|
Chris Pressey
|
55331e9c54
|
Statics are always writeable. Statics are always meaningful.
|
2018-02-09 13:35:59 +00:00 |
|
Chris Pressey
|
b829836cdc
|
Ability to parse static definitions and look them up.
|
2018-02-09 12:33:45 +00:00 |
|
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 |
|