LIKO-12
  • Docs
  • Help
  • Blog

›Peripherals

Introduction

  • What is LIKO-12
  • How to install LIKO-12
  • Getting started
  • Your first LIKO-12 program

Peripherals

  • Audio
  • BIOS - Basic Integrated Operating System
  • CPU - Central Processing Unit
  • FDD - Floppy Disk Drive
  • Gamepad
  • GPU - Graphics Processing Unit
  • HDD - Hard Disk Drive
  • Keyboard
  • RAM - Random Access Memory
  • TouchControls - The Touch Gamepad Input
  • WEB

Peripherals' Objects

  • GPU / fontData
  • GPU / image
  • GPU / imageData
  • GPU / quad
  • GPU / spriteBatch
  • WEB / response
Edit

RAM - Random Access Memory

Allows the creation of video memory effects.

Memory Table:

0x0 -> 0x2FFF - The Video RAM
0x3000 -> 0x5FFF - The Label Image
0x6000 -> 0x15FFF - The FDD RAM

Note: The FDD RAM is used by DiskOS when saving your game into a .png

  • Version: v1.0.0
  • Available since: LIKO-12 v0.6.0
  • Last updated in: LIKO-12 v0.8.0

Methods:


RAM.memcpy

Copies data in RAM.

Copies data from one location to another in video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0
RAM.memcpy(from_address, to_address, length)

Arguments:

  • <from_address> (number): The address of the data to be copied.
  • <to_address> (number): The address the data should be copied to.
  • <length> (number): Length of the data to copy.

RAM.memget

Gets data from RAM.

Returns a string of data from video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0
data = RAM.memget(address, length)

Arguments:

  • <address> (number): The address of the data to read.
  • <length> (number): Length of the data to read.

Returns:

  • data (string): Data that was read.

RAM.memset

Sets data to RAM.

Writes a string of data to video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0
RAM.memset(address, data)

Arguments:

  • <address> (number): The address of the location to write to.
  • <data> (string): Data to write to that location.

RAM.peek

Peeks a byte section in RAM.

Peeks (reads) a byte section in video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0
value = RAM.peek(address)

Arguments:

  • <address> (number): An address to the location to read.

Returns:

  • value (number): Value of the byte, that was read.

RAM.peek4

Peeks a half byte section in RAM.

Peeks (reads) a half byte section in video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0

The address is for the specific half byte.

value = RAM.peek4(address)

Arguments:

  • <address> (number): An address to the location to read.

Returns:

  • value (number): Value of the half byte, that was read.

RAM.poke

Pokes a byte section in RAM.

Pokes (writes) to a byte section in video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0
RAM.poke(address, value)

Arguments:

  • <address> (number): An address to the location to read.
  • <value> (number): Value to write to the byte.

RAM.poke4

Pokes a half byte section in RAM.

Pokes (writes) to a half byte section in video memory.

  • Available since: RAM: v1.0.0, LIKO-12: v0.6.0
  • Last updated in: RAM: v1.0.0, LIKO-12: v0.6.0

The address is for the specific half byte.

RAM.poke4(address, value)

Arguments:

  • <address> (number): An address to the location to read.
  • <value> (number): Value to write to the half byte.
← KeyboardTouchControls - The Touch Gamepad Input →
  • Memory Table:
  • Methods:
    • RAM.memcpy
    • RAM.memget
    • RAM.memset
    • RAM.peek
    • RAM.peek4
    • RAM.poke
    • RAM.poke4
LIKO-12
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
Project Chat (Discord)Twitter
More
BlogGitHubStar
Copyright © 2020 The LIKO-12 Organization