Re: LF: ASM & using TI variables.
[Prev][Next][Index][Thread]
Re: LF: ASM & using TI variables.
On Wed, 4 Dec 1996 ST7WO@Jetson.UH.EDU wrote:
> Stilling digging, trying to figure out the memory structures for handles and
> variables... A few things i've found:
>
> - The first word pointed to by a handle, contains the size of the following
> memory block in BYTES; the Fargo documentation states WORDS.
The forst word of the block is not specified - it depends on what is
allocated (but many variables start with the length in bytes). The word
_before_ the block however, is always the lenght in words, as specified
in the fargo documentation.
> - $DC (or maybe $00DC, don't recall.) terminates a program variable.
> - $2D terminates the meory block of a string variable.
$DC terminates pic-variables... At least on my calc there's no specific
byte that terminates programs.
> - The handle $000C points to the structure containing info about the folder
> "main" (as stated in the Fargo info)
>
> Looking at this memory block...
>
> 00-01 Always seems to contatin $0014??
I seem to remember this being $000A on my calc, but I'm not sure
> 02-03 Number of files in folder "main"
>
> Follwed by 12 bytes for each file:
>
> 04-0B The name of the file. (8 chars)
> 0C-0D (Don't know; but just occured to me that this might be the "lock" flag?)
You may be right, it may be a "flags" word.. main had $0080 while files
had $0000 right?
> 0E-0F The HANDLE of the file.
>
> 10-... repeated for each file.
//Sasq (Jonas Minnberg)
References: