Skip to content
StinkerB06 edited this page May 7, 2020 · 10 revisions

peek4

peek4 addr4 -> val4

Parameters:

  • addr4 : any address of the 80K RAM byte you want to read, divided in groups of 4 bits (nibbles). Therefore, to address the high nibble of position 0x2000 you should pass 0x4000 as addr4, and to access the low nibble (rightmost 4 bits) you would pass 0x4001.

Output:

  • val4 : the 4-bit value (0-15) read from the addr4 parameter

Description:

This function allow to read the memory from TIC. Address are in hexadecimal format but values are decimal.

Examples

Spritesheet editing example in the examples page

Clone this wiki locally