Ancient VM
Ancient VM
Ancient VM
Ancient VM
Introduction
Github
Information
Environment flags
Internal VM functions
Flags address
External Devices
Halt VM
Float Mode
VM Assembly structure
Modules
Instructions
Debug
Jumpers
Math Operations
Logical Operations
.mva
.nop
.warm
.halt
.ldi
.ldx
.wtd
.rfd
.swap
.dup
.ref.t
.page
.lpstr
.unlock
.prune
.call.i
.locals
.readonly
.raw
.orb
.pull
.val
.inc
.dec
.ckft
.inv
...static.extern.call
.dif.t & .dif.f
Powered by GitBook

.ldi

Load const into cell

Load 0x5 const value into [0x0] cell

.ldi &(0x0) <| $(0x5)

Value range: 0x0-0xF For larger values, use .ldx

Examples:

; Enable trace log for VM
.ldi &(0x11) <| $(0x1)

OpCode

0x01

Instructions - Previous
.halt
Next - Instructions
.ldx
Last updated 8 months ago