

Accessing Main Storage: CORE › Change the Contents of Main Storage › Bit Manipulation
Bit Manipulation
Appending OC, NC, or XC after the data string lets you perform one of the following logical operations to the contents of main storage:
- OC to OR the data in the command to storage
- NC to AND the data in the command to storage
- XC to EXCLUSIVE OR the data in the command to storage
Examples
The following examples demonstrate how to manipulate main storage bits.
- To set the high order bit of the first byte on the current CORE display to 1, enter:
CORE=CHGX'80'OC
- To set the high order bit of the first byte on the current CORE display to 0, enter:
CORE=CHGX'7F'NC
- To reverse all the bits of the first byte on the current CORE display, enter:
CORE=CHGX'FF'XC
Copyright © 2014 CA Technologies.
All rights reserved.
 
|
|