Irmen de Jong
|
bde4be8231
|
fix VM indexed instructions to only use lsb part of the index
|
2023-09-06 02:44:04 +02:00 |
|
Irmen de Jong
|
2c9e50873c
|
use math.square for optimized X*X calculation (words only).
Added IR SQUARE instruction.
|
2023-08-14 01:05:17 +02:00 |
|
Irmen de Jong
|
5fffd35ec1
|
IR: fix augmented assignment operators
|
2023-08-11 18:24:37 +02:00 |
|
Irmen de Jong
|
b92e22e4a6
|
IR: fix for loop over range with step
|
2023-08-11 03:05:47 +02:00 |
|
Irmen de Jong
|
3e6d16a7a8
|
add error message for invalid step size in range expression
|
2023-08-11 02:35:52 +02:00 |
|
Irmen de Jong
|
a4d093afa1
|
added -sourcelines cli option to include src lines in generated assembly (which is now off by default)
|
2023-08-02 23:05:24 +02:00 |
|
Irmen de Jong
|
1ae950a638
|
Merge branch 'remove_evalstack'
# Conflicts:
# codeGenCpu6502/src/prog8/codegen/cpu6502/assignment/AssignmentAsmGen.kt
|
2023-07-31 21:57:43 +02:00 |
|
Irmen de Jong
|
9bb16e293c
|
vm: fix postincr/decr on indexed pointervariables
|
2023-07-31 19:37:30 +02:00 |
|
Irmen de Jong
|
c223702ea0
|
code cleanups
|
2023-07-30 18:42:45 +02:00 |
|
Irmen de Jong
|
a0ab0bd3e2
|
Merge branch 'master' into remove_evalstack
# Conflicts:
# examples/test.p8
|
2023-07-29 18:57:06 +02:00 |
|
Irmen de Jong
|
b89ad4b328
|
don't optimize empty where choice away! It would call the else clause incorrectly.
|
2023-07-29 18:25:52 +02:00 |
|
Irmen de Jong
|
7cf6aba625
|
Merge branch 'master' into remove_evalstack
# Conflicts:
# examples/test.p8
|
2023-07-22 23:37:20 +02:00 |
|
Irmen de Jong
|
c7d54570cc
|
IR: sXX, CONCAT instructions now use 3 register format
|
2023-07-21 00:07:56 +02:00 |
|
Irmen de Jong
|
9f247901d4
|
Merge branch 'master' into remove_evalstack
# Conflicts:
# codeGenCpu6502/src/prog8/codegen/cpu6502/BuiltinFunctionsAsmGen.kt
# codeGenCpu6502/src/prog8/codegen/cpu6502/assignment/AssignmentAsmGen.kt
# compiler/src/prog8/buildversion/BuildVersion.kt
# examples/test.p8
|
2023-07-16 23:45:04 +02:00 |
|
Irmen de Jong
|
c1aa5d4e47
|
IR: optimized when statement translation
|
2023-07-16 12:10:46 +02:00 |
|
Irmen de Jong
|
e2bb0de24d
|
clean up X register save/store in compiler code, remove temp vars for register saving
|
2023-07-15 22:25:58 +02:00 |
|
Irmen de Jong
|
84925ab69c
|
remove eval stack options
|
2023-07-15 22:24:19 +02:00 |
|
Irmen de Jong
|
6938c79f88
|
IR: added CMPI instruction
|
2023-07-14 23:17:29 +02:00 |
|
Irmen de Jong
|
795f80b4ec
|
fix forloop 6502 codegen in case of descending word values
|
2023-07-11 00:33:12 +02:00 |
|
Irmen de Jong
|
6055b8c3dc
|
IR: fix forloop codegen for steps != 1
|
2023-07-10 21:36:44 +02:00 |
|
Irmen de Jong
|
5037033fcf
|
ir: EXT and EXTS opcodes now have 2 registers to avoid type clash
|
2023-07-08 22:42:11 +02:00 |
|
Irmen de Jong
|
071a80360f
|
ir: fix some problem with comparison against zero
|
2023-07-07 21:17:28 +02:00 |
|
Irmen de Jong
|
d2154f5f2e
|
remove empty when choices, fixes ir compilation error on those
|
2023-07-07 20:34:24 +02:00 |
|
Irmen de Jong
|
334d382bfa
|
ir: JUMPI instruction added to support indirect jumps
|
2023-07-07 19:10:39 +02:00 |
|
Irmen de Jong
|
90c4b00f74
|
ir: fix any() all() reverse() sort() on memory mapped arrays and on byte arrays
|
2023-07-07 17:25:32 +02:00 |
|
Irmen de Jong
|
71261525e8
|
fix containment check on memory mapped arrays
|
2023-07-07 17:07:34 +02:00 |
|
Irmen de Jong
|
3126959576
|
ir: several fixes
|
2023-07-07 16:53:32 +02:00 |
|
Irmen de Jong
|
02e51d8282
|
ir: fix initial chunk linking
|
2023-07-07 00:30:56 +02:00 |
|
Irmen de Jong
|
70c9ab9074
|
upgrade libraries
|
2023-07-06 23:33:58 +02:00 |
|
Irmen de Jong
|
204f5591a9
|
todos
|
2023-07-03 21:57:32 +02:00 |
|
Irmen de Jong
|
bdf8aa9168
|
get rid of newexpr compiler option
|
2023-07-02 15:26:04 +02:00 |
|
Irmen de Jong
|
bb95484c8a
|
uniform symbol prefixing with p8_
|
2023-07-02 06:15:09 +02:00 |
|
Irmen de Jong
|
cad18b8a3a
|
uniform symbol prefixing with p8_
|
2023-07-02 06:15:02 +02:00 |
|
Irmen de Jong
|
d3f6415387
|
vm: fix repeat 256
|
2023-07-02 02:38:35 +02:00 |
|
Irmen de Jong
|
eae41de27d
|
improve errors generated for undefined symbols
|
2023-06-25 15:19:51 +02:00 |
|
Irmen de Jong
|
04e4e71f2e
|
uword == str is now possible (sugar for string.compare)
|
2023-06-22 00:20:30 +02:00 |
|
Irmen de Jong
|
2a96f93919
|
vm: fix compiler error when dealing with label
|
2023-06-14 22:14:47 +02:00 |
|
Irmen de Jong
|
a521982576
|
fix subroutine inline problem with strings
|
2023-06-09 21:45:05 +02:00 |
|
Irmen de Jong
|
380f557c45
|
vm: implement split incr/decr
|
2023-06-03 22:22:13 +02:00 |
|
Irmen de Jong
|
bfaad1388c
|
IR: handle split arrays without new custom opcodes
|
2023-06-03 01:51:02 +02:00 |
|
Irmen de Jong
|
b9d8ec1463
|
add -splitarrays command line option
|
2023-05-30 19:08:34 +02:00 |
|
Irmen de Jong
|
3ac9036c79
|
more split array stuff for 6502
|
2023-05-27 22:44:45 +02:00 |
|
Irmen de Jong
|
c94e292176
|
more split array stuff
|
2023-05-27 12:47:11 +02:00 |
|
Irmen de Jong
|
300e2fe9f8
|
IR: wrong attempt at optimizing register usage by reusing registers inside different code chunks
|
2023-05-18 21:57:21 +02:00 |
|
Irmen de Jong
|
91e1643627
|
update 3rd party libraries
|
2023-05-18 11:47:30 +02:00 |
|
Irmen de Jong
|
91421b0c62
|
IR handy sequence shortcut functions
|
2023-05-18 11:32:20 +02:00 |
|
Irmen de Jong
|
b43223cb7a
|
added clamp() builtin function and floats.clampf()
|
2023-05-17 23:12:58 +02:00 |
|
Irmen de Jong
|
85cf0e311c
|
Merge branch 'master' into version_9
# Conflicts:
# codeGenIntermediate/src/prog8/codegen/intermediate/ExpressionGen.kt
# docs/source/todo.rst
# intermediate/src/prog8/intermediate/IRInstructions.kt
|
2023-05-14 20:47:09 +02:00 |
|
Irmen de Jong
|
0e3d75cfeb
|
move irType() to intermediate module
|
2023-05-14 20:44:32 +02:00 |
|
Irmen de Jong
|
630c8a5faa
|
IR: fix romsub encoding
|
2023-05-14 18:08:06 +02:00 |
|