Post Reply 
HP-71: FORTH/Assembler Pac Rev.B - and the Ultimate HP-71 ROM Extension.
01-11-2021, 07:57 PM
Post: #3
RE: HP-71: FORTH/Assembler Pac Rev.B - and the Ultimate HP-71 ROM Extension.
(01-11-2021 05:23 PM)Valentin Albillo Wrote:  Also, do not forget to include the one keyword REPLACE$ from the REPLEX file, as it's also incredibly useful in many applications, for example it allows for quick filtering and conversions of data in strings, I use it all the time in everything from cross-compilers to user's input validation to you-name-it. Come to it, change the name to something shorter such as REPL$, because it frequently appears several times in a line, such as
T$=REPLACE$(REPLACE$( ... , "ė","e"),"ó","o"),"ú","u"),"ñ",n)
and it quickly fills up the command line and is quite cumbersome.

The REPLACE$ keyword is in the JPC ROM and so already part of my dreamt Ultimate ROM.
Also to map several characters such as in your example above, there is (in the JPC ROM too) the MAP$ function
T$=MAP$( ... , "ėóúñ","eoun")
and its powerful variant for files, the MAP statement - a very theoretical advice since I don't remember having ever used this statement :-)

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-71: FORTH/Assembler Pac Rev.B - and the Ultimate HP-71 ROM Extension. - J-F Garnier - 01-11-2021 07:57 PM



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