Alcor6L/PicoLisp/cpu
< Alcor6L
This module deals with low-level access to CPU (and related modules) functionality, such as reading and writing memory, or enabling and disabling interrupts. It also offers access to platform specific CPU-related constants.
Functions
editcpu-w32
editWrites a 32-bit word to memory.
(cpu-w32 address data)
- address - the memory address.
- data - the 32-bit data to write.
Returns: data.
cpu-r32
editRead a 32-bit word from memory.
(cpu-r32 address)
- address - the memory address.
Returns:
- data - the 32-bit word read from memory.
cpu-w16
editWrites a 16-bit word to memory.
(cpu-w16 address data)
- address - the memory address.
- data - the 16-bit data to write.
Returns: data.
cpu-r16
editReads a 16-bit word from memory.
(cpu-r16 address)
- address - the memory address.
Returns:
- data - the 16-bit word read from memory.
cpu-w8
editWrites a byte to memory.
(cpu-w8 address data)
- address - the memory address.
- data - the byte to write.
Returns: data.
cpu-r8
editReads a byte from memory.
(cpu-r8 address)
- address - the memory address
Returns:
- data - the byte read from memory.
cpu-clock
editGet the CPU core frequency.
(cpu-clock)
Arguments: none.
Returns:
- clock - the CPU clock (in Hertz).
PicoLisp Interrupts
editInterrupt support is not implemented for PicoLisp yet.