Skip to content

:= - Load

Overview

Mnemonic: assignfrom Function: Load Class: MOVE Privilege: user

Format: <dest> := <source> or <source> := <dest>


Description

The load operator (:=) transfers data from memory or a register into a register. This is the fundamental data movement operation in ND-500 assembly, with the colon indicating data flow direction (from right to left).

Operation:

<source> → <destination>

Key Characteristics:

  • Bidirectional syntax: dst := src or src := dst (colon shows flow)
  • Supports all data types (BY, H, W, F, D)
  • All addressing modes supported
  • Most common instruction in typical code
  • Sets flags based on data type (Z, S, C)
  • 2-4 cycles depending on addressing complexity

Operands: 2 Variants: Multiple (all data types)


Variants

Supports all data types (BY, H, W, F, D) and addressing modes.


Operands

Operands

Source and destination as specified by operator direction.


Trap Conditions

  • Addressing traps: Invalid address

Data Status Bits

Varies by data type.


Examples

Example 1: Basic usage

        I1 := B.VALUE

Example 2: Array access

        I1 := B.ARRAY(I2)

Example 3: Record field

        I1 := R.FIELD

Performance Notes

  • Cycles: 2-4

Reference Manual

Section: §10.1 Title: Load


See Also