Alcor6L/PicoLisp/cpu

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

edit

cpu-w32

edit

Writes 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

edit

Read a 32-bit word from memory.

(cpu-r32 address)
  • address - the memory address.

Returns:

  • data - the 32-bit word read from memory.

cpu-w16

edit

Writes 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

edit

Reads a 16-bit word from memory.

(cpu-r16 address)
  • address - the memory address.

Returns:

  • data - the 16-bit word read from memory.

cpu-w8

edit

Writes a byte to memory.

(cpu-w8 address data)
  • address - the memory address.
  • data - the byte to write.

Returns: data.

cpu-r8

edit

Reads a byte from memory.

(cpu-r8 address)
  • address - the memory address

Returns:

  • data - the byte read from memory.

cpu-clock

edit

Get the CPU core frequency.

(cpu-clock)

Arguments: none.

Returns:

  • clock - the CPU clock (in Hertz).

PicoLisp Interrupts

edit

Interrupt support is not implemented for PicoLisp yet.