[comp.sys.handhelds] C Program to create asc encoding?

ervin@pinbot.enet.dec.com (Joseph Ervin) (02/19/91)

Hello all,

I am using the STAR assembler, and am having some difficulty in getting the
binary output to correctly download to the HP48SX.  When I tell kermit to
transfer the file, the HP48SX sees it as a text string.  I have checked to
ensure that both kermit on the pc and the HP48SX both are doing binary
transfers, but something is still going wrong.  

Does anyone know the format of the binary files that the HP48SX sends up to the
pc when transfering in binary mode?  I am thinking that perhaps the output of
STAR is not in the right format for the HP48SX to receive.

Can anyone offer any help?  Please?

>>>Joe 

TNAN0@CCVAX.IASTATE.EDU (02/20/91)

Joe,

  The latest PC version of STAR seems to have some bugs in it.  Sometimes, it
will get the file created correctly and it will download fine.  Other times
it will not.  Here are a few pointers:

Make your assembler files look like this:

	header
	code
...
...
...   Your code here
...
...

	endcode

To use header, code, and endcode, you will need to assemble hp48.star with
your code.  (ie., STAR BLAH BLAH MYFILE.STAR HP48.STAR)  If you use something
other than *.star (with truncates to *.sta), then obviously, use that
extension.  If you STILL can't get it to download correctly, contact
the creator (you'll find Jan's email address in the docs).  I find that
whenever I include the addr macro inside of the code-endcode structure, the
assembler messes up the file creation, but this may be coincidence.  I also
noticed that the address and hex dump fields in the .lis files mess up
whenever a lot of code is generated on one line-- which almost always happens
when using macros.

Good luck!

---Xeno

P.S. STAR is great, but it is currently unusable on PCs (at least mine)
because of these problems...