PicBasic Pro code

Have you got the greatest 48 bit multiplier ever conceived? Prove it - post your code here.

Moderator: phalanx

Post Reply
Posts: 4
Joined: Thu Jun 10, 2010 6:15 am

PicBasic Pro code

Post by bramirez » Wed Aug 04, 2010 6:41 am

What does the the 3\8 mean in this line? I understand that it should be Var\bits but 3 doesn't make sense. Thank you


Support Volunteer
Posts: 1244
Joined: Sun Nov 09, 2008 2:11 am
Location: Minot, N.D.

Re: PicBasic Pro code

Post by skimask » Thu Aug 05, 2010 4:43 pm

bramirez wrote:SHIFTOUT MOSI, CLK, 1, [3\8, EE_ADDR\16]
Just like the PBP manual says...
3\8 gets sent out as an 8 bit representation for decimal 3, and EE_ADDR gets sent out as a 16 bit representation of the EE_ADDR variable.

You'd get the same thing with:

SHIFTOUT MOSI, CLK, 1, [ %00000011\8, EE_ADDR.highbyte\8, EE_ADDR.lowbyte\8 ]
I ignore "one post wonders".

Post Reply