360 Assembly/Arithmetic

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

Arithmetic Instructions[edit]

Binary integer arithmetic instructions[edit]

Instructions are sorted alphabetically. The instructions marked as "logical" set condition code (CC) field in PSW according to unsigned treating of values. Otherwise, condition codes reflect treating values as 2-complement signed values.

  • Add - A
  • Add Half - AH
  • Add Logical - AL
  • Add Logical Register - ALR
  • Add Register - AR
  • Subtract - S
  • Subtract Half - SH
  • Subtract Logical - SL
  • Subtract Logical Register - SLR
  • Subtract Register - SR
  • Multiply - M
  • Multiply with Register - MR
  • Divide - D
  • Divide by Register - DR

Decimal integer arithmetic instructions[edit]

Floating number instructions[edit]

360 Assembly Language
360 Family Introduction · Basic FAQ · 360 Family · 360 Architecture · Comments
360 Instruction Set 360 Instructions · Branch Instructions · Data Transfer Instructions · Control Flow Instructions · Arithmetic Instructions · Logic Instructions · Shift and Rotate Instructions · Other Instructions
Syntaxes and Assemblers 360 Assemblers· Pseudo Instructions
Instruction Extensions Floating Point · High-Level Languages