When I type a text on notepad and view it in HP, there is allways
annoying square marks representing the end of the paragraph.
I use SD Card to "transfer" files and not USB cable.
So the transfer protocol doesn't correct the ASCII code.
How can I resolve this situation in a fast way?
Thanks,
Rui
this is your fast way:
"your text"
13 CHR "" SREPL DROP
have fun
manjo
dos/windows uses CR LF combination (2 characters 0x0D 0x0A)
Program i sent you in the previous post removes CR characters
(on HP visible as sqares at the end of line)
Sugestion :
You could use text editor which supports UNIX (LF only) end of line
characters
-you will have clear text and you won't need to additionaly proccess your
texts.
regards
manjo
> When I type text in notepad and view it in HP, there are always
> annoying square marks representing the end of the paragraph.
"Carriage returns" at end of lines, as already noted by others.
> I use SD Card to "transfer" files and not USB cable.
> So the transfer protocol doesn't correct the ASCII code.
You can correct the ASCII code inside the calc,
using the very same ROM function utilized by Kermit
and by some other file transfer software;
this has the advantage that not only will it remove
the "CR" part of each "CRLF," but it will also
translate any non-ascii characters which you may
represent by sequences such as \<< \>> \-> \127 etc.
@ for ROM type *49* -- including 48Gii, apparently
\<< \->STR 3. TRANSIO #2F34Dh SYSEVAL + \>> 'KINV' STO
@ for ROM type *48* -- only HP48S[X] or 48G[X or +]
\<< \->STR 3. TRANSIO #3016Bh SYSEVAL + \>> 'KINV' STO
NOTE: We highly recommend making memory backups before use,
because any wrong addresses or arguments of system functions
can crash a calc and/or wipe out its memory; in fact,
the reason for the \->STR command above is to guarantee
that a string argument is present for the internal function,
so that once entered correctly and tested,
the above can never cause a crash.
The above comes from the following post, where starting
about mid-post we go into a complete system for importing files
from (or exporting to) an SD card (or any text file or clipboard,
or to/from the emulator, which is how I do all these posts).
Other importing systems have also been offered,
but in this "me too" version there is a "bulletproof" method
to prevent unintended execution of commands, just as used by the
built-in Kermit (yet *not* by the Conn4x file transfer program):
http://groups.google.com/group/comp.sys.hp48/msg/46b8bc3f34d9dfe0?dmode=source
[r->] [OFF]