FANDOM


A VM instruction that sets a memory location with a literal value, or a value stored in another memory location.

When setting a memory location with value of another memory location, set acts as a de facto copy instruction between locations in hakk memory.

Usage Edit

set: [{memory location}, {literal|memory location}]

hakkML Example Edit

name: set_example
blocks:
  core:
  entry: {name: 'main', loc: [0,1]}
code:
  main:
    - rem: Set core.0 with '42'
    - set: [core.0, 42]
    - rem: Set core.1 with the contents of core.0
    - set: [core.1, core.0]
    - exit: 0