STO IND Y when EMDIR gives 600; HowTo?

STO IND Y when EMDIR gives 600; HowTo?

Postby floppy_stuttgart » Sun May 01, 2022 6:22 pm

I have a CX with double X-Memory.
EMDIR gives 600 as number. It means 600 register in total therefore 000 to 599 accessible? (128 for the main memory in it)-
By putting 600 and then 599 in Y
Code: Select all
Since I was not using indirect storing since a longer time, perhaps somebody can help what to do here.
Posts: 111
Joined: Mon Mar 29, 2021 2:36 pm

Re: STO IND Y when EMDIR gives 600; HowTo?

Postby rprosperi » Sun May 01, 2022 7:26 pm

Registers in main memory are used to directly store and recall numeric data in the R00, R01, R02... style. Main memory can only hold up to 319 registers (assuming you set SIZE to 319, and would have no program storage available) and with indirect access above R99 as you describe, but this is limited to the 319 registers of main memory.

Extended Memory is used only for storing files of various types, including Program, Key, ASCII and Data files. Data files are used to hold register values, these are written to XMEM (data registers -> XMEM) using the SAVER, SAVERX, and SAVEX commands and read from XMEM (XMEM -> data registers) with the GETX, GETR, GETRX commands. The SEEKPT function is used as a pointer to the current record (register) in a Data file.

See the 82180A Extended Memory/Functions ROM manual or the 41CX manual for details on how to use Data Files to store register data.
Posts: 73
Joined: Sat Apr 11, 2015 1:03 pm

Re: STO IND Y when EMDIR gives 600; HowTo?

Postby Garth » Sun May 01, 2022 7:52 pm

Yes; think of extended memory kind of like a hard disc. OSs don't usually let you write to, or read, sectors directly, but instead have files and pointers in files.
Posts: 276
Joined: Tue Jan 20, 2009 1:31 am

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest