Open source PBP bootloader


Results 1 to 40 of 41

Threaded View

  1. #20
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Oops

    Sorry my earlier post won't work that way, PBP takes 5-36 as subtraction. Probably the closest to the assembly example like this. Then you could specify the address in assembly if need be in a similar PACKET_DATA + x manner. I took the liberty of editing your previous post with that one change. [5-36] to [5]

    Code:
    DATA_BUFF   VAR BYTE[37]        ' Start of receive buffer SAME ADDRESS AS COMMAND
        
    COMMAND     VAR DATA_BUFF[0]    ' Data mapped in receive buffer SAME ADDRESS AS DATA_BYTE
    DATA_COUNT1 VAR DATA_BUFF[1]    
    ADDRESS_L   VAR DATA_BUFF[2]
    ADDRESS_H   VAR DATA_BUFF[3]
    ADDRESS_U   VAR DATA_BUFF[4]
    PACKET_DATA VAR DATA_BUFF[5]    ' DATA_BUFF[5] through DATA_BUFF[36] (32 bytes)
    Last edited by ScaleRobotics; - 4th March 2011 at 17:35.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts