1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-23 23:32:55 +00:00
Commit Graph

1504 Commits

Author SHA1 Message Date
jespergravgaard
d0c23993cc Updated tests 2019-06-29 10:08:46 +02:00
jespergravgaard
2f8097ca17 Merge remote-tracking branch 'origin/master' 2019-06-29 09:55:29 +02:00
jespergravgaard
b3e7b6da8f Split into 16-bit and 8-bit tests. Added a ref-test. 2019-06-29 09:55:12 +02:00
Jesper Gravgaard
f25e0bde3b Found optimal 8-bit and 16-bit versions of atan2. 2019-06-28 22:45:26 +02:00
jespergravgaard
83ed437553 Working on atan2() 2019-06-28 17:05:54 +02:00
Jesper Gravgaard
13652f61f2 Now works in 4 quadrants. 2019-06-28 09:34:02 +02:00
jespergravgaard
c3cff0dff1 Added CORDIC atan2 implementation. 2019-06-26 09:24:25 +02:00
jespergravgaard
7574ed744c Optimized finding char to process by using table with distance to center. 2019-06-25 00:38:08 +02:00
jespergravgaard
77b75cb045 Now 202 t cycles through a little optimization. 2019-06-25 00:03:53 +02:00
jespergravgaard
3a919eda9d Added screen mirroring - optimizing to 227t cycles (from 750t). 2019-06-24 23:47:13 +02:00
jespergravgaard
28c1f71d5e Fixed void* pointer problem properly. Closes #205 2019-06-24 23:22:20 +02:00
jespergravgaard
908ccb19ce Fixed void* pointer problem. Closes #205 2019-06-24 22:46:07 +02:00
jespergravgaard
df4294414a Changed default to byte* 2019-06-24 19:48:18 +02:00
jespergravgaard
65419720c2 Fixed pointer subtraction error. Closes #206 2019-06-24 19:30:52 +02:00
jespergravgaard
50c8175b30 Added tests for two errors #205 and #206 2019-06-24 08:21:58 +02:00
jespergravgaard
b319398702 fixed tests 2019-06-24 00:31:08 +02:00
jespergravgaard
ca3d01e2b8 fixed tests 2019-06-24 00:28:30 +02:00
jespergravgaard
048d87b251 Moved routines into stdlib. 2019-06-24 00:22:23 +02:00
jespergravgaard
20ec350ca5 Added malloc tests. Improved cast handing in ASM fragments. Optimized screen center distance calculation (implemented table-based sqr() and sqrt() using binary search). 2019-06-23 23:44:55 +02:00
jespergravgaard
306bbc381f Put font-hex into a lib file 2019-06-23 11:26:11 +02:00
jespergravgaard
74c7abe229 Improved fragment synth to include _derefidx_vbuxx 2019-06-23 11:12:34 +02:00
jespergravgaard
576457a27d Updated fragment tests 2019-06-22 22:55:55 +02:00
jespergravgaard
5f61df4c16 Added hex code font. 2019-06-22 21:13:22 +02:00
jespergravgaard
281a77c06c Updated tests 2019-06-22 13:45:11 +02:00
jespergravgaard
03e76570b8 Added test for memcpy 2019-06-22 10:36:13 +02:00
jespergravgaard
1e3a6a2750 fixed tests 2019-06-22 00:36:24 +02:00
jespergravgaard
f2a770182e Added fragments. Added bitmap spiral test. 2019-06-22 00:25:28 +02:00
jespergravgaard
3ae5f0981a Added a file data segment. Improved negate word fragment. 2019-06-21 22:12:05 +02:00
jespergravgaard
b461fcfa74 Dropped memory.kc and fill() - Instead added C stdlib memset() to string.kc.
Pointer math on void pointer now results in an error.
2019-06-21 20:06:57 +02:00
jespergravgaard
1150cf859f fixed tests 2019-06-21 01:08:07 +02:00
jespergravgaard
3ff8effc51 Using void pointers in stdlib string. 2019-06-21 00:39:58 +02:00
jespergravgaard
7b2b8897a6 Void pointers now work. Closes #186 2019-06-21 00:36:42 +02:00
jespergravgaard
0a4ef77056 Working on fixing void pointers #186 2019-06-20 22:39:45 +02:00
jespergravgaard
d3e21133fa Added initial void pointer support. Working on #186 2019-06-19 23:16:59 +02:00
jespergravgaard
29f7265341 Shortened clearscreen a bit more. 2019-06-19 02:07:50 +02:00
jespergravgaard
cbe58167da Fixed test. 2019-06-19 02:05:31 +02:00
jespergravgaard
2acc1010ec Added a few enum error tests 2019-06-19 01:53:03 +02:00
jespergravgaard
291c87621e Added enum tests. Fixed inline enums inside structs. 2019-06-19 01:45:07 +02:00
jespergravgaard
f3982063eb Added test refs 2019-06-19 01:24:10 +02:00
jespergravgaard
8e0e8d7dce Implemented enum support for complex constants in enum values. Added enum to clearscreen. Changed constant expression handling in pass 0. 2019-06-19 01:23:27 +02:00
jespergravgaard
10082a5d96 Implemented enum support (excl. complex constant usage in values). Closes #119 2019-06-19 00:39:15 +02:00
jespergravgaard
e4af001041 Added enum syntax (no functionality yet). Working on #119 2019-06-18 18:36:01 +02:00
jespergravgaard
d111836faf fixed tests 2019-06-18 00:15:54 +02:00
jespergravgaard
d7b8f6ae55 Added a missing fragment and a newline. Added a petscii tester and started strings.h. 2019-06-17 23:57:45 +02:00
jespergravgaard
68c3c5918c Implemented support for char colors in clearscreen 2019-06-17 00:33:56 +02:00
jespergravgaard
4dfc4432c7 Removed all calls to ConstantIdentification.isAddressOfUsed(VarRef) since inferedVolatile now handles these situations. Structs are now working. Closes #57 2019-06-17 00:11:01 +02:00
jespergravgaard
40df42067b Any variable affected by address-of is now marked as infered volatile. Closes #200 2019-06-16 23:49:22 +02:00
jespergravgaard
3725bf6821 Added versions to struct-unwinding. 2019-06-16 22:26:17 +02:00
jespergravgaard
ad6eadad0b Added another struct address-of test passing the pointer to a procedure. 2019-06-16 21:48:13 +02:00
jespergravgaard
afc1b74ef8 Implemented unwound struct address-of rewriting to use first member. 2019-06-16 19:54:03 +02:00