| Author | Message | ||||
| 0CodErr Ziron Guru (send private message) Posts: 201 Topics: 37 Location: | [1469] - posted: 2015-01-15 12:15:32 I noticed that we can define Code: At now changed code is: Code: | ||||
| Admin Site Admin ![]() (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1471] - posted: 2015-01-15 12:30:53 Thanks, updated file. 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: 201 Topics: 37 Location: | [1473] - posted: 2015-01-17 13:04:29 It seems that in latest release this file is a bit incorrect. For example it contains CHAR_LETTER_or_CHAR_LOWER, which we no longer use. See post [1469] above. May be just copy from this post ![]() | ||||
| Admin Site Admin ![]() (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1477] - posted: 2015-01-17 14:20:09 Fixed. 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: 201 Topics: 37 Location: | [1582] - posted: 2015-02-02 09:23:57 I tried to compile this: Code: In latest release error:
But compiled in 20017 version. What I noticed in result: Code: Instead of Code: we can do this shorter: Code: If i not mistaken SphinxC-- allow for functions to return result in flags. Something like this: Code: Then our IsDigit will looks as: Code: Next, if we need just compare then we insert only jz: Code: And if need assignment then we can use SETcc instructions: Code: Only one problem with SETcc:
| ||||
| Admin Site Admin ![]() (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1585] - posted: 2015-02-02 13:16:57 The only problem i foresee with this is that when programmers call a function, they expect eax/ax/al to be the result. So imagine this scenario: Code: It may be a better alternative to add additional macros such as testIsDigit(...) etc. I will add comparing flags hopefully for next release. Edit: For now, I have implemented flag comparing. Also fixed the invalid operand error. 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: 201 Topics: 37 Location: | [1588] - posted: 2015-02-02 18:05:11 Oh, good ![]() If i understand correctly it is possible to write: Code: Also, i noticed that we can make our code yet shorter ![]() But don't know is it supported by Ziron or still not. Code: And yet question. Is it need for now to add such new functions as IsDigitTest, IsLetterTest, etc..? Because idea was -- use ONE function for TWO things: compare and assignment. As for Code: if we will define that our function return ZF, then right variant of code will be Code: I don't know why it is problem. I think that it no problem. Also we have many different things, for example, different calling conventions. And there is no problem if they are different. Just my opinion ![]() | ||||
| Admin Site Admin ![]() (send private message) Posts: 933 Topics: 55 Location: OverHertz Studio | [1589] - posted: 2015-02-02 18:09:42 The problem is that it is not mandatory to write al = (which many people do not) Code: Still correct ^ And yes Code: This is also valid ![]() So unless when the macro is passed in a conditional statement, the macro can receive a flag accordingly which lets the macro know it is for comparison. So for example Code: What do you think? Download Ziron Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message. |
|
Currently Active Users: There are currently 1 user(s) online. 0 member(s) and 1 guest(s) Most users ever online was 1046, January 28, 2022, 2:08 pm. Statistics: Threads: 225 | Posts: 1850 | Members: 51 | Active Members: 51 Welcome to our newest member, yecate |