Post Reply 
Outputting from notepad++ directly to hpemu48? (HP50g)
05-16-2016, 02:33 AM (This post was last modified: 05-16-2016 01:14 PM by chris b.)
Post: #1
Outputting from notepad++ directly to hpemu48? (HP50g)
EDIT: Decided to figure it out for myself, came up with a very workable solution.

You can download a portable version here (self hosted): http://venerence.apollo.feralhosting.com/npp-hp50g.zip.

save files as a .s or .hpprgm for notepad++ to pick up the syntax highlighting.

alt+f1 will open up the emulator and pipe your program into the emulator. From there, hit the "CONV" softkey (either from the HOME directory variable or saved in the custom menu) to convert from ASCII to binary, and you can either evaluate it or store as a variable from there.

Please note that the header must have translation code 3 in it to work properly, so your header should look like this:
Code:
%%HP: T(3)A(D)F(.);

All the programs involved (emu48, notepad++, hp prime syntax) are under the GNU GPL, and *should* (in theory) be redistributable.

Quote:So currently, I have been developing in User RPL for the HP50g calculator. To this end, I have been using two major programs, Debug4x and Notepad++, with a language definition file for user RPL.

I would prefer to stick to one program for continuity, and I would like that program to be debug4x, but the editing environment is extremely buggy. It seems to randomly decide whether tabs are considered white space, predefined characters don't always display properly, and there are multiple visual bugs.

So I program in ascii in notepad++, and my code comes out something like this:
Code:
%%HP: T(0)A(D)F(.);
@
@
\<<
4 FIX @set to 4 decimal points
DEG RECT -105 SF @set degree mode and approximate mode
-42 SF @set dd/mm/yy
-56 SF @turn off beep
-95 CF @turn on RPN mode
-117 SF @turn on soft menu
HOME
500\->KEYTIME @set the delay between keystrokes lower
\<< 500\->KEYTIME \>> 'STARTUP' STO @add to startup
\>>

One feature I really miss though is that debug4x lets you compile ascii code directly into the emulator for testing, and I am looking for a way to do that with notepad++. At the moment I have to set up a dummy file, copy my code into debug4x, and export to the emulator. It would be nice if I could compile directly from notepad++.

Anyone have a clear idea how that might work?

EDIT: decided to do it myself, attached a working example below. Reply soon on how to use it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Outputting from notepad++ directly to hpemu48? (HP50g) - chris b - 05-16-2016 02:33 AM



User(s) browsing this thread: 1 Guest(s)