1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-12 15:05:20 +00:00
Commit Graph

264 Commits

Author SHA1 Message Date
Karol Stasiak
34254314a6 6502: Fix word division and byte multiplication 2019-08-04 00:05:35 +02:00
Karol Stasiak
778d04ce21 6502: Fix sign extension when type casting 2019-08-03 20:33:49 +02:00
Karol Stasiak
d760683ea5 6502: Add tests for byte shifting 2019-08-03 20:33:15 +02:00
Karol Stasiak
48220f739d 8080: Fix byte division and simplify byte multiplication 2019-08-03 20:32:26 +02:00
Karol Stasiak
9962a8344a 6502: Fix booleans 2019-08-02 00:17:24 +02:00
Karol Stasiak
51da5ab2c0 6502: optimize bitops on words 2019-08-01 13:27:03 +02:00
Karol Stasiak
a1eef66e5c In case of overflows, dump stack 2019-07-31 23:36:22 +02:00
Karol Stasiak
5c5bfa3f00 6502: Allow comparing words on stack 2019-07-31 22:32:41 +02:00
Karol Stasiak
0f9bb4fb56 Detect stack overflow during Z80 tests 2019-07-31 22:29:50 +02:00
Karol Stasiak
22b4776139 Enable pointers to functions with a word parameter (using trampolines on 6502) 2019-07-30 22:49:32 +02:00
Karol Stasiak
943a56a30f 6502: Fix some cases of word additions; optimize bitmasking 2019-07-30 14:47:52 +02:00
Karol Stasiak
5c3637e2ea 6502: Optimize some word operations 2019-07-30 01:40:13 +02:00
Karol Stasiak
b68e4b67c8 Better support for big-endian systems 2019-07-29 22:51:08 +02:00
Karol Stasiak
cb0718b433 6809: First bits of the code generator 2019-07-29 00:55:24 +02:00
Karol Stasiak
35ba36ce11 Function pointers – initial version 2019-07-27 00:58:10 +02:00
Karol Stasiak
3aac33b54f Add the bool type. Few boolean-related bugfixes. 2019-07-26 19:02:32 +02:00
Karol Stasiak
8d4e7b9326 Assignments of large objects accessed through pointers 2019-07-26 14:49:06 +02:00
Karol Stasiak
4b25ce2d8c Pointers to fields of array elements 2019-07-24 00:14:27 +02:00
Karol Stasiak
20f4baf2b2 Allow setting segments for multiple declarations at once 2019-07-17 20:51:34 +02:00
Karol Stasiak
11825c43e1 Check if all segment exist right after parsing 2019-07-17 20:48:31 +02:00
Karol Stasiak
e0cd000b99 Documentation tweaks 2019-07-15 14:15:05 +02:00
Karol Stasiak
f3dcfc78ba Dijkstra wept 2019-07-15 02:06:23 +02:00
Karol Stasiak
6d499f3623 Arrays with elements larger than one byte 2019-07-10 16:51:12 +02:00
Karol Stasiak
62f79388bd Slowly move towards removing the farword alias 2019-07-09 22:03:53 +02:00
Karol Stasiak
8a5672c2dc Allow declaring multiple variables in one line 2019-07-08 19:24:11 +02:00
Karol Stasiak
56c1ab008d 6502: optimize special cases of bulk memory modifications 2019-07-08 19:02:42 +02:00
Karol Stasiak
767f0da703 Placeholder for future expansion 2019-07-08 09:26:51 +02:00
Karol Stasiak
3e0dad4cb0 Few more optimizations 2019-06-28 23:19:58 +02:00
Karol Stasiak
13c23c1bd1 Java 11 compatibility 2019-06-28 17:54:08 +02:00
Karol Stasiak
0af9bc4696 Better error reporting in arithmetic tests 2019-06-28 17:53:42 +02:00
Karol Stasiak
39b07a8bae Fix init_rw_memory on Atari 2600 2019-06-28 16:44:41 +02:00
Karol Stasiak
674f8d1983 Allow initializing writable variables on cartridge targets 2019-06-28 16:28:49 +02:00
Karol Stasiak
efe69eb5a9 Fix performance regressions and some bugs 2019-06-27 00:18:05 +02:00
Karol Stasiak
51599c9615 Allow defining free zeropage bytes instead of pointers 2019-06-26 18:33:59 +02:00
Karol Stasiak
c580ba33ea Fix nested #ifs 2019-06-26 18:31:45 +02:00
Karol Stasiak
c9a65d5971 Added #define directive 2019-06-26 13:43:15 +02:00
Karol Stasiak
22cdd1c768 Z80: Fix stack variable optimizations when addresses of stack variables are taken (2) 2019-06-26 10:46:59 +02:00
Karol Stasiak
afa871abcf Z80: Fix stack variable optimizations when addresses of stack variables are taken 2019-06-26 02:11:53 +02:00
Karol Stasiak
a3b21c4810 8080: Use pointers instead of indexing when traversing an array in a loop 2019-06-26 01:56:32 +02:00
Karol Stasiak
2282e56845 6502: Faster summing for-loops 2019-06-25 18:23:31 +02:00
Karol Stasiak
e394fe15c3 Add struct literals 2019-06-25 00:45:49 +02:00
Karol Stasiak
d8defaad82 Fix and document for-each loops 2019-06-24 23:51:17 +02:00
Karol Stasiak
25c440f17d Add local arrays 2019-06-24 22:32:29 +02:00
Karol Stasiak
663e38c264 Optimizations:
– optimize multiplication and division by constants
– optimize multiplication, division and shifts for size
2019-06-24 15:20:39 +02:00
Karol Stasiak
869211658a Division optimizations 2019-06-24 00:13:16 +02:00
Karol Stasiak
0205520bf9 Allow taking addresses of stack variables 2019-06-23 22:53:42 +02:00
Karol Stasiak
63c43c414a Various fixes related to the -> operator 2019-06-23 19:44:53 +02:00
Karol Stasiak
ba16021426 Allow using $$ instead of # in preprocessor directives 2019-06-14 15:33:17 +02:00
Karol Stasiak
2a233930e8 8080: improve comparisons against constants 2019-06-14 15:19:13 +02:00
Karol Stasiak
51a6ec9d73 Preprocessor: add #use A=B and if(i,t,e) 2019-06-14 12:00:45 +02:00