With PBPL, all internal System and T? variables are LONGs.
All multiplications and divisions are done as Longs, even if they are byte vars.
Most things that get put in a System var with a CALL to the library are done as a Long.
Code:
IF ByteVar1 >= ByteVar2 THEN ; <-- Long
IF ByteVar1 = ByteVar2 THEN ; <-- Byte
WordVar = WordVar /* Const ; <-- Long
ByteVar1 = ByteVar1 + Const ; <-- Byte
ByteVar1 = ByteVar1 + (ByteVar2 >> 2) ; <-- Long
ByteVar1 = ByteVar1 + (ByteVar2 >> 1) ; <-- Byte
Having 32-bit vars is nice, ... unless you need speed.
Is there a particular reason you need PBPL?
Maybe we can cut that down to word sized math so you can go back to PBPW.
<br>
Bookmarks