<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


Words in category Block I/O Words in glossary TurboForth Kernal

Search:
The following words are listed in this category (22 words found): Word Types: S = Standard, I = Immediate , IC = Immediate-compiling.
Word Name Word Type Data Stack Signature Return Stack Signature Description Availability
V1.0 V1.1 V1.2
--> I -- -- Loads the next block from the file currently in USE.
BLK S -- address -- Contains the number of the block currently being accessed, or 0 if no block is currently being accessed.
BLK? S buffer -- block vdp_addr -- Returns the disk block stored in the buffer buffer (or 0 if the buffer is empty) and the VDP address vdp_addr of the buffer.
BLOAD S block -- nfb -- Loads a block of raw memory from block storage that has been previously saved with BSAVE.
BLOCK S block -- vdp_addr -- Loads block block from the file currently in USE into a free buffer.
BSAVE S start block -- nb -- Binary Save - saves a block of memory to the current blocks file.
BUF? S block -- buffer vdp_addr -- Returns the buffer number of block block, and its address in VDP memory as vdp_addr. Returns 0 0 if the block is not in memory.
CLEAN S buffer -- -- Sets the status of buffer buffer to clean. Subsequent FLUSHes will not flush the buffer to disk.
CLOAD I block -- -- Conditionally loads block if the word immediately following CLOAD is not found after a dictionary search.
DIRTY S buffer -- -- Sets buffer buffer's status to dirty. Subsequent FLUSHes will causes the buffer to be written to disk, to the block set with SETBLK.
DIRTY? S buffer -- flag -- Returns TRUE if buffer buffer is dirty (i.e.the buffer has changed since being loaded from disk (via BLOCK or LOAD and requires flushing to disk), otherwise returns FALSE.
EMPTY-BUFFERS S -- -- Unconditionally sets all buffers to CLEAN. Subsequent FLUSHes will not write anything to disk.
FLUSH S -- -- Flushes all dirty buffers back to their respective block positions on disk. Buffers not marked as dirty are not flushed.
LIST S block -- -- Displays block block to the screen.
LOAD S block -- -- Loads (compiles/executes) block block.
MKBLK S size -- -- Creates a block file (used for storing source code and/or data) on the nominated disk, with enough space for size screens/blocks of data and sets the new file as the current blocks file.
MKDSK I size -- -- Creates a block file with the name file and capacity for size blocks.
SETBLK S buffer block -- -- Associates buffer buffer with block block.
THRU S start end -- -- Loads blocks starting at block start thru end inclusive.
UPDATE S -- -- Marks the last accessed block as dirty.
USE S string -- -- Defines the block file to be used. A string should be set up on the stack before calling USE.
WHERE S -- block -- Returns the block number of a user-loaded word in the dictionary. Non-existant words return 0.

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>