PPL will soon have a new universal mini-assembler language built-in. This language will allow to dynamically compile pseudo-assembly code directly to the target's machine code. This will give instant raw-speed to PPL.
Named PASM, this universal language will be tightly integrated within the PPL language allowing direct call to internal PPL functions and use of PPL variables.
The language will be a very easy to use and will be easy to access.
Example:
This code is of course a dummy example. It doesn't reflect exactly what the PASM syntax is going to be.
Please give your feedback and ideas.
Named PASM, this universal language will be tightly integrated within the PPL language allowing direct call to internal PPL functions and use of PPL variables.
The language will be a very easy to use and will be easy to access.
Example:
- Code:
Func asm_test (a$)
// Compile PASM code into Intel or StrongArm bytecode.
code$ = asm ({
:label1 mov r1, var // Load value at variable (a$)
add r1, 0x10 // Add 0x10 to register 1
psh r1 // Push register 1 to ppl stack
cpf showmessage // Call ShowMessage()
ret
ddi var, a$ // Store a$ as 4-bytes integer value in label var.
});
asmcall (code$); // Call the asm code.
asmfree (code$); // Free the code from memory.
end;
proc main
asm_test(3420);
end;
This code is of course a dummy example. It doesn't reflect exactly what the PASM syntax is going to be.
Please give your feedback and ideas.