News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Ast

Rst#18

Started by Ast, 22:28, 12 April 15

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ast

Who can tell me how to use rst#18 with parameters?
What I know is :


...
               rst #18
               defw adress
adress     defw xxxx      ; adress you want to call
              defb yy          ; number of rom
...


But if i wanted call somewhere which needs parameters, how could i do ?
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

pelrun

RST #18 preserves all the registers, so just set them up as required by the called routine beforehand (e.g. if it uses RSX calling convention, set A to number of parameters, and IX to the pointer to the parameter table).

Ast

Thanks for your advices...
_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

Powered by SMFPacks Menu Editor Mod