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


Words in category Memory Access Words in glossary TurboForth Kernal

Search:
The following words are listed in this category (23 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
! S value address -- -- Writes value to the cell at address.
@ S address -- value -- Pushes the value read from address to the stack.
@++ S address - address+2 value -- The cell at address is read and the value pushed to the stack, above the address. Address is incremented by 2, ready for @++ to be called again. Note, TurboForth V1.0 has a different stack signature. Please see comments.
+! S value address -- -- Read the cell at address, adds value to it and stores the result at address.
>MAP S bank address -- -- Maps bank number bank into memory at address address. SAMS 1MB memory expansion required.
0! S address -- -- Store 0 to the cell at address.
C! S char address -- -- Store lower 8 bits of char to address. (Byte write)
C@ S address -- n -- Read byte at address. The upper 8 bits of the cell on the data stack are 0. The lower 8 bits contain the value read from the memory address.
CELLS S a -- a*2 -- Returns the number of bytes needed for a cells (a*2).
CHARS S a -- a -- Returns a. Included for compatibility and code readability.
CMOVE S src_addr dest_addr count -- -- Copies count bytes from src_addr to dest_addr.
CMOVE> S src_addr dest_addr count -- -- Copies count bytes from src_addr to dest_addr.
COPYW S src_addr dest_addr count -- -- Copies count cells (16-bits) from src_addr to dest_addr.
FILL S address count value -- -- Fills count bytes of memory with value, starting at address.
HFREE S -- n -- Returns available memory (in bytes) in high memory.
LFREE S -- n -- Returns available memory (in bytes) in low memory.
MEM S -- -- Reports the number of free bytes in low memory, number of free bytes in high memory, and total number of free bytes respectively to the screen.
V! S value address -- -- Stores 8 bit value value to VDP address address.
V@ S address -- value -- Fetches value from VDP address address. Places the 8-bit value read from VDP memory on the stack as a 16-bit right justified cell.
V2! S value vdpAddress -- -- Writes the 16-bit value value to vdpAddress.
V2@ S vdpAddress -- n -- Reads the 16-bit value from address vdpAddress and pushes it to the stack as a single 16-bit cell.
VMBR S vdp_address cpu_address count -- -- VDP Multiple Byte Read. Copies count bytes starting at vdp_address to CPU memory starting at cpu_address.
VMBW S vdp_address cpu_address count -- -- VDP Multiple Byte Write. Copies count bytes starting at CPU address cpu_address to vdp memory starting at vdp_address.

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