< Alcor6L < PicoLisp

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

cpu-w32

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

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

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

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

Writes a byte to memory.

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

Returns: data.

cpu-r8

Reads a byte from memory.

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

Returns:

  • data - the byte read from memory.

cpu-clock

Get the CPU core frequency.

(cpu-clock)

Arguments: none.

Returns:

  • clock - the CPU clock (in Hertz).

PicoLisp Interrupts

Interrupt support is not implemented for PicoLisp yet.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.