LASM -- LASM subroutine question???
ok.. Newsgroups about LEGO are really hard to find.. Well.. here's my question If someone reads it and knows the answer.. well that'll be great.. i'm new to using Mindstorms but i'm not new to programming.. I first tried RCX.. the basic graphical language meant for kids.. and for sure, it was damned to simple.. So I tried the spirit.ocx from SDK
1.0.. and it is not compatible with the robotic invention 2.0 because of the USB IR tower..... GRRRR So, I decided to use phantom.dll.. a spirit.ocx replacement file.. that doesn't support multitasking.. but that supports de USB IR Tower... great deal.. SO I finaly tried MINDSCRIPT & LASM.. mindscript has a rough syntax and the SDK gives poor documentation on it.. so I turned to LASM since I already knew how to program ASM... But here is my question.. HOW DO WE MAKE A SUBROUTINE IN LEGO ASM??? I know how to call it using : CALLS [0-7] and I know how to get out of the sub using : RETS but I dont know how to declare BeginOfSub and the SDK documentation is quiet about it... PLease Help.. please :) I tried writing (suppose I call sub #1 (CALLS 1) :1 : and then my code and then RETS
it did not work!!
i tried just writing
1 my code RETSit did not work neither..
i also tried :
sub 1 my code rets
niet... did not work...
iF YOU know what is the syntax for declaring BeginOfSub than please.. tell me :)
I'll sure write a tutorial when I'll be a master LASM programmer.. cause the internet lacks such info.. Thank u! Have a nice Christmas time!