Shop OBEX P1 Docs P2 Docs Learn Events
SX-Key v3.10 - Editor enhancement — Parallax Forums

SX-Key v3.10 - Editor enhancement

Mike CookMike Cook Posts: 829
edited 2005-11-16 06:32 in General Discussion
Any chance of adding:

/*

*/

to the editor so it would be easier to comment out a chunk of code?

Just a thought ( I have a few from time to time!)

Mike

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"OEM NMEA GPS Module" Now available on ebay for only $19.99

Product web site: http://www.allsurplus.net/Axiom/

Comments

  • PJMontyPJMonty Posts: 983
    edited 2005-11-16 02:06
    Mike,

    Probably not, but never say never. First, the /* */ construct is a C idiom, so it's a little out of place in an assembly language source file. Certainly a case could be made for the usefulness of it, but the construct is definitely coming in from another place. Second, remember how Dorothy always had the ability go home? Well, you may not have ruby red slippers, but you certainly have ifdef, etc. Want to make a chunk of code (as big as you like) stop compiling? Try this:

    ifdef A_CONST_NOT_DEFINED
        nop
        nop
        mov w, #4
    endif ; A_CONST_NOT_DEFINED
    



    The best part? If you want to make the code re-appear, just define the constant.
      Thanks, PeterM
  • Mike CookMike Cook Posts: 829
    edited 2005-11-16 02:25

    Thanks Peter

    Working with SX/B right now and should have added that detail to my original post. It's been a few years since I've done assy, last I can remember is with the 16c84.

    Guess I'm getting lazy in my old age with some of the C coding I've been doing lately!

    I guess I should have stated "Is it possible to have Conditional Compilation Directives like the Basic Stamp Editor has"

    Mike




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "OEM NMEA GPS Module" Now available on ebay for only $19.99

    Product web site: http://www.allsurplus.net/Axiom/

    Post Edited (Mike Cook) : 11/16/2005 3:02:58 AM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-11-16 03:54
    It took a long time to get to Conditional Compilation in PBASIC -- we're in no rush to do it in SX/B. Remember, the goal is to get new folks interested in the SX and to look under the hood at the compiled output to learn more about assembly code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • PJMontyPJMonty Posts: 983
    edited 2005-11-16 06:32
    Mike,

    I just always assume that folks write in assembly. Adding some sort of conditional compilation syntax (or C style block comments) is actually a function of the compiler as opposed to the IDE. Since I don't handle the SX/B compiler (just SASM and the IDE), I guess I'm off the hook for now. Jon's previous post covers the issue in a little more detail.
      Thanks, PeterM
Sign In or Register to comment.