Shop OBEX P1 Docs P2 Docs Learn Events
sasm.exe ? — Parallax Forums

sasm.exe ?

peterjpeterj Posts: 24
edited 2004-10-05 20:29 in General Discussion
Does there exist a command-line only version of the SASM assembler? The Ubicom PDF doc seems to indicate that such a beast exists, but I have been unable to locate it on either the parallax or ubicom web sites. The SX-Key editor is fine for small trinkets, but for serious work I'd really prefer to work in Emacs.

-p.

Comments

  • thoseythosey Posts: 7
    edited 2004-09-29 15:35
    Peter, I think that you can find what you are looking for on sxlist.com. Here is the full path http://www.sxlist.com/techref/ubicom/sasm.htm
    I use this way when working with picant, sourceboost, (c2c). I wish there was a standalone debugger. This would be awsome.
    I also wish that the sx editor had more switch commands. Hint hint Peter Montgomery.
    But for the money (Free) you can't beat the editor and the debug bundle of the sxkey editor.
  • peterjpeterj Posts: 24
    edited 2004-09-30 08:23
    Thanks! That'll do it for me. I'm still stuck with reloading into the SX-Key IDE for programming and debugging, but I'm familiar with games like this. As long as I can squash syntax errors before going back to the IDE for programming I'm ok (for now...)

    I don't mean to knock the IDE, it really is quite nice (aside from the bug which prevents it from running on fast machines) and I'm sure most Windows users will be quite pleased with it. But I've been using Emacs for nearly 20 years now and despite the text-based interface I find it a better IDE than most else I've worked with. I'd be in heaven with a gdb interface to the ICD...

    -p.
  • PJMontyPJMonty Posts: 983
    edited 2004-10-01 06:31
    Peter,

    I'm afraid the possibility of a GDB interface to the ICD is stuck somewhere between slim and none, but I bet you already knew that in your heart... Sorry.

    As for command line switches (requested by Thosey), that's more likely in the realm of reality. I promise nothing, but what sort of switches would float your boat?
      Thanks, PeterM
  • peterjpeterj Posts: 24
    edited 2004-10-03 22:36
    Indeed. Were I doing more work with the SX and the hardware capabilities greater, I'd consider doing the Emacs integration myself -- I do have a vague recollection of seeing the SX-Key communication protocol posted somewhere. The only thing that would really make it worthwhile, though, would be to add conditional breakpoints. Unfortunately this requires single-stepping the target CPU and would dramatically limit the rate at which the target circuit could be debugged. Nothing beats a logic analyzer and true ICE!

    The reality is that your debugger seems to take advantage of all that can be done given the debugging hardware, and in that realm the GUI is fully sufficient. It *would* be nice, as Thosey mentioned, if there was a command-line tool to program the SX, and a method to fire up the debugger directly from the command line. It does not seem unreasonable to add this functionality via command-line switches to the existing executable, avoiding the need for an additional codebase and executables. From a technical standpoint, this does not seem as if it should be at all difficult. Far more of a PITA would be documentation and support. Perhaps these could exist as undocumented and unsupported features? wink.gif

    -p.
  • thoseythosey Posts: 7
    edited 2004-10-05 19:52
    To Peter Montgomery

    I would love to have a command line switch that would take the already compiled code and start downloading right to the chip and then close the ide or programmer box. I like the way sxthev has a command line programmer. I would also like to see a switch that could load the lst file directly into the debuger and start debugging. It makes it convenient for persons using 3rd party Ide's and compilers like picant "sourceboost", sxbasic, winedit, among others.
    I think others might even like to interface *.cod files.
    I wouldn't mind also seeing a switch that could take a file start and assemble and then close upon completion like sasm does but through the sxkey editor with a switch aslo to choose between the parallax assembeler or the sasm assembeler.

    Thanks
  • James NewtonJames Newton Posts: 329
    edited 2004-10-05 20:29
    The protocal used to program an SX with the SX-Blitz is documented:
    http://www.parallax.com/sx/sxblitz_protocol.asp·and the SX-Key basically follows the same protocal
    http://www.sxlist.com/techref/parallax/sxkey/SXBLITX_SXKEY.htm

    There are any number of command line programmers available

    http://www.sxlist.com/techref/ubicom/devprogs.htm

    http://sourceforge.net/projects/gsxprog/ - C Linux code to read and program SX chips with the SX-Blitz or SX-Key hardware. See:
    http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/gsxprog/?cvsroot=gsxprog for the actual source.

    http://sourceforge.net/projects/blitzer/ - C / Python code for Linux and PalmOS to drive the SX-Blitz

    Heck you can read, program AND debug with QBASIC if you want

    http://www.sxlist.com/techref/parallax/sxkey/qbl99v3.htm



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ---
    James Newton, Host of SXList.com
    james@sxlist.com 1-619-652-0593 fax:1-208-279-8767
    SX FAQ / Code / Tutorials / Documentation:
    http://www.sxlist.com Pick faster!



Sign In or Register to comment.