=: - Store¶
Overview¶
Mnemonic: assignto
Function: Store
Class: MOVE
Privilege: user
Format: <dest> =: <source> or <source> =: <dest>
Description¶
The store operator (=:) transfers data from a register to memory or another register. This is the fundamental data movement operation in ND-500 assembly, with the colon indicating data flow direction (from left to right).
Operation:
<source> → <destination>
Key Characteristics:
- Bidirectional syntax:
src =: dstordst =: src(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.RESULT
Example 2: Array access¶
I1 := B.ARRAY(I2)
Example 3: Record field¶
I1 := R.FIELD
Performance Notes¶
- Cycles: 2-4
Reference Manual¶
Section: §10.4 Title: Store