The following warnings occurred:
Warning [2] Undefined array key 170819 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 170959 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 171036 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 171037 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 171036 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 171037 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





Poking a string directly into the 71B as a lex file problems



#2

Ok here is what I am trying to do. I want to poke a lex file into the 71B as just a plain string not using the pokelex basic program. I assembled the lexfile on my pc. All this lex file does is display the number one (this is the sample in the 71B forth/assembler rom manual). I have the file length correct when I make the dummy file. When I poke the string into the 71B directly on top of the Dummy file as the pokelex program does it creates it fine. The keyword even works and displays the "1" but the file chain must be getting trashed because after that I can no longer create a new file. When I do a CAT ALL the files are all there until I get to the end of the list, then I get strange characters and I have to reset the 71B (INIT:3).

Here is how I'm doing this on the 71b:

CREATE TEXT DUMMY,34 ! LENGTH REPORTED BY THE DUMPLEX PROG AS WELL
DIM F$[100] ! ACTUAL LENGTH OF STRING
A$=ADDR$('DUMMY')
ENTER 1; F$ ! GETS THE STRING FROM THE PC VIA THE RS232 INTERFACE
POKE A$,F$
I know the string I'm trying to poke is correct and matches what the dumplex program shows. What am I missing here? any ideas?


Edited: 26 Aug 2010, 9:27 p.m. after one or more responses were posted


#3

You are corrupting the file chain with this method. A cleaner way is to encapsulate your LEX file with a LIF header, and do a "COPY :1", the HP-71B will take care of the file chain.

I made such a tool: aLIFhdr (add LIF header), available in my JPC ROM page
here

J-F


#4

Yes thanks I figured thats what I was messing up. I did find a way and that was to add NIBHEX 00000 to the end of the source file. The dummy text file has a FFFFF at the end which was not being accounted for. I'm sure you already knew that. I will your try your solution as it is cleaner. Thank you for the link! :)

Edited: 25 Aug 2010, 11:29 p.m.

#5

BTW any change of seeing emu71 on 64 bit windows, or perhaps making the source code available?

I cant copy anything except a string of ascii characters to my HP71. So I had to use this method. I'll use the sample lex file from the Forth/Assembler ROM manual:

0003 00000 B4549575         NIBASC 'KEYWORD '
00008 F4254402
0004 00010 802E NIBHEX 802E file type lex
0005 00014 00 CON(2) 0 flags and copy code
0006 00016 82 CON(2) #28 * creation time
0007 00018 90 CON(2) #09 *
0008 0001A 20 CON(2) #02 * creation date
0009 0001C 80 CON(2) #08 *
0010 0001E 01 CON(2) #10 *
0011 00020 94000 REL(5) FiLeNd offset to next file
0012 00025 D5 CON(2) #5D flex file ID
0013 00027 10 CON(2) 001 lowest token
0014 00029 10 CON(2) 001 highest token
0015 0002B 00000 CON(5) 0 next lex table link
0016 00030 F NIBHEX F no speed table
0017 00031 7100 REL(4) 1+TxTbSt text table offset
0018 00035 0000 CON(4) 0 no msg handler
0019 00039 00000 CON(5) 0 no poll handler
0020 0003E * * * M A I N T A B L E * * *
0021 0003E 000 CON(3) (TxEn01)-(TxTbSt)
0022 00041 41000 REL(5) FNCT Keyword code starts at this label
0023 00046 F CON(1) #F The keyword is a BASIC function
0024 00047 * * * T E X T T A B L E * * *
0025 00047 TxTbSt
0026 00047 TxEn01
0027 00047 5 CON(1) 05
0028 00048 F4E454 NIBASC 'ONE' This keyword is called "ONE"
0029 0004E 10 CON(2) 1
0030 00050 1FF NIBHEX 1FF End of BASIC keyword tables
0031 00053 00 NIBHEX 00 Minimum and Maximum number of parame
0032 00055 AF2 FNCT C=0 W Clear register C
0033 00058 2E P= 14 Point to most signifcant digit in C
0034 0005A 301 LCHEX 1 Load a hex 1
0035 0005D 8D612F0 GOVLNG =FNRTN1 Send result to the system
0036 00064 00000 NIBHEX 00000 Padding for copy to 71B

Notice the padding at the end. This makes the file big enough to cover the end of the dummy text file which is FFFFF and not included in the size of the text file in bytes.
Now I can copy the string to the 71 and run this basic program. It's sloppy but it works. I'm sure there are better ways to do this.

10 DESTROY ALL                                                                  
20 INPUT "LENGTH? ";L ! Length of Lex String
30 DIM F$[L]
40 SFLAG -23
50 ENTER :1 ;F$ ! Get string from RS232 Interface
60 T$=F$[33,37] ! Get length of lexfile after header
70 T=HTD(REV$(T$))
80 N=IP((T-4)/2) ! Compute size of Dummy file
90 CREATE TEXT DUMMY,N
100 A$=ADDR$('DUMMY')
110 POKE A$,F$ ! Poke it over the Dummy file
120 DISP "DONE!"

Edited: 27 Aug 2010, 7:50 p.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot delete file Les Koller 4 1,981 11-07-2013, 12:17 AM
Last Post: Les Koller
  File Format: hpprgm Thomas Chrapkiewicz 6 2,524 10-30-2013, 09:32 PM
Last Post: Thomas Chrapkiewicz
  HP-Prime File extension Paul D. Fox 6 2,180 10-07-2013, 01:45 AM
Last Post: cyrille de Brébisson
  [HP-Prime xCAS] BUG: string command =( CompSystems 6 2,091 09-10-2013, 06:38 PM
Last Post: CompSystems
  go71b 'lexs' or 'raws' file format? Christoph Giesselink 2 1,360 08-21-2013, 02:53 AM
Last Post: Christoph Giesselink
  How do you print a 'data' file on the HP 71B to the HP 2225B thinkjet? Geoff Quickfall 3 1,597 08-18-2013, 04:32 PM
Last Post: Geoff Quickfall
  How to use XnView to create .gro4 file as in OpenFire? arturfeghali 2 1,330 06-27-2013, 05:57 PM
Last Post: jerome ibanes
  41CL :TROUBLE IN FILE TRANsFER aurelio 22 5,882 06-18-2013, 03:44 PM
Last Post: aurelio
  How to save WP34s programs to a file? Harald 9 3,063 04-26-2013, 01:44 PM
Last Post: Walter B
  [WP 34s] How to get the latest version of file xyz Walter B 3 1,433 03-17-2013, 05:52 AM
Last Post: Alexander Oestert

Forum Jump: