Shop OBEX P1 Docs P2 Docs Learn Events
Help! I have lost my SXB source — Parallax Forums

Help! I have lost my SXB source

jmbertoncelli@USAjmbertoncelli@USA Posts: 48
edited 2009-01-16 18:48 in General Discussion
Hello,

I have lost one of my SX/B source and I would like to know if it is possible to extract at least the assembleur from the SX?

thanks a lot.

Comments

  • PJAllenPJAllen Banned Posts: 5,065
    edited 2009-01-13 21:20
    If you were generating back-ups, you can rename the .BAK as .SXB
  • T&E EngineerT&E Engineer Posts: 1,396
    edited 2009-01-13 21:22
    There is no way to retrieve your file. However, there should be a backup file of it in the same folder as your original sxb file. It will have a .bak extension.
  • VelocitVelocit Posts: 119
    edited 2009-01-14 01:26
    There is a decompiler called "Angelica" which will convert hex opcodes retrieved from an unprotected SX to pseudo-SASM. It'll be very hard to read, though, as the decompiler can't assign the same tokens you originally designated for memory spaces, subroutines, etc. I'm not an expert with the program, nor have I ever had the need to use it, but I know others on this forum are and have. Hopefully one of them will chime in for you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2009-01-16 18:48
    jmbertoncelli@USA said...
    Hello,
    I have lost one of my SX/B source and I would like to know if it is possible to extract at least the assembleur from the SX?

    Hello,

    If you set the code protection bit when programming then it is gone. Otherwise you should at least be able to read out the binary image of your program.

    With the binary image in hand you can try using a disassembler (or by hand if it is short) to get the assembly code. From there you may be able to match up sections of code with what SX/B generates which you may be able to match back to specific SX/B commands. As long as you wrote the original code that will help since you'll have an idea what was there.

    Of course all comments, program labels, and variable names will be gone but it is better than nothing.

    Robert
Sign In or Register to comment.