nib var equivalent
Hi,
Is there a way of defining the equivalent of a nib without using the
nib definition, ie. using the byte definition? I am trying to convert
a program from bs2 to pbp where there is no nib type and am stuck. A
solution for the stamp would also be a pbp solution.
The code that I am trying to replicate is:
minuutlees var byte
temp2hi var minuutlees.hignib
temp2lo var minuutlees.lownib
but I cannot use the nib definition.
Is there some way of defining these nib vars as bytes and then
shifting the bits from the main byte?
Any ideas appreciated.
Thanks
Is there a way of defining the equivalent of a nib without using the
nib definition, ie. using the byte definition? I am trying to convert
a program from bs2 to pbp where there is no nib type and am stuck. A
solution for the stamp would also be a pbp solution.
The code that I am trying to replicate is:
minuutlees var byte
temp2hi var minuutlees.hignib
temp2lo var minuutlees.lownib
but I cannot use the nib definition.
Is there some way of defining these nib vars as bytes and then
shifting the bits from the main byte?
Any ideas appreciated.
Thanks
Comments
>Is there a way of defining the equivalent of a nib without using the
>nib definition, ie. using the byte definition? I am trying to convert
>a program from bs2 to pbp where there is no nib type and am stuck. A
>solution for the stamp would also be a pbp solution.
>The code that I am trying to replicate is:
> minuutlees var byte
> temp2hi var minuutlees.hignib
> temp2lo var minuutlees.lownib
>but I cannot use the nib definition.
>Is there some way of defining these nib vars as bytes and then
>shifting the bits from the main byte?
>Any ideas appreciated.
It can be done at run time.
minuutlees var byte
temp2hi var byte
temp2lo var byte
temp2lo=minuutlees & $0f
temp2hi=(minuutlees & $f0) >> 4
You have to execute that code every time minuutlees changes.
The lack of nib variables is an annoying feature of PBP.
-- Tracy