Little update:
I am still working hard on the PASM. For now I am concentrating on making sure the PC version works great, then I will finish up the PocketPC code generation. I am working very hard to make sure that the PASM is 100% multi-platform and no code rewritting will be necessary for neither target platform. The operands are of higher level than standard assembler also, supporting very complex syntax. I have made some very interesting enhancements this week to functions calling and stack manipulation. A function can be called with parameters just like a C function:
I have also received a lot of requests concerning problems accessing global variables within a proc/func or object. A global variable cannot be accessed from within an object's method within an object which has a variable with the same name. So now you can prefix variables with Global. to access them from the global area of your program.
Ex:
Another example:
I was also thinking about making declaration of local variables obligatory to reduce possible errors when using global variables that uses the same name. But in the end I decided not to do this, I want PPL to be quick to program and open as much as possible. It is to the coder to use more meaningful global variable names and simpler local variable names. I will try to modify my codes to reflect this new phylosophy and document it in the help file.
I am still working on the GameAPI also, I have updated PPL to use PocketHAL 0.7.7 which supports VGA devices but unfortunately I won't allow support for it until later. QVGA is still the dominant device and it's more optimized for game, VGA is not yet. The reason I have to choose between the two is because I would have to make two seperate ppl.exe for the pocketpc and games would have to be made to support both resolutions.
Ouf, quite a long update! A mess I know.
I hope to have a new release within the next week or two.
I am still working hard on the PASM. For now I am concentrating on making sure the PC version works great, then I will finish up the PocketPC code generation. I am working very hard to make sure that the PASM is 100% multi-platform and no code rewritting will be necessary for neither target platform. The operands are of higher level than standard assembler also, supporting very complex syntax. I have made some very interesting enhancements this week to functions calling and stack manipulation. A function can be called with parameters just like a C function:
- Code:
!MyFunc(Param1, Param2)
var Var1, Var2
mov Var1, Param1
mov Var2, Param2
mov r0, Var1
add r0, Var2
ret
:main
var Var1
MyFunc(10, 20)
mov Var1, r0
savesp
pplpush Var1
ppl showmessage
I have also received a lot of requests concerning problems accessing global variables within a proc/func or object. A global variable cannot be accessed from within an object's method within an object which has a variable with the same name. So now you can prefix variables with Global. to access them from the global area of your program.
Ex:
- Code:
#class MyClass
public(MyVar$);
proc Test
MyVar$ = 10; // Cannot access global MyHand$ here.
Global.MyVar$ = 20; // Yes, I now can!
end;
#endclass
proc main
Global(MyVar$);
#object MyClass o$;
o.Test;
ShowMessage(o.MyVar$); // Show 10 here
ShowMessage(MyVar$); // Show 20 here
end;
Another example:
- Code:
proc Test
Local(MyVar$);
MyVar$ = 10;
ShowMessage(MyVar$); // Show 10 here
ShowMessage(Global.MyVar$); // Show 20 here
end;
proc main
Global(MyVar$);
MyVar$ = 20;
end;
I was also thinking about making declaration of local variables obligatory to reduce possible errors when using global variables that uses the same name. But in the end I decided not to do this, I want PPL to be quick to program and open as much as possible. It is to the coder to use more meaningful global variable names and simpler local variable names. I will try to modify my codes to reflect this new phylosophy and document it in the help file.
I am still working on the GameAPI also, I have updated PPL to use PocketHAL 0.7.7 which supports VGA devices but unfortunately I won't allow support for it until later. QVGA is still the dominant device and it's more optimized for game, VGA is not yet. The reason I have to choose between the two is because I would have to make two seperate ppl.exe for the pocketpc and games would have to be made to support both resolutions.
Ouf, quite a long update! A mess I know.
I hope to have a new release within the next week or two.