XL1200-EMU Symbolics XL1200 Emulator
Architecture & Guides docs/instruction-set-lexicon.md

Symbolics Ivory Macroinstruction Set Lexicon

This document provides a comprehensive technical lexicon of the instruction set architecture for the Symbolics Ivory processor (I-Machine). It is derived from the I-Machine Architecture Specification (Chapter 3 and Appendix F), cross-referenced with canonical Genera 8.3 compiler sources (genera-original/sys.sct/i-sys/opdef.lisp, genera-original/sys.sct/i-compiler/disassemble.lisp, and genera-original/sys.sct/i-compiler/i-instruction-set.lisp, local-only when present), and the from-scratch C11 emulator (emu/include/ivory_hw.h and Volume 2: ISA & Execution Semantics).


1. Instruction Formats & Word Packing

Ivory instructions are represented in 40-bit tagged words:

  • Bits <39:38>: CDR Code (controls instruction sequencing and prefetching).
  • Bits <37:32>: Data Type tag (DTP).
  • Bits <31:0>: Instruction payload, target address, or packed halfwords.
+----------+------------+-------------------------------------------------------+
| CDR (2)  |  DTP (6)   | Payload / Address / Packed Instructions (32)          |
+----------+------------+-------------------------------------------------------+
    39   38  37        32 31                                                   0

1.1 Instruction Classes

  1. Full-Word Call Instructions (0o50 .. 0o57): Contains a single instruction initiating a function call. The 32-bit payload directly specifies the function or entry target address.

    • 0o50: CallCompiledEven
    • 0o51: CallCompiledOdd
    • 0o52: CallIndirect
    • 0o53: CallGeneric
    • 0o54: CallCompiledEvenPrefetch
    • 0o55: CallCompiledOddPrefetch
    • 0o56: CallIndirectPrefetch
    • 0o57: CallGenericPrefetch
  2. Full-Word Entry Instructions: Special dtp-packed-instruction word at function entry encoding required, optional, and rest argument bounds.

  3. Full-Word Constants & Value Cells: Any standard Lisp object reference encountered in the instruction stream with tag < 0o50 is treated as an immediate constant pushed directly onto the control stack (e.g. dtp-fixnum, dtp-symbol, dtp-list, dtp-character). dtp-external-value-cell-pointer fetches and pushes the contents of the addressed cell.

  4. Packed Half-Word Instructions (0o60 .. 0o77): The primary execution format. Each 40-bit word contains two 18-bit instructions:

    • Even Halfword: Bits <17:0> of the 32-bit data field.
    • Odd Halfword: Bits <35:18> (((tag & 0o17) << 14) | ((data >> 18) & 0x3FFF)).
 39 38 37    36 35                                18 17                                 0
+-----+--------+------------------------------------+------------------------------------+
| CDR | DTP-PI |       Even Instruction (18b)       |       Odd Instruction (18b)        |
+-----+--------+------------------------------------+------------------------------------+

1.2 CDR-Code Instruction Sequencing

The 2-bit CDR code of an instruction word controls program counter (PC) progression:

CDR CodeBinaryNamePC IncrementBehavioral Semantics
000_2cdr-next+1Normal straightline execution (Even \(\rightarrow\) Odd \(\rightarrow\) next word Even).
101_2cdr-nilIllegalExecution fence; marks the end of a compiled function. Traps if executed.
210_2cdr-normal-1Used on constants following an even instruction to adjust PC back.
311_2cdr-jump+2 / +3Prefetch/constant skip: skips trailing constant words without requiring a NoOp; marks single Even-only halfword execution.

1.3 Canonical Compiler Definitions (opdef.lisp & disassemble.lisp)

The ground truth for all Ivory macroinstructions is defined in the Genera 8.3 compiler source tree (local-only when present):

  • genera-original/sys.sct/i-sys/opdef.lisp:
    Every opcode is declared using the DEFOPCODE macro:
    (DEFOPCODE symbolic-opcode opcode-number (n-args n-returned (legal operands)) . options)
    
    • Legal operand specifiers: lp, fp, sp, pop, signed, unsigned, 12-bit-immediate-unsigned, 10-bit-immediate, byte, relative-pc, entry.
    • Stack & register behavior options:
      • :needs-tos: Requires Top-Of-Stack operand.
      • :clobbers-tos: Overwrites or consumes Top-Of-Stack.
      • :tos-unchanged: Top-Of-Stack is untouched.
      • :needs-lp: Requires Local-Pointer access.
      • :function <name>: Maps instruction to corresponding Lisp runtime subroutine.
  • genera-original/sys.sct/i-compiler/disassemble.lisp:
    Canonical disassembler instruction format strings, halfword decoding logic, and operand formatting rules.
  • genera-original/sys.sct/i-compiler/i-instruction-set.lisp:
    Compiler instruction database and attribute tables.

2. Half-Word Addressing Modes & Operand Formats

Each 18-bit halfword instruction is divided into an 8-bit opcode field, a 2-bit addressing mode field, and an 8-bit offset or immediate field:

 17         10 9   8 7                                      0
+-------------+-----+----------------------------------------+
| Opcode (8b) | Mode|          Operand Specifier (8b)        |
+-------------+-----+----------------------------------------+

2.1 Addressing Modes

Bits <9:8> select one of four primary hardware addressing modes:

Mode BitsMode NameSyntaxEffective Address / Value
00_2 (0)Frame PointerFP[n]References argument / frame slot at FP + n (\(0 \le n \le 255\)).
01_2 (1)Local PointerLP[n]References local variable at LP + n (\(0 \le n \le 255\)).
10_2 (2)Stack / POPPOP or SP[-n]If \(n = 0\): POP (pops top of stack, auto-decrementing SP).
If \(n > 0\): SP[n - 255] (indexed stack offset relative to SP).
11_2 (3)Immediate / DestIMM[n] / DEST[d]For branch instructions: 10-bit signed branch displacement.
For other instructions: 8-bit unsigned/signed immediate value.

2.2 Compiler Operand Classifications (opdef.lisp & i-defs.lisp)

In the OpenGenera compiler database, instructions declare valid operand formats in defopcode:

  • fp: Frame pointer relative offset (\(0..255\)).
  • lp: Local pointer relative offset (\(0..255\)).
  • sp: Stack pointer relative offset (\(0..255\)).
  • pop: Stack top pop (sp with offset 0).
  • signed: 8-bit signed two's-complement immediate value (sign-extended to 32 bits).
  • unsigned: 8-bit unsigned immediate value (zero-extended to 32 bits).
  • 10-bit-immediate: Spans bits <9:0> (mode bits <9:8> combined with offset <7:0>), providing values \(0..1023\).
  • 12-bit-unsigned-immediate: Used exclusively by TypeMember instructions (0o040..0o047) to encode a 12-bit data type set bitmask.
  • relative-pc: 10-bit signed PC-relative halfword displacement (values \(-512..+511\)).
  • byte: 10-bit byte specifier encoding field size and bit position for Ldb and Dpb.
  • entry: Argument specification descriptor for compiled function entry words.

2.3 Specialized Instruction Operand Layouts

Finish-Call Operands (FinishCallN, FinishCallTos)

The 10-bit immediate operand field encodes:

  • Bits <7:0> (n-args-+1): Number of arguments passed + 1.
  • Bits <9:8> (disposition): Value disposition of call results:
    • 0: value-disposition-effect (discard result)
    • 1: value-disposition-value (push single value to stack)
    • 2: value-disposition-return (return value directly from current function)
    • 3: value-disposition-multiple (multiple return values)

Catch-Open Operand (CatchOpen, 0o376)

The operand field encodes:

  • Bit <0>: unwind-protect-p flag (\(1\) for unwind-protect, \(0\) for normal catch).
  • Bits <7:6>: value-disposition (effect, value, return, multiple).

Byte Field Specifiers (Ldb, Dpb, CharLdb, CharDpb, %PLdb, %PDpb)

The 10-bit operand encodes:

  • Bits <4:0>: Bit position pp (for load instructions, converted as \(32 - pp\)).
  • Bits <9:5>: Field size \(ss - 1\) (\(1..32\) bits).

3. Categorical Instruction Lexicon

NOTE

All opcode values below are given in standard Octal (matching opdef.lisp and emu/include/ivory_hw.h). Opcode attributes from the compiler database:

  • :needs-tos: Top of stack must contain valid operand.
  • :clobbers-tos: Overwrites or consumes top of stack operand.
  • :tos-unchanged: Leaves TOS intact while modifying memory / registers.
  • :needs-lp: Local pointer register must be active / valid.
  • :smashes-lp: Modifies or invalidates LP register.

3.1 List Operations

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o000Carcar( x -- car )lp fp sp popReads CAR of cons cell x; resolves forwarding pointers and CDR codes.
0o001Cdrcdr( x -- cdr )lp fp sp popReads CDR of cons cell x; respects cdr-next, cdr-normal, cdr-nil.
0o140SetToCarset-to-car( loc -- )lp fp spIn-place replacement: updates slot loc with its CAR (:tos-unchanged).
0o141SetToCdrset-to-cdr( loc -- )lp fp spIn-place replacement: updates slot loc with its CDR (:tos-unchanged).
0o142SetToCdrPushCarset-to-cdr-push-car( loc -- car )lp fp spReplaces loc with its CDR and pushes original CAR onto stack.
0o200Rplacarplaca( cons val -- cons )lp fp sp pop signedStores val into CAR of cons (:needs-tos :clobbers-tos).
0o201Rplacdrplacd( cons val -- cons )lp fp sp pop signedStores val into CDR of cons (:needs-tos :clobbers-tos).
0o225Rgetfrgetf( plist prop -- val )lp fp sp popSearches property list plist for indicator prop (:needs-tos).
0o226Membermember( item list -- sublist )lp fp sp popSearches for item in list using eql (:needs-tos).
0o227Assocassoc( item alist -- pair )lp fp sp popSearches association list alist for pair matching item (:needs-tos).

3.2 Predicates & Comparisons

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o002Endpendp( list -- bool )lp fp sp pop signedReturns T if list is NIL, NIL if cons cell; traps if not list.
0o034Zeropzerop( x -- bool )lp fp sp pop signedTests if number x is zero (:needs-lp).
0o035Minuspminusp( x -- bool )lp fp sp pop signedTests if signed number x is negative (:needs-lp).
0o036Pluspplusp( x -- bool )lp fp sp pop signedTests if signed number x is strictly positive (:needs-lp).
0o040 .. 0o043TypeMember0..3type-member( x -- bool )12-bit-unsigned-immediateTests if x's DTP tag matches bitmask encoded in immediate.
0o044 .. 0o047TypeMemberNoPop0..3type-member-no-pop( x -- x bool )12-bit-unsigned-immediateBitmask type test retaining operand x on stack.
0o260EqualNumberequal-number( a b -- bool )lp fp sp pop signedNumeric equality comparison (=) (:needs-tos :needs-lp).
0o261Lessplessp( a b -- bool )lp fp sp pop signedNumeric less than (<) (:needs-tos :needs-lp).
0o262Greaterpgreaterp( a b -- bool )lp fp sp pop signedNumeric greater than (>) (:needs-tos :needs-lp).
0o263Eqleql( a b -- bool )lp fp sp pop signedStandard Common Lisp eql equivalence (:needs-tos).
0o264EqualNumberNoPopequal-number-no-pop( a b -- a bool )lp fp sp pop signedNumeric equality comparison retaining operand a on stack.
0o265LesspNoPoplessp-no-pop( a b -- a bool )lp fp sp pop signedNumeric less than retaining operand a on stack.
0o266GreaterpNoPopgreaterp-no-pop( a b -- a bool )lp fp sp pop signedNumeric greater than retaining operand a on stack.
0o267EqlNoPopeql-no-pop( a b -- a bool )lp fp sp pop signedStandard eql retaining operand a on stack.
0o270Eqeq( a b -- bool )lp fp sp pop signedPointer identity check (eq) (:needs-tos).
0o273Logtestlogtest( a b -- bool )lp fp sp pop signedTests if (logand a b) /= 0 (:needs-tos).
0o274EqNoPopeq-no-pop( a b -- a bool )lp fp sp pop signedPointer identity check retaining operand a on stack.
0o277LogtestNoPoplogtest-no-pop( a b -- a bool )lp fp sp pop signedTests (logand a b) /= 0 retaining operand a on stack.
0o331UnsignedLessp%unsigned-lessp( a b -- bool )lp fp sp pop unsigned32-bit unsigned magnitude comparison (<) (:needs-tos).
0o335UnsignedLesspNoPop%unsigned-lessp-no-pop( a b -- a bool )lp fp sp pop unsigned32-bit unsigned comparison retaining operand a on stack.

3.3 Control Flow, Branches & Loops

Branch instructions use Mode 3 with a 10-bit signed PC-relative halfword displacement:

Opcode (Octal)MnemonicCanonical NameStack ConditionDescription
0o011Jump%jumpPops TOSUnconditional indirect jump to address on stack.
0o060BranchTruebranch-truePops TOSBranch if TOS is not NIL.
0o061BranchTrueElseExtraPopbranch-true-else-extra-popPops TOSIf true branch; if false pop extra stack element.
0o062BranchTrueAndExtraPopbranch-true-and-extra-popPops TOSIf true branch and pop extra stack element.
0o063BranchTrueExtraPopbranch-true-extra-popPops TOSAlways pops extra stack element; branches if true.
0o064BranchTrueNoPopbranch-true-no-popPeeks TOSBranch if true without popping TOS.
0o065BranchTrueAndNoPopbranch-true-and-no-popCond PopIf true branch and keep TOS; if false pop TOS.
0o066BranchTrueElseNoPopbranch-true-else-no-popCond PopIf true branch and pop TOS; if false keep TOS.
0o067BranchTrueAndNoPopElseNoPopExtraPopbranch-true-and-no-pop-else-no-pop-extra-popCond PopComplex condition branch for boolean short-circuits.
0o070BranchFalsebranch-falsePops TOSBranch if TOS is NIL.
0o071BranchFalseElseExtraPopbranch-false-else-extra-popPops TOSIf false branch; if true pop extra stack element.
0o072BranchFalseAndExtraPopbranch-false-and-extra-popPops TOSIf false branch and pop extra stack element.
0o073BranchFalseExtraPopbranch-false-extra-popPops TOSAlways pops extra stack element; branches if false.
0o074BranchFalseNoPopbranch-false-no-popPeeks TOSBranch if false without popping TOS.
0o075BranchFalseAndNoPopbranch-false-and-no-popCond PopIf false branch and keep TOS; if true pop TOS.
0o076BranchFalseElseNoPopbranch-false-else-no-popCond PopIf false branch and pop TOS; if true keep TOS.
0o077BranchFalseAndNoPopElseNoPopExtraPopbranch-false-and-no-pop-else-no-pop-extra-popCond PopComplex false branch for boolean short-circuits.
0o174BranchbranchNoneUnconditional relative branch (:unconditional-branch).
0o175LoopDecrementTosloop-decrement-tosIn-placeDecrements Fixnum TOS; branches if \(\ge 0\) (:loop).
0o375LoopIncrementTosLessThanloop-increment-tos-less-thanIn-placeIncrements Fixnum TOS; branches if less than limit (:loop :needs-tos).

3.4 Stack Frame, Local & Lexical Variables

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o020 .. 0o027PushLexicalVar0..7push-lexical-var( -- val )lp fp sp popPushes lexical variable from lexical frame 0..7.
0o100Pushpush( src -- val )lp fp sp pop unsignedPushes operand src onto top of control stack.
0o101PushNNilspush-n-nils( -- nil*n )unsignedPushes n consecutive NIL words onto stack.
0o102PushAddressSpRelativepush-address-sp-relative( -- loc )lp fp sp pop unsignedComputes locative address of an SP slot and pushes it.
0o150PushAddresspush-address( loc -- loc )lp fp spPushes the locative address of the operand.
0o151SetSpToAddressset-sp-to-address( loc -- )lp fp spSets stack pointer directly to specified address.
0o152SetSpToAddressSaveTosset-sp-to-address-save-tos( loc -- )lp fp spSets SP to address while preserving top data word.
0o224StackBltstack-blt( from to n -- )lp fp sp pop signedBlock copies stack slots (:needs-tos).
0o240 .. 0o247PopLexicalVar0..7pop-lexical-var( val -- )lp fp sp popPops TOS into lexical frame slot 0..7 (:clobbers-tos).
0o250 .. 0o257MovemLexicalVar0..7movem-lexical-var( val -- val )lp fp sp popCopies TOS into lexical frame slot 0..7 without popping.
0o340Poppop( val -- )lp fp spStores popped TOS into destination operand (:needs-tos).
0o341Movemmovem( val -- val )lp fp spStores TOS into destination operand without popping.
0o352StackBltAddressstack-blt-address( from to n -- )lp fp spStack block copy using explicit locative addresses (:needs-tos).

3.5 Instance Variables & Structure Access

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o110PushInstanceVarpush-instance-variable( -- val )unsignedPushes unordered instance variable from self.
0o111PushAddressInstanceVarpush-address-instance-variable( -- loc )unsignedPushes locative of unordered instance variable.
0o112PushInstanceVarOrderedpush-instance-variable-ordered( -- val )unsignedPushes ordered instance variable by slot index.
0o113PushAddressInstanceVarOrderedpush-address-instance-variable-ordered( -- loc )unsignedPushes locative of ordered instance variable slot.
0o320PopInstanceVarpop-instance-variable( val -- )unsignedStores popped TOS into unordered instance variable (:clobbers-tos).
0o321MovemInstanceVarmovem-instance-variable( val -- val )unsignedStores TOS into unordered instance variable.
0o322PopInstanceVarOrderedpop-instance-variable-ordered( val -- )unsignedStores popped TOS into ordered instance slot (:clobbers-tos).
0o323MovemInstanceVarOrderedmovem-instance-variable-ordered( val -- val )unsignedStores TOS into ordered instance slot.
0o324InstanceRef%instance-ref( inst idx -- val )lp fp sp pop unsignedLow-level instance slot reference (:needs-tos).
0o325InstanceSet%instance-set( val inst idx -- )lp fp sp pop unsignedLow-level instance slot store (:needs-tos :clobbers-tos).
0o326InstanceLoc%instance-loc( inst idx -- loc )lp fp sp pop unsignedComputes locative to instance slot (:needs-tos).

3.6 Numeric & Bitwise Operations

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o016DoubleFloatOp%double-float-op( op xhi xlo yhi ylo -- rhi rlo exc )lp fp sp pop unsignedVLM (Rev 5) 64-bit double float hardware operation (:needs-tos).
0o114UnaryMinusunary-minus( x -- -x )lp fp sp pop unsignedNegates number x (:needs-lp).
0o143Incrementincrement( loc -- )lp fp spAdds 1 to operand in place (:tos-unchanged).
0o144Decrementdecrement( loc -- )lp fp spSubtracts 1 from operand in place (:tos-unchanged).
0o202Multiplymultiply( a b -- prod )lp fp sp pop signedGeneric multiplication (*) (:needs-tos).
0o203Quotientquotient( a b -- quot )lp fp sp pop signedGeneric division (/) (:needs-tos).
0o204Ceilingceiling( a b -- quot rem )lp fp sp pop signedCeiling division returning quotient and remainder (:needs-tos).
0o205Floorfloor( a b -- quot rem )lp fp sp pop signedFloor division returning quotient and remainder (:needs-tos).
0o206Truncatetruncate( a b -- quot rem )lp fp sp pop signedTruncating division returning quotient and remainder (:needs-tos).
0o207Roundround( a b -- quot rem )lp fp sp pop signedRounding division returning quotient and remainder (:needs-tos).
0o211RationalQuotientrational-quotient( a b -- quot )lp fp sp pop signedExact rational quotient (:needs-tos).
0o212Minmin( a b -- min )lp fp sp pop signedReturns numeric minimum of a and b (:needs-tos).
0o213Maxmax( a b -- max )lp fp sp pop signedReturns numeric maximum of a and b (:needs-tos).
0o214Alu%alu( a b -- res )lp fp sp pop signedRaw hardware ALU arithmetic primitive (:needs-tos).
0o215Logandlogand( a b -- res )lp fp sp pop signedBitwise logical AND (:needs-tos).
0o216Logxorlogxor( a b -- res )lp fp sp pop signedBitwise logical XOR (:needs-tos).
0o217Logiorlogior( a b -- res )lp fp sp pop signedBitwise logical inclusive OR (:needs-tos).
0o220Rotrot( val n -- res )lp fp sp pop signed32-bit circular bit rotation (:needs-tos).
0o221Lshlsh( val n -- res )lp fp sp pop signedLogical bit shift by n bits (:needs-tos).
0o222MultiplyDouble%multiply-double( a b -- lo hi )lp fp sp pop signed32-bit \(\times\) 32-bit multiplication producing 64-bit product (:needs-tos).
0o223LshcBignumStep%lshc-bignum-step( a b c -- res )lp fp sp pop signedMulti-precision bignum combined shift step (:needs-tos).
0o232Ashash( val n -- res )lp fp sp pop signedArithmetic shift by n bits (:needs-tos).
0o300Addadd( a b -- sum )lp fp sp pop unsignedGeneric addition (+) (:needs-tos :needs-lp).
0o301Subsub( a b -- diff )lp fp sp pop unsignedGeneric subtraction (-) (:needs-tos :needs-lp).
0o30232BitPlus%32-bit-plus( a b -- sum )lp fp sp pop unsignedModular 32-bit addition ignoring integer overflow (:needs-tos).
0o30332BitDifference%32-bit-difference( a b -- diff )lp fp sp pop unsignedModular 32-bit subtraction ignoring overflow (:needs-tos).
0o304AddBignumStep%add-bignum-step( a b c -- sum carry )lp fp sp pop unsignedMulti-precision bignum addition step (:needs-tos).
0o305SubBignumStep%sub-bignum-step( a b c -- diff borrow )lp fp sp pop unsignedMulti-precision bignum subtraction step (:needs-tos).
0o306MultiplyBignumStep%multiply-bignum-step( a b -- prod-lo prod-hi )lp fp sp pop unsignedMulti-precision bignum multiplication step (:needs-tos).
0o307DivideBignumStep%divide-bignum-step( hi lo div -- quot rem )lp fp sp pop unsignedMulti-precision bignum division step (:needs-tos).

3.7 Byte & Field Extraction

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o170Ldbldb( from -- val )byteLoads bitfield defined by 10-bit position/width operand.
0o171CharLdbchar-ldb( char -- val )byteExtracts character subfield (code, bits, font).
0o172PLdb%p-ldb( loc -- val )bytePointer-indirect bitfield load from memory cell.
0o173PTagLdb%p-tag-ldb( loc -- tag )byteExtracts 6-bit DTP tag of addressed memory word.
0o370Dpbdpb( val into -- res )byteDeposits bitfield into word (:needs-tos).
0o371CharDpbchar-dpb( val char -- res )byteDeposits character subfield into character object (:needs-tos).
0o372PDpb%p-dpb( val loc -- )bytePointer-indirect deposit writing modified word to memory (:needs-tos :clobbers-tos).
0o373PTagDpb%p-tag-dpb( tag loc -- )byteUpdates 6-bit DTP tag of addressed memory word (:needs-tos :clobbers-tos).

3.8 Array & String Operations

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o003Setup1DArraysetup-1d-array( arr -- )lp fp sp pop signedPreloads 1D array descriptor into hardware registers. Returns 4 internal values.
0o004SetupForce1DArraysetup-force-1d-array( arr -- )lp fp sp pop signedForces 1D array setup (disregarding multi-dimension rank checks).
0o310Aset1aset-1( val arr i -- val )lp fp sp pop unsignedStores 1D array element with bounds and type checking (:needs-tos :clobbers-tos).
0o311AllocateListBlock%allocate-list-block( size area -- loc )lp fp sp pop unsignedInline heap block allocation for cons cells (:needs-tos).
0o312Aref1aref-1( arr i -- val )lp fp sp pop unsignedReads 1D array element with bounds checking (:needs-tos).
0o313Aloc1aloc-1( arr i -- loc )lp fp sp pop unsignedComputes locative pointer to 1D array element (:needs-tos).
0o314StoreArrayLeaderstore-array-leader( val arr i -- val )lp fp sp pop unsignedStores element into array leader at index i (:needs-tos :clobbers-tos).
0o315AllocateStructureBlock%allocate-structure-block( size area -- loc )lp fp sp pop unsignedInline heap block allocation for structures/instances (:needs-tos).
0o316ArrayLeaderarray-leader( arr i -- val )lp fp sp pop unsignedReads element from array leader at index i (:needs-tos).
0o317AlocLeaderaloc-leader( arr i -- loc )lp fp sp pop unsignedComputes locative pointer to array leader slot i (:needs-tos).
0o350FastAref1fast-aref-1( arr i -- val )lp fp spFast unchecked 1D array reference using active BAR register (:needs-tos).
0o351FastAset1fast-aset-1( val arr i -- val )lp fp spFast unchecked 1D array store using active BAR register (:needs-tos :clobbers-tos).

3.9 Function Calling, Return, Catch & Binding

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o005BindLocativebind-locative( loc -- )lp fp sp popBinds dynamic location cell to its current value (:clobbers-tos).
0o006RestoreBindingStack%restore-binding-stack( level -- )lp fp sp popRestores dynamic binding stack to specified saved mark.
0o010StartCallstart-call( fn -- )lp fp sp pop signedInitiates function call frame on stack (:start-call).
0o050LocateLocalslocate-locals( -- )()Allocates and initializes stack space for local variables.
0o051CatchClosecatch-close( -- )()Closes and removes innermost catch frame (:tos-unchanged).
0o052GenericDispatch%generic-dispatch( -- )()Dispatches to method based on generic function cache (:clobbers-tos).
0o053MessageDispatch%message-dispatch( -- )()Object-oriented message send dispatch (:clobbers-tos).
0o054CheckPreemptRequest%check-preempt-request( -- )()Checks thread scheduler preemption flag (:tos-unchanged).
0o104ReturnMultiplereturn-multiple( vals*n n -- )pop unsignedReturns n values to caller frame (:return).
0o105ReturnKludgereturn-kludge( -- )pop unsignedLegacy multi-value return interface (:return).
0o106TakeValuestake-values( -- )unsignedAdjusts received values from multi-value callee.
0o107UnbindNunbind-n( -- )unsignedUnbinds n dynamic bindings from binding stack (:tos-unchanged).
0o115ReturnSinglereturn-single( val -- )10-bit-immediateReturns single value from stack frame to caller (:return).
0o134FinishCallNfinish-call-n( args*n -- res )10-bit-immediateCompletes call with n pushed arguments (:finish-call :smashes-lp).
0o135FinishCallNApplyfinish-call-n-apply( args rest -- res )10-bit-immediateCompletes call applying trailing list (:finish-call :smashes-lp).
0o136FinishCallTosfinish-call-tos( args*n n -- res )10-bit-immediateCompletes call taking arg count from TOS (:finish-call :smashes-lp).
0o137FinishCallTosApplyfinish-call-tos-apply( args n -- res )10-bit-immediateCompletes call taking count from TOS with apply (:finish-call :smashes-lp).
0o176EntryRestAcceptedentry-rest-accepted( -- )entryFunction header validating argument count when &rest accepted (:clobbers-tos).
0o177EntryRestNotAcceptedentry-rest-not-accepted( -- )entryFunction header validating argument count when &rest not accepted (:clobbers-tos).
0o236BindLocativeToValuebind-locative-to-value( loc val -- )lp fp sp pop signedBinds location cell to new value (:needs-tos :clobbers-tos).
0o376CatchOpencatch-open( tag -- )unsignedPushes catch block descriptor for catch or unwind-protect.

3.10 AI / Logic Programming (Prolog / Joshua Primitives)

Ivory contains hardware-assisted instructions specifically optimized for unification, logic variables, and backtracking:

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o013Dereferencedereference( var -- val )lp fp sp pop signedFollows logic variable forwarding pointer chain to bound value or unbound variable.
0o014LogicTailTestlogic-tail-test( loc -- bool )lp fp sp pop signedTests if locative is at the end of a logic variable choice point.
0o055PushGlobalLogicVarpush-global-logic-variable( -- lvar )()Creates and pushes a new unbound global logic variable.
0o103PushLocalLogicVarspush-local-logic-variables( n -- )lp fp sp unsignedAllocates and initializes n local logic variables on the stack.
0o237Unifyunify( term1 term2 -- bool )lp fp sp pop signedHardware-assisted recursive unification primitive (:needs-tos :clobbers-tos).

3.11 Block Transfers & Memory Subprimitives

Opcode (Octal)MnemonicCanonical NameStack EffectLegal OperandsDescription
0o007Ephemeralp%ephemeralp( ptr -- bool )lp fp sp popTests if pointer references ephemeral garbage collection address space.
0o012Tag%tag( obj -- tag )lp fp sp pop signedExtracts the 6-bit DTP tag as a fixnum.
0o015SpareOp015%proc-breakpoint( -- )lp fp sp pop signedSoftware breakpoint instruction.
0o030 .. 0o033Block0..3Write%block-0..3-write( val -- )lp fp sp pop signedBurst writes word into stream registered in BAR0..3, auto-incrementing address (:tos-unchanged).
0o056NoOpno-op( -- )()No-operation hardware padding (:tos-unchanged).
0o057Halt%halt( -- )()Halts processor pipeline; transfers control to hardware monitor (:tos-unchanged).
0o116MemoryRead%memory-read( addr -- val )10-bit-immediateReads 40-bit word from virtual or physical memory address.
0o117MemoryReadHeader%memory-read-address( addr -- val )10-bit-immediateReads word header / address component from memory.
0o120 .. 0o123Block0..3Read%block-0..3-read( -- val )10-bit-immediateBurst reads word from stream registered in BAR0..3, auto-incrementing address.
0o124 .. 0o127Block0..3ReadShift%block-0..3-read-shift( -- val )10-bit-immediateBurst reads word from BAR0..3 with bit shift.
0o130 .. 0o133Block0..3ReadTest%block-0..3-read-test( -- val )10-bit-immediateBurst reads word from BAR0..3 with conditional test.
0o145PointerIncrement%pointer-increment( loc -- )lp fp spIncrements pointer address in place (:tos-unchanged).
0o146SetCdrCode1%set-cdr-code-1( loc -- )lp fp spSets CDR code of word at loc to 1 (cdr-nil) (:tos-unchanged).
0o147SetCdrCode2%set-cdr-code-2( loc -- )lp fp spSets CDR code of word at loc to 2 (cdr-normal) (:tos-unchanged).
0o154ReadInternalRegister%read-internal-register( -- val )10-bit-immediateReads internal hardware register by index onto stack.
0o155WriteInternalRegister%write-internal-register( val -- )10-bit-immediateWrites word to internal hardware register (:clobbers-tos).
0o156CoprocessorRead%coprocessor-read( -- val )10-bit-immediateReads coprocessor hardware register.
0o157CoprocessorWrite%coprocessor-write( val -- )10-bit-immediateWrites coprocessor hardware register (:clobbers-tos).
0o160 .. 0o163Block0..3ReadAlu%block-0..3-read-alu( -- val )lp fp spBurst reads word from BAR0..3 through the ALU (:tos-unchanged).
0o230PointerPlus%pointer-plus( ptr n -- res )lp fp sp pop signedWord address pointer addition (:needs-tos).
0o231PointerDifference%pointer-difference( p1 p2 -- diff )lp fp sp pop signedComputes word distance between pointers (:needs-tos).
0o233StoreConditionalstore-conditional( old new addr -- ok )lp fp sp pop signedInterlocked atomic compare-and-swap primitive (:needs-tos).
0o234MemoryWrite%memory-write( val addr -- )lp fp sp pop signedWrites 40-bit word to virtual or physical address (:needs-tos).
0o235PStoreContents%p-store-contents( val loc -- )lp fp sp pop signedPointer store without modifying tag or CDR code (:needs-tos :clobbers-tos).
0o327SetTag%set-tag( val tag -- res )lp fp sp pop unsignedCreates new word replacing DTP tag (:needs-tos).
0o342MergeCdrNoPop%merge-cdr-no-pop( a b -- res )lp fp spMerges CDR code from b into word a (:needs-tos).
0o377SpareOp377%hack( -- val )10-bit-immediateEmulator diagnostic hook opcode.

4. Master 256-Opcode Reference Table

The canonical mapping of all 256 halfword opcodes (0o000 through 0o377), indexed by octal opcode:

Opcode (Oct)Opcode (Dec)Canonical Lisp NameDisassembler MnemonicArgsReturnsLegal OperandsCompiler AttributesStatus
0o0000carCar11lp fp sp pop-Standard
0o0011cdrCdr11lp fp sp pop-Standard
0o0022endpEndp11lp fp sp pop signed-Standard
0o0033setup-1d-arraySetup1DArray14lp fp sp pop signed-Standard
0o0044setup-force-1d-arraySetupForce1DArray14lp fp sp pop signed-Standard
0o0055bind-locativeBindLocative10lp fp sp pop:clobbers-tosStandard
0o0066%restore-binding-stackRestoreBindingStack10lp fp sp pop:function %restore-binding-stack-levelStandard
0o0077%ephemeralpEphemeralp11lp fp sp pop-Standard
0o0108start-callStartCall10lp fp sp pop signed:start-callStandard
0o0119%jumpJump10lp fp sp pop-Standard
0o01210%tagTag11lp fp sp pop signed-Standard
0o01311dereferenceDereference11lp fp sp pop signed-Standard
0o01412logic-tail-testLogicTailTest11lp fp sp pop signed-Standard
0o01513%proc-breakpointSpareOp01500lp fp sp pop signed-Breakpoint
0o01614%double-float-opDoubleFloatOp53lp fp sp pop unsigned:needs-tosVLM Rev 5 only
0o01715*spare*SpareOp017----Spare / Reserved
0o02016push-lexical-varPushLexicalVar011lp fp sp pop-Standard
0o02117push-lexical-varPushLexicalVar111lp fp sp pop-Standard
0o02218push-lexical-varPushLexicalVar211lp fp sp pop-Standard
0o02319push-lexical-varPushLexicalVar311lp fp sp pop-Standard
0o02420push-lexical-varPushLexicalVar411lp fp sp pop-Standard
0o02521push-lexical-varPushLexicalVar511lp fp sp pop-Standard
0o02622push-lexical-varPushLexicalVar611lp fp sp pop-Standard
0o02723push-lexical-varPushLexicalVar711lp fp sp pop-Standard
0o03024%block-0-writeBlock0Write10lp fp sp pop signed:function %block-write :tos-unchangedStandard
0o03125%block-1-writeBlock1Write10lp fp sp pop signed:tos-unchangedStandard
0o03226%block-2-writeBlock2Write10lp fp sp pop signed:tos-unchangedStandard
0o03327%block-3-writeBlock3Write10lp fp sp pop signed:tos-unchangedStandard
0o03428zeropZerop11lp fp sp pop signed:needs-lpStandard
0o03529minuspMinusp11lp fp sp pop signed:needs-lpStandard
0o03630pluspPlusp11lp fp sp pop signed:needs-lpStandard
0o03731*spare*SpareOp037----Spare / Reserved
0o04032type-memberTypeMember02112-bit-unsigned-immediate:function type-member-internalStandard
0o04133type-memberTypeMember12112-bit-unsigned-immediate:function type-member-internalStandard
0o04234type-memberTypeMember22112-bit-unsigned-immediate:function type-member-internalStandard
0o04335type-memberTypeMember32112-bit-unsigned-immediate:function type-member-internalStandard
0o04436type-member-no-popTypeMember42212-bit-unsigned-immediate-Standard
0o04537type-member-no-popTypeMember52212-bit-unsigned-immediate-Standard
0o04638type-member-no-popTypeMember62212-bit-unsigned-immediate-Standard
0o04739type-member-no-popTypeMember72212-bit-unsigned-immediate-Standard
0o05040locate-localsLocateLocals00--Standard
0o05141catch-closeCatchClose00-:tos-unchangedStandard
0o05242%generic-dispatchGenericDispatch00-:clobbers-tosStandard
0o05343%message-dispatchMessageDispatch00-:clobbers-tosStandard
0o05444%check-preempt-requestCheckPreemptRequest00-:tos-unchangedStandard
0o05545push-global-logic-variablePushGlobalLogicVar01--Standard
0o05646no-opNoOp00-:tos-unchangedStandard
0o05747%haltHalt00-:tos-unchangedStandard
0o06048branch-trueBranchTrue20relative-pc:needs-tos :conditional-branchStandard
0o06149branch-true-else-extra-popBranchTrueElseExtraPop20relative-pc:needs-tos :conditional-branchStandard
0o06250branch-true-and-extra-popBranchTrueAndExtraPop20relative-pc:needs-tos :conditional-branchStandard
0o06351branch-true-extra-popBranchTrueExtraPop20relative-pc:needs-tos :conditional-branchStandard
0o06452branch-true-no-popBranchTrueNoPop20relative-pc:needs-tos :conditional-branchStandard
0o06553branch-true-and-no-popBranchTrueAndNoPop20relative-pc:needs-tos :conditional-branchStandard
0o06654branch-true-else-no-popBranchTrueElseNoPop20relative-pc:needs-tos :conditional-branchStandard
0o06755branch-true-and-no-pop-else-no-pop-extra-popBranchTrueAndNoPopElseNoPopExtraPop20relative-pc:needs-tos :conditional-branchStandard
0o07056branch-falseBranchFalse20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07157branch-false-else-extra-popBranchFalseElseExtraPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07258branch-false-and-extra-popBranchFalseAndExtraPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07359branch-false-extra-popBranchFalseExtraPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07460branch-false-no-popBranchFalseNoPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07561branch-false-and-no-popBranchFalseAndNoPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07662branch-false-else-no-popBranchFalseElseNoPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o07763branch-false-and-no-pop-else-no-pop-extra-popBranchFalseAndNoPopElseNoPopExtraPop20relative-pc:needs-tos :conditional-branch :invert-branchStandard
0o10064pushPush11lp fp sp pop unsigned-Standard
0o10165push-n-nilsPushNNils1Iunsigned-Standard
0o10266push-address-sp-relativePushAddressSpRelative11lp fp sp pop unsigned-Standard
0o10367push-local-logic-variablesPushLocalLogicVars1nlp fp sp unsigned-Standard
0o10468return-multipleReturnMultiple10pop unsigned:returnStandard
0o10569return-kludgeReturnKludge10pop unsigned:returnStandard
0o10670take-valuesTakeValues1Iunsigned-Standard
0o10771unbind-nUnbindN10unsigned:function unbind-n-internal :tos-unchangedStandard
0o11072push-instance-variablePushInstanceVar11unsigned-Standard
0o11173push-address-instance-variablePushAddressInstanceVar11unsigned-Standard
0o11274push-instance-variable-orderedPushInstanceVarOrdered11unsigned-Standard
0o11375push-address-instance-variable-orderedPushAddressInstanceVarOrdered11unsigned-Standard
0o11476unary-minusUnaryMinus11lp fp sp pop unsigned:needs-lp :function minusStandard
0o11577return-singleReturnSingle1010-bit-immediate:returnStandard
0o11678%memory-readMemoryRead2110-bit-immediate:function %memory-read-internalStandard
0o11779%memory-read-addressMemoryReadHeader2110-bit-immediate:function %memory-read-address-internalStandard
0o12080%block-0-readBlock0Read1110-bit-immediate:function %block-readStandard
0o12181%block-1-readBlock1Read1110-bit-immediate-Standard
0o12282%block-2-readBlock2Read1110-bit-immediate-Standard
0o12383%block-3-readBlock3Read1110-bit-immediate-Standard
0o12484%block-0-read-shiftBlock0ReadShift1110-bit-immediate:function %block-read-shiftStandard
0o12585%block-1-read-shiftBlock1ReadShift1110-bit-immediate-Standard
0o12686%block-2-read-shiftBlock2ReadShift1110-bit-immediate-Standard
0o12787%block-3-read-shiftBlock3ReadShift1110-bit-immediate-Standard
0o13088%block-0-read-testBlock0ReadTestn110-bit-immediate:function %block-read-testStandard
0o13189%block-1-read-testBlock1ReadTestn110-bit-immediate-Standard
0o13290%block-2-read-testBlock2ReadTestn110-bit-immediate-Standard
0o13391%block-3-read-testBlock3ReadTestn110-bit-immediate-Standard
0o13492finish-call-nFinishCallN1010-bit-immediate:finish-call :smashes-lp #:tos-unchanged
0o13593finish-call-n-applyFinishCallNApply1010-bit-immediate:finish-call :smashes-lp #:tos-unchanged
0o13694finish-call-tosFinishCallTos2010-bit-immediate:finish-call :smashes-lp #:tos-unchanged
0o13795finish-call-tos-applyFinishCallTosApply2010-bit-immediate:finish-call :smashes-lp #:tos-unchanged
0o14096set-to-carSetToCar10lp fp sp:function car-local :tos-unchangedStandard
0o14197set-to-cdrSetToCdr10lp fp sp:function cdr-local :tos-unchangedStandard
0o14298set-to-cdr-push-carSetToCdrPushCar11lp fp sp-Standard
0o14399incrementIncrement10lp fp sp:function 1+local :tos-unchangedStandard
0o144100decrementDecrement10lp fp sp:function 1-local :tos-unchangedStandard
0o145101%pointer-incrementPointerIncrement10lp fp sp:tos-unchangedStandard
0o146102%set-cdr-code-1SetCdrCode110lp fp sp:tos-unchangedStandard
0o147103%set-cdr-code-2SetCdrCode210lp fp sp:tos-unchangedStandard
0o150104push-addressPushAddress11lp fp sp-Standard
0o151105set-sp-to-addressSetSpToAddress10lp fp sp-Standard
0o152106set-sp-to-address-save-tosSetSpToAddressSaveTos10lp fp sp-Standard
0o153107*spare*SpareOp153----Spare / Reserved
0o154108%read-internal-registerReadInternalRegister1110-bit-immediate-Standard
0o155109%write-internal-registerWriteInternalRegister2010-bit-immediate:clobbers-tosStandard
0o156110%coprocessor-readCoprocessorRead1110-bit-immediate-Standard
0o157111%coprocessor-writeCoprocessorWrite2010-bit-immediate:clobbers-tosStandard
0o160112%block-0-read-aluBlock0ReadAlu10lp fp sp:function %block-read-alu :tos-unchangedStandard
0o161113%block-1-read-aluBlock1ReadAlu10lp fp sp:tos-unchangedStandard
0o162114%block-2-read-aluBlock2ReadAlu10lp fp sp:tos-unchangedStandard
0o163115%block-3-read-aluBlock3ReadAlu10lp fp sp:tos-unchangedStandard
0o164116*spare*SpareOp164----Spare / Reserved
0o165117*spare*SpareOp165----Spare / Reserved
0o166118*spare*SpareOp166----Spare / Reserved
0o167119*spare*SpareOp167----Spare / Reserved
0o170120ldbLdb21byte:function ldb-internalStandard
0o171121char-ldbCharLdb21byte-Standard
0o172122%p-ldbPLdb21byte:function %p-ldb-internalStandard
0o173123%p-tag-ldbPTagLdb21byte-Standard
0o174124branchBranch10relative-pc(Standard
0o175125loop-decrement-tosLoopDecrementTos20relative-pc:loopStandard
0o176126entry-rest-acceptedEntryRestAccepted20entry:clobbers-tosStandard
0o177127entry-rest-not-acceptedEntryRestNotAccepted20entry:clobbers-tosStandard
0o200128rplacaRplaca20lp fp sp pop signed:needs-tos :clobbers-tosStandard
0o201129rplacdRplacd20lp fp sp pop signed:needs-tos :clobbers-tosStandard
0o202130multiplyMultiply21lp fp sp pop signed:needs-tos :function *-internalStandard
0o203131quotientQuotient21lp fp sp pop signed:needs-tos :function //-internalStandard
0o204132ceilingCeiling22lp fp sp pop signed:needs-tos :function ceiling-internalStandard
0o205133floorFloor22lp fp sp pop signed:needs-tos :function floor-internalStandard
0o206134truncateTruncate22lp fp sp pop signed:needs-tos :function truncate-internalStandard
0o207135roundRound22lp fp sp pop signed:needs-tos :function round-internalStandard
0o210136*spare*SpareOp210----Spare / Reserved
0o211137rational-quotientRationalQuotient21lp fp sp pop signed:needs-tos :function *rational-quotientStandard
0o212138minMin21lp fp sp pop signed:needs-tos :function min-internalStandard
0o213139maxMax21lp fp sp pop signed:needs-tos :function max-internalStandard
0o214140%aluAlu21lp fp sp pop signed:needs-tosStandard
0o215141logandLogand21lp fp sp pop signed:needs-tos :function logand-internalStandard
0o216142logxorLogxor21lp fp sp pop signed:needs-tos :function logxor-internalStandard
0o217143logiorLogior21lp fp sp pop signed:needs-tos :function logior-internalStandard
0o220144rotRot21lp fp sp pop signed:needs-tosStandard
0o221145lshLsh21lp fp sp pop signed:needs-tosStandard
0o222146%multiply-doubleMultiplyDouble22lp fp sp pop signed:needs-tosStandard
0o223147%lshc-bignum-stepLshcBignumStep31lp fp sp pop signed:needs-tosStandard
0o224148stack-bltStackBlt20lp fp sp pop signed:needs-tosStandard
0o225149rgetfRgetf22lp fp sp pop:needs-tosStandard
0o226150memberMember21lp fp sp pop:needs-tos :function member-fastStandard
0o227151assocAssoc21lp fp sp pop:needs-tos :function assoc-fastStandard
0o230152%pointer-plusPointerPlus21lp fp sp pop signed:needs-tosStandard
0o231153%pointer-differencePointerDifference21lp fp sp pop signed:needs-tosStandard
0o232154ashAsh21lp fp sp pop signed:needs-tosStandard
0o233155store-conditionalStoreConditional31lp fp sp pop signed:needs-tosStandard
0o234156%memory-writeMemoryWrite20lp fp sp pop signed:needs-tosStandard
0o235157%p-store-contentsPStoreContents20lp fp sp pop signed:needs-tos :clobbers-tosStandard
0o236158bind-locative-to-valueBindLocativeToValue20lp fp sp pop signed:needs-tos :clobbers-tos :function %bind-locative-to-valueStandard
0o237159unifyUnify20lp fp sp pop signed:needs-tos :clobbers-tosStandard
0o240160pop-lexical-varPopLexicalVar020lp fp sp pop:clobbers-tosStandard
0o241161pop-lexical-varPopLexicalVar120lp fp sp pop:clobbers-tosStandard
0o242162pop-lexical-varPopLexicalVar220lp fp sp pop:clobbers-tosStandard
0o243163pop-lexical-varPopLexicalVar320lp fp sp pop:clobbers-tosStandard
0o244164pop-lexical-varPopLexicalVar420lp fp sp pop:clobbers-tosStandard
0o245165pop-lexical-varPopLexicalVar520lp fp sp pop:clobbers-tosStandard
0o246166pop-lexical-varPopLexicalVar620lp fp sp pop:clobbers-tosStandard
0o247167pop-lexical-varPopLexicalVar720lp fp sp pop:clobbers-tosStandard
0o250168movem-lexical-varMovemLexicalVar021lp fp sp pop-Standard
0o251169movem-lexical-varMovemLexicalVar121lp fp sp pop-Standard
0o252170movem-lexical-varMovemLexicalVar221lp fp sp pop-Standard
0o253171movem-lexical-varMovemLexicalVar321lp fp sp pop-Standard
0o254172movem-lexical-varMovemLexicalVar421lp fp sp pop-Standard
0o255173movem-lexical-varMovemLexicalVar521lp fp sp pop-Standard
0o256174movem-lexical-varMovemLexicalVar621lp fp sp pop-Standard
0o257175movem-lexical-varMovemLexicalVar721lp fp sp pop-Standard
0o260176equal-numberEqualNumber21lp fp sp pop signed:needs-tos :needs-lp :function internal-=Standard
0o261177lesspLessp21lp fp sp pop signed:needs-tos :needs-lp :function internal-<Standard
0o262178greaterpGreaterp21lp fp sp pop signed:needs-tos :needs-lp :function internal->Standard
0o263179eqlEql21lp fp sp pop signed:needs-tosStandard
0o264180equal-number-no-popEqualNumberNoPop22lp fp sp pop signed:needs-tos :needs-lp :function =-no-popStandard
0o265181lessp-no-popLesspNoPop22lp fp sp pop signed:needs-tos :needs-lp :function <-no-popStandard
0o266182greaterp-no-popGreaterpNoPop22lp fp sp pop signed:needs-tos :needs-lp :function >-no-popStandard
0o267183eql-no-popEqlNoPop22lp fp sp pop signed:needs-tosStandard
0o270184eqEq21lp fp sp pop signed:needs-tosStandard
0o271185*spare*SpareOp271----Spare / Reserved
0o272186*spare*SpareOp272----Spare / Reserved
0o273187logtestLogtest21lp fp sp pop signed:needs-tos :function logtest-internalStandard
0o274188eq-no-popEqNoPop22lp fp sp pop signed:needs-tosStandard
0o275189*spare*SpareOp275----Spare / Reserved
0o276190*spare*SpareOp276----Spare / Reserved
0o277191logtest-no-popLogtestNoPop22lp fp sp pop signed:needs-tosStandard
0o300192addAdd21lp fp sp pop unsigned:needs-tos :needs-lp :function +-internalStandard
0o301193subSub21lp fp sp pop unsigned:needs-tos :needs-lp :function --internalStandard
0o302194%32-bit-plus32BitPlus21lp fp sp pop unsigned:needs-tosStandard
0o303195%32-bit-difference32BitDifference21lp fp sp pop unsigned:needs-tosStandard
0o304196%add-bignum-stepAddBignumStep32lp fp sp pop unsigned:needs-tosStandard
0o305197%sub-bignum-stepSubBignumStep32lp fp sp pop unsigned:needs-tosStandard
0o306198%multiply-bignum-stepMultiplyBignumStep22lp fp sp pop unsigned:needs-tosStandard
0o307199%divide-bignum-stepDivideBignumStep32lp fp sp pop unsigned:needs-tosStandard
0o310200aset-1Aset130lp fp sp pop unsigned:needs-tos :clobbers-tos :function as-1Standard
0o311201%allocate-list-blockAllocateListBlock21lp fp sp pop unsigned:needs-tosStandard
0o312202aref-1Aref121lp fp sp pop unsigned:needs-tos :function ar-1Standard
0o313203aloc-1Aloc121lp fp sp pop unsigned:needs-tos :function ap-1Standard
0o314204store-array-leaderStoreArrayLeader30lp fp sp pop unsigned:needs-tos :clobbers-tosStandard
0o315205%allocate-structure-blockAllocateStructureBlock21lp fp sp pop unsigned:needs-tosStandard
0o316206array-leaderArrayLeader21lp fp sp pop unsigned:needs-tosStandard
0o317207aloc-leaderAlocLeader21lp fp sp pop unsigned:needs-tos :function ap-leaderStandard
0o320208pop-instance-variablePopInstanceVar20unsigned:clobbers-tosStandard
0o321209movem-instance-variableMovemInstanceVar21unsigned-Standard
0o322210pop-instance-variable-orderedPopInstanceVarOrdered20unsigned:clobbers-tosStandard
0o323211movem-instance-variable-orderedMovemInstanceVarOrdered21unsigned-Standard
0o324212%instance-refInstanceRef21lp fp sp pop unsigned:needs-tosStandard
0o325213%instance-setInstanceSet30lp fp sp pop unsigned:needs-tos :clobbers-tosStandard
0o326214%instance-locInstanceLoc21lp fp sp pop unsigned:needs-tosStandard
0o327215%set-tagSetTag21lp fp sp pop unsigned:needs-tosStandard
0o330216*spare*SpareOp330----Spare / Reserved
0o331217%unsigned-lesspUnsignedLessp21lp fp sp pop unsigned:needs-tosStandard
0o332218*spare*SpareOp332----Spare / Reserved
0o333219*spare*SpareOp333----Spare / Reserved
0o334220*spare*SpareOp334----Spare / Reserved
0o335221%unsigned-lessp-no-popUnsignedLesspNoPop22lp fp sp pop unsigned:needs-tosStandard
0o336222*spare*SpareOp336----Spare / Reserved
0o337223*spare*SpareOp337----Spare / Reserved
0o340224popPop20lp fp sp:needs-tosStandard
0o341225movemMovem21lp fp sp-Standard
0o342226%merge-cdr-no-popMergeCdrNoPop21lp fp sp:needs-tosStandard
0o343227*spare*SpareOp343----Spare / Reserved
0o344228*spare*SpareOp344----Spare / Reserved
0o345229*spare*SpareOp345----Spare / Reserved
0o346230*spare*SpareOp346----Spare / Reserved
0o347231*spare*SpareOp347----Spare / Reserved
0o350232fast-aref-1FastAref121lp fp sp:needs-tosStandard
0o351233fast-aset-1FastAset130lp fp sp:needs-tos :clobbers-tosStandard
0o352234stack-blt-addressStackBltAddress20lp fp sp:needs-tosStandard
0o353235*spare*SpareOp353----Spare / Reserved
0o354236*spare*SpareOp354----Spare / Reserved
0o355237*spare*SpareOp355----Spare / Reserved
0o356238*spare*SpareOp356----Spare / Reserved
0o357239*spare*SpareOp357----Spare / Reserved
0o360240*spare*SpareOp360----Spare / Reserved
0o361241*spare*SpareOp361----Spare / Reserved
0o362242*spare*SpareOp362----Spare / Reserved
0o363243*spare*SpareOp363----Spare / Reserved
0o364244*spare*SpareOp364----Spare / Reserved
0o365245*spare*SpareOp365----Spare / Reserved
0o366246*spare*SpareOp366----Spare / Reserved
0o367247*spare*SpareOp367----Spare / Reserved
0o370248dpbDpb31byte:needs-tos :function dpb-internalStandard
0o371249char-dpbCharDpb31byte:needs-tosStandard
0o372250%p-dpbPDpb30byte:needs-tos :clobbers-tos :function %p-dpb-internalStandard
0o373251%p-tag-dpbPTagDpb30byte:needs-tos :clobbers-tosStandard
0o374252*spare*SpareOp374----Spare / Reserved
0o375253loop-increment-tos-less-thanLoopIncrementTosLessThan20relative-pc:needs-tos :loopStandard
0o376254catch-openCatchOpen1nunsigned-Standard
0o377255%hackSpareOp3772110-bit-immediate-Emulator hook (%hack)

5. Fullword Macroinstruction Operations (def-dtp-op)

When an instruction word in the macroinstruction stream has a tag < 0o60, it is executed as a Fullword Instruction or Inline Constant rather than decoded into two halfwords:

DTP Tag (Octal)Symbolics DTP NameFullword Operation ClassBehavioral Execution Semantics
0o00dtp-null:illegal-instructionTraps with InstructionExceptionNullTag.
0o01dtp-monitor-forward:illegal-instructionTraps (forwarding pointer encountered as instruction).
0o02dtp-header-p:illegal-instructionTraps (structure header in code stream).
0o03dtp-header-i:illegal-instructionTraps (compiled function header in code stream).
0o04dtp-external-value-cell-pointer:push-instructionIndirectly fetches contents of addressed symbol value cell and pushes to stack.
0o05dtp-one-q-forward:illegal-instructionTraps (forwarding pointer).
0o06dtp-header-forward:illegal-instructionTraps (forwarding pointer).
0o07dtp-element-forward:illegal-instructionTraps (forwarding pointer).
0o10dtp-fixnum:push-instructionPushes 32-bit signed fixnum directly to TOS; increments PC by 1 word.
0o11dtp-small-ratio:push-instructionPushes small rational constant to TOS.
0o12dtp-single-float:push-instructionPushes IEEE single-precision float to TOS.
0o13dtp-double-float:push-instructionPushes pointer to double float to TOS.
0o14dtp-bignum:push-instructionPushes pointer to bignum to TOS.
0o15dtp-big-ratio:push-instructionPushes pointer to big ratio to TOS.
0o16dtp-complex:push-instructionPushes pointer to complex number to TOS.
0o17dtp-spare-number:push-instructionPushes number constant to TOS.
0o20dtp-instance:push-instructionPushes instance pointer constant to TOS.
0o21dtp-list-instance:push-instructionPushes list-instance pointer constant to TOS.
0o22dtp-array-instance:push-instructionPushes array-instance pointer constant to TOS.
0o23dtp-string-instance:push-instructionPushes string-instance pointer constant to TOS.
0o24dtp-nil:push-instructionPushes NIL constant to TOS.
0o25dtp-list:push-instructionPushes list / cons pointer to TOS.
0o26dtp-array:push-instructionPushes array pointer to TOS.
0o27dtp-string:push-instructionPushes string pointer to TOS.
0o30dtp-symbol:push-instructionPushes symbol pointer to TOS.
0o31dtp-locative:push-instructionPushes locative pointer to TOS.
0o32dtp-lexical-closure:push-instructionPushes lexical closure pointer to TOS.
0o33dtp-dynamic-closure:push-instructionPushes dynamic closure pointer to TOS.
0o34dtp-compiled-function:push-instructionPushes compiled function descriptor to TOS.
0o35dtp-generic-function:push-instructionPushes generic function descriptor to TOS.
0o36dtp-spare-pointer-1:push-instructionPushes pointer constant to TOS.
0o37dtp-spare-pointer-2:push-instructionPushes pointer constant to TOS.
0o40dtp-physical-address:push-instructionPushes physical address word to TOS.
0o41dtp-spare-immediate-1:push-instructionPushes immediate word to TOS (also used for *vlm-native-instruction-opcode*).
0o42dtp-bound-location:illegal-instructionTraps (internal binding frame marker).
0o43dtp-character:push-instructionPushes character object to TOS.
0o44dtp-logic-variable:illegal-instructionTraps (unbound logic variable).
0o45dtp-gc-forward:illegal-instructionTraps (GC forwarding marker).
0o46dtp-even-pc:push-instructionPushes continuation even PC to TOS.
0o47dtp-odd-pc:push-instructionPushes continuation odd PC to TOS.
0o50dtp-call-compiled-even:start-callPushes call frame header and branches to even PC of target.
0o51dtp-call-compiled-odd:start-callPushes call frame header and branches to odd PC of target.
0o52dtp-call-indirect:start-callPushes call frame header and branches indirectly through target cell.
0o53dtp-call-generic:start-callPushes call frame header and initiates generic function method lookup.
0o54dtp-call-compiled-even-prefetch:start-call :prefetch-pointerInitiates call to even PC while hinting hardware instruction cache prefetch.
0o55dtp-call-compiled-odd-prefetch:start-call :prefetch-pointerInitiates call to odd PC while hinting hardware instruction cache prefetch.
0o56dtp-call-indirect-prefetch:start-callIndirect call with prefetch hint.
0o57dtp-call-generic-prefetch:start-callGeneric function call with prefetch hint.
0o60 .. 0o77dtp-packed-instruction-*:illegal-instructionExecuted as packed instruction pair; fullword execution traps.