The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Negative STEP does not work (*solved*)
#10
LCD Wrote:Thanks! Downloading it... Btw: I think, it will be possible to change SpLib (Sprite Library from <!-- m --><a class="postlink" href="http://www.geocities.com/aralbrec/">http://www.geocities.com/aralbrec/</a><!-- m -->) from Z88dk to your compiler and write a wrapper, after removing Hires and hicolor code. The only problem I ecountered, is the transfer of parameters, even without optimisations switched on, it often do not work, even not with dummy variables. Example:
Code:
Sub PutGfx(x,y,adr) dummy=adr dummy=x dummy=y asm ld hl,(_adr) ld b,(_x) ld c,(_y) .... end asm end sub
I was checking how you do transfer parameters to ASM in Librarys, and you are using the stack pointer. Clever! I will try the new version out later today.
Thanks!

Yes, that's it. I use IX as a stack pointer. A tip to guess the parameter address:
Code:
Sub PutGfx(x,y,adr) dummy=adr dummy=x dummy=y

Compile with -A flag only. This will give you unoptimized assebler code. Now edit the generated .asm file and you will see there the addresses of parameters adr, x and y. I think I need to write a tutorial. :!:


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)