Irmen de Jong
|
bdbdf6e5cd
|
add lmh(longvalue) builtin function that returns the low, mid, hi (=bank) bytes of a long
symboldumps now also contain the builtin functions
|
2026-02-23 21:30:39 +01:00 |
|
Irmen de Jong
|
093be9f2dd
|
sys.push(), sys.pop() etc etc are now builtin functions again push() pop() to avoid storing value in temporary variables
this means that all of the syslib.p8 library files no longer contain all those stack related asmsubs
|
2026-02-21 02:11:34 +01:00 |
|
Irmen de Jong
|
2e0db6f211
|
add swap() builtin for optimized value swaps without the need for a temporary variable
|
2026-01-23 23:17:10 +01:00 |
|
Irmen de Jong
|
bc4470aeda
|
remove bsb() again - too confusing?
|
2026-01-06 22:39:04 +01:00 |
|
Irmen de Jong
|
54f23387d0
|
added bsb(long) builtin function that returns the bank byte of the long value (bits 16-23)
|
2026-01-06 20:56:03 +01:00 |
|
Irmen de Jong
|
a6d051b496
|
update syntax files
|
2025-10-11 16:15:34 +02:00 |
|
Irmen de Jong
|
7e26ecb0b6
|
allow 'then' in if-expressions to separate condition and result value
|
2025-10-10 23:26:53 +02:00 |
|
Irmen de Jong
|
f6c8e693a5
|
add offsetof()
|
2025-09-17 23:30:15 +02:00 |
|
Irmen de Jong
|
651830ea82
|
update syntax files
|
2025-08-02 21:00:16 +02:00 |
|
Irmen de Jong
|
c2bf9024f8
|
start writing docs about structs and pointers, update syntax files with ^^
|
2025-06-18 19:00:18 +02:00 |
|
Irmen de Jong
|
e328520588
|
initial struct and typed pointer support
|
2025-05-02 00:41:40 +02:00 |
|
Irmen de Jong
|
efd41260f2
|
added %jmptable
|
2025-02-09 15:02:59 +01:00 |
|
Irmen de Jong
|
e7a0cb636c
|
add $< and $> operators to get the lsb and msb addresses of a @split array respectively.
document the new split array things.
|
2024-12-16 17:45:54 +01:00 |
|
Irmen de Jong
|
31ad8bdd8d
|
remove bankof(), documented msw() and lsw()
|
2024-12-01 21:24:26 +01:00 |
|
Irmen de Jong
|
90f1e7fd6a
|
ast printing fixes, added alias to syntax files
|
2024-11-24 07:28:33 +01:00 |
|
Irmen de Jong
|
d77b1944fb
|
rename bnk() to bankof()
|
2024-11-24 00:53:09 +01:00 |
|
Irmen de Jong
|
ae0cadb383
|
added bnk() builtin function
|
2024-11-20 23:23:21 +01:00 |
|
Irmen de Jong
|
a874aec6a1
|
implementing const long
|
2024-11-20 23:22:56 +01:00 |
|
Irmen de Jong
|
9864abd393
|
romsub keyword is now extsub
|
2024-11-06 22:14:53 +01:00 |
|
Irmen de Jong
|
3b798097b9
|
added memtop to machine definition and asm source code check
added %memtop directive
|
2024-11-02 00:59:07 +01:00 |
|
Irmen de Jong
|
28b383f888
|
docs and syntax for @alignxxx and %align
|
2024-10-27 00:47:52 +02:00 |
|
Irmen de Jong
|
ce7d094adb
|
Zig-like "defer" to clean up stuff when leaving the scope of the current routine.
|
2024-10-18 01:30:20 +02:00 |
|
Irmen de Jong
|
eaa22a9d13
|
added callfar2() builtin function that allows to set A,X,Y and Carry arguments.
|
2024-10-08 21:36:04 +02:00 |
|
Irmen de Jong
|
484677b4b1
|
Get rid of any() and all() builtin functions.
Replaced by regular subroutines in the anyall module.
|
2024-07-06 18:49:03 +02:00 |
|
Irmen de Jong
|
25f25a8767
|
Get rid of sort() and reverse() builtin functions.
Sort() had too many gotchas and reverse() is kinda redundant you can loop in decreasing order through an array too.
|
2024-07-06 17:07:58 +02:00 |
|
Irmen de Jong
|
0dc50a93a4
|
added @nozp variable flag
|
2024-05-21 21:53:58 +02:00 |
|
Irmen de Jong
|
0d44492086
|
push,pushw,pop and popw are no longer built-in functions but regular routines in sys
|
2023-12-26 14:47:31 +01:00 |
|
Irmen de Jong
|
ae66fcac1e
|
added call builtin function for indirect JSR
|
2023-12-17 15:45:28 +01:00 |
|
Frosty-J
|
01b680504b
|
Add %encoding to syntax files (#113)
* IDEA `%encoding` syntax
* N++ `%encoding` syntax
* Vim `%encoding` syntax
|
2023-12-07 21:53:33 +01:00 |
|
Irmen de Jong
|
ae2d96c455
|
added peekf and pokef builtin functions. Fixed sizeof() to allow number argument as well.
|
2023-11-27 23:36:02 +01:00 |
|
Irmen de Jong
|
c45fbe6310
|
continue stmt added
|
2023-11-25 01:14:35 +01:00 |
|
Irmen de Jong
|
f68b46fc60
|
add a %zpallowed option to specify the range of zeropage register that can be used
|
2023-11-03 00:19:25 +01:00 |
|
Irmen de Jong
|
ccf6e32bf9
|
adding setlsb() and setmsb() builtin functions to 6502 codegen
|
2023-09-17 15:16:47 +02:00 |
|
Irmen de Jong
|
3ac9036c79
|
more split array stuff for 6502
|
2023-05-27 22:44:45 +02:00 |
|
Irmen de Jong
|
b43223cb7a
|
added clamp() builtin function and floats.clampf()
|
2023-05-17 23:12:58 +02:00 |
|
Irmen de Jong
|
92062d056d
|
divmod() now works on multiple data types including float.
divmodw() has been removed
|
2023-05-02 01:19:53 +02:00 |
|
Irmen de Jong
|
025bf900a5
|
min max docs, added floats.minf() and maxf()
|
2023-05-02 01:19:53 +02:00 |
|
Irmen de Jong
|
76a203d4df
|
api change: rename builtin func sqrt16 to sqrtw
|
2023-05-02 01:19:53 +02:00 |
|
Irmen de Jong
|
ff6948cf2d
|
syntax defs for unroll
|
2023-03-14 23:52:07 +01:00 |
|
Irmen de Jong
|
d282a2d846
|
remove cx16.callrom() just use callfar
|
2023-02-23 23:02:56 +01:00 |
|
Irmen de Jong
|
9e0f8c1a97
|
remove avg() from syntax defs, it doesn't exist anymore
|
2023-02-13 22:31:06 +01:00 |
|
Irmen de Jong
|
0d4dd385b8
|
added '%ir' to write inline IR code, '%asm' is now only for real 6502 assembly.
(%ir is probably only used in the library modules for the virtual machine target)
|
2022-09-30 15:12:26 +02:00 |
|
Irmen de Jong
|
9633c0b07a
|
added bool to syntax files
|
2022-07-07 23:30:41 +02:00 |
|
Irmen de Jong
|
da01a5b4dc
|
vm: implement float to integer cast, any, all, reverse
|
2022-05-04 22:08:21 +02:00 |
|
Irmen de Jong
|
7eea97d741
|
- floats: remove all floating point builtin functions and move them to the floats module instead
|
2022-04-22 00:45:54 +02:00 |
|
Irmen de Jong
|
ab1766a559
|
moved all *integer* builtin trig functions (sin8u, cos8u etc) as regular asmsubs in math module
|
2022-04-13 00:27:35 +02:00 |
|
Irmen de Jong
|
2bb2502d20
|
added @requirezp to syntax files
|
2022-01-16 17:20:36 +01:00 |
|
Irmen de Jong
|
8f3df3039a
|
added pipe operator `|>`
|
2022-01-06 22:54:18 +01:00 |
|
Irmen de Jong
|
7748c261da
|
rsave/rrestore moved from sys to builtin function to solve the stack related problem when calling it as a regular subroutine
|
2021-11-29 23:13:04 +01:00 |
|
Irmen de Jong
|
e8f4686430
|
undid failed attempt of using sys.push/sys.pop for stack args - now using new push(), pushw(), pop(), popw() builtin functions
|
2021-11-28 01:22:40 +01:00 |
|