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


BLOCK Search:

In Block I/O Words in TurboForth Kernal

Word Name: BLOCK
Type: Standard word
Data Stack Signature: block -- vdp_addr
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Loads block block from the file currently in USE into a free buffer.

Example:

none

Comment:

Returns the address vdp_addr representing the beginning of the buffer in VDP memory.

BLOCK returns 0 if the block could not be loaded. In that case, IOERR can be checked for a possible I/O error.

Blocks (and their associated buffers) are exactly 1024 bytes in length.

Calls FLUSH if no free buffers are available.

See Also: IOERR  EMPTY-BUFFERS  FLUSH  LOAD  USE 

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