Author | Message | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1535] Ideas for internal macros - posted: 2015-01-29 12:49:16 So far Ziron has some internal macros such as $substr, $strindex etc.... does anyone have ideas or requests for additional macro functions? Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1536] - posted: 2015-01-29 14:14:56 Builtin functions -- are useful things I think that would be good to have converting functions like $int2str, $uint2str, $hex2str, $bin2str, etc... Also think that would be useable add integer logarithm base 2 function. Currently we can do: Code:
We will able to do like: Code:
| ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1547] - posted: 2015-01-30 01:09:57 Maybe would be useable to have directive which set default type of value in registers i.e. signed|unsigned. Then can be written: Code:
instead of Code:
it will make code more readable. | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1548] - posted: 2015-01-30 02:56:36
This actually was supposed to work, but I think i broke it in some earlier release. Code:
I will correct this. Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1561] - posted: 2015-01-30 23:37:50 Fixed continuous casting: Code:
as for $str2int etc, these can be written as direct macros, when i rewrite RTL i will include a macro include file for system macros, if you have ideas for more or have any you would like to submit, let me know. Code:
Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1692] - posted: 2015-02-14 11:26:47 Above I asked you about integer logarithm base 2 function Is it possible to add this builtin macro? | ||||
Admin Site Admin (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1694] - posted: 2015-02-14 16:35:17 I will add log2 but as you know it is usually a floating point result, I will instead improve a few things in the macro system and then write a macro based version of log2. I will get back to you soon. Edit: Actually I implemented log2 and log2i for next release, but I will still improve macro system anyways Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. | ||||
0CodErr Ziron Guru (send private message) Posts: 199 Topics: 37 Location: | [1701] - posted: 2015-02-14 19:26:37 Seems log2i is not works. Code:
Code:
|
Currently Active Users: There are currently 14 user(s) online. 0 member(s) and 14 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |