Changing Swordfish code to PBP


Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373

    Default Changing Swordfish code to PBP

    Hey guys,
    I'm stumped with the Swordfish XTEA encryption code. Changing it over to PBPL 2.50 is difficult due to the fact it will only support 32 bit signed integers, not unsigned. Plus, in the structured environment, the variables are resized in each subroutine(ie. word or longword).
    I can do separate variables in each sub, but the 32 bit math seems tricky. Would a long addition of one to$7FFFFFFF, make $80000000, or $00000000 with some kind of carry? Also, would the carry be lost, or is it recoverable somewhere?
    Am I better off trying to break up the math operations into word variables?
    The code is attached, any help would be greatly appreciated.
    Thanks,
    Ron
    PS. I am buying Swordfish, so I don't feel bad about changing the code to fit a current project.
    Attached Files Attached Files

Similar Threads

  1. PBP Extensions, What are they?
    By PJALM in forum PBP Extensions
    Replies: 9
    Last Post: - 28th September 2021, 11:26
  2. PBP code to read R/C signal from receiver
    By malc-c in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 28th October 2009, 21:51
  3. Anyone do a comparison of the ASM code generated by PBP??
    By Frozen001 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th November 2008, 20:01
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. convert code "c" lcd graphic to pbp
    By nicolasronan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th June 2006, 15:49

Members who have read this thread : 0

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