Template:360 opcode header

From Wikibooks, open books for an open world
Jump to navigation Jump to search

{{{opcode}}} — {{{name}}} — Opcode {{{hex}}} / Decimal {{{dec}}} —

Instruction. 


Format[edit source]


Availability[edit source]

The {{{opcode}}} instruction is available on all models, 360, 370 and z/System.



How to use this template[edit source]

It is put on the pages of IBM 360 Assembly instructions.

Usage:

opcode= 1 or more letter opcode, capitalized
name= Full name of the instruction
hex= Hexadecimal opcode value
dec= Decimal opcode value
bits= 31 or 64 if its operation is different in the bit mode the system is running on. 31 if it only handles 24 and 31-bit operands, addresses or registers, 64 if it only handles 64-bit operands, addresses or registers
type= 1 or more letter opcode type, as follows:
  • E - RR with 2-byte opcode (no arguments)
  • I - RR with single operand 0-255(currently only SVC qualifies)
  • RI - One register, one secondary opcode, 16-bit immediate value
  • RIL - One register, one secondary opcode, 32-bit immediate value
  • RR - RR with two registers, 0-15
  • RM - RR with one mask and one regioster, both 0-15
  • RRE - two registers
  • RRF - three registers
  • RRFM - RRF with mask and two registers
  • RRF3 - RRF with three registers and one mask
  • RS - Two registers and one base/displacement address
  • RSE - Secondary opcode, two registers, and one base/displacement address
  • RSEM - Secondary opcode, two registers, one mask, and one base/displacement address
  • RSI - Two registers and a 16-bit immeiate value
  • RSM - RS with one register, one mask, and one base/displacement address
  • RXB - RX branch instruction: One register with one indexed base/displacement branch address
  • RXS - RX storage instruction: One register with one indexed base/displacement branch address
  • S - One base/displacement address
  • SI - 8-bit immediate value, one base/displacement address
  • SS - Two base/displacement addresses with a single length from 1 to 256 bytes
  • SSE - Two base/displacement addresses
  • SSL - SS with two lengths of 1-16 bytes
  • SSR - SS with two registers and two base/displacement addresses
p= - values are 1, p or P if a privileged instruction; n, N, 0 or omitted if not

(More later)