yes have a done this - saved some space there - thanksEvent1_OT_Hour=Event1_OT_Hour min 23
yes have a done this - saved some space there - thanksEvent1_OT_Hour=Event1_OT_Hour min 23
http://www.picbasic.co.uk/forum/showthread.php?t=19949can i store the data as a word and then get it back as a byte or if needed a word if so how
re reading the post make it clearDT - ALL math done with these routines are done at the PRECISION level, and all variables used with the MATH functions must be (PRECISION) bytes in length.
looking at the Nmath caclualtions
can a math action be done directly without copy a pbp var to a Pvar first ?
A var byte
Tmp32bit_1 var byte[PRECISION]
Tmp32bit_2 var byte[PRECISION]
Result var byte[PRECISION]
eg - direct method
@ MATH_ADD A, Tmp32bit_2, Result ; A+B =Res
or do i always need to get the standard PBP var byte into a Pvar before the math calculation
eg
@ MOVE?BP A , Tmp32bit_1 ' copy byte PBP to Pvar
@ MATH_ADD Tmp32bit_1, Tmp32bit_2, Result ; A+B =Res
cheers
sheldon
Bookmarks