1: What byte(s) do I use in place of Data in order to find all files of a given type?
2: What number does this function return if it fails?
3: Where do I start the pointer? I know that this pointer "points" to a byte in memory, but I don't know where to start looking in memory.
Help with this would be much appreciated, as I am working on a big project, hopefully to come out soon after I know how to use this function.
1. Values below are in hexadecimal:

Code:
#define TI_PRGM_TYPE            (0x05)
#define TI_PPRGM_TYPE           (0x06)
#define TI_TPRGM_TYPE           (0x16)
#define TI_APPVAR_TYPE          (0x15)
#define TI_REAL_TYPE            (0x00)
#define TI_CPLX_TYPE            (0x0C)
#define TI_MATRIX_TYPE          (0x02)
#define TI_STRING_TYPE          (0x04)
#define TI_EQU_TYPE             (0x03)
#define TI_REAL_LIST_TYPE       (0x01)
#define TI_CPLX_LIST_TYPE  (0x0D)

2. If there are no more variables of that type to find, 0 is returned.
3. The start of the pointer should point to 0.

Hope this helps Smile
I can't seem to get detectvar to work, nor can I get it to write the name to an appvar. And I've been trying for several hours... Sad
Can anybody help me get my code to work?


Code:

Lbl FINDFILES
0→I
sum(1,"BOSfolds","r+"→D
sum(16,D→N
Lbl FFRTN2
sum(20,I,0,5→FILE
If FILE≠0
Call FFRTN3
I+1→I
Goto FFRTN2
End
sum(3,D
Return
Lbl FFRTN3
sum(6,D→CH
sum(14,D→M
sum(10,M-1,0,D
If CH>0
While M<N and CH>0
sum(6,D→CH
sum10,11,1,D
M+12→M
End
End
For(P,1,8
sum(7,*{FILE+P},D
End
sum(7,5,D
sum(7,0,D
sum(7,0,D
sum(7,0,D
Return


NOTE: This code is a subroutine!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement