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

.dec

Decrement Value

Note: float mode support

.dec &(0x2)

Example

; Load float value
.orb $(0x1)
.val @float_t(12.3)
.pull &(0x4)
​
; decrement 12.3 -> 11.3
.dec &(0x4)
; load int
.ldx &(0x1) <| $(0x22)
; decrement value 0x22 -> 0x21
.dec &(0x1)

OpCode

0xB2

See also

.pull
/instructions/.pull
.orb
/instructions/.orb
.ldx
/instructions/.ldx
.val
/instructions/.val

​

Instructions - Previous
.inc
Next - Instructions
.ckft
Last updated 11 months ago