Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New beta release 1.2.7r2021
#28
LCD Wrote:Yes, it does and the game works again. Thanks! So you took some optimisations back?
I haven't touched the optimization at all! Confusedhock: It was in another part of the compiler. The string parameter management was wrong when calling a function with strings from *another function*. When fixing this, I broke "calling a function" from the *global program scope*. Now both work well (or should).

I'm now going to implement ucase and lcase function for strings. Many string functions have a duplicated implementation suffixed with "2", e.g. strpos2, in which all string parameters are passed by reference, because it's faster.

Finally, what has been done for the compiler preprocessor must be done for the compiler assembler (yes, a preprocessor for the assembler when its used standalone). Fortunately the assembler is much easier to test, and the preprocessor ZXBPP (the one of BASIC) can be reutilized.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)