13.07.2015 Views

IBM 5280 Distributed Data System - Index of

IBM 5280 Distributed Data System - Index of

IBM 5280 Distributed Data System - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4. Object Code Instruction .FormatEach object code instruction is 4 bytes long. The first byte always contains theoperation code. The other three bytes contain flags, addresses and other data.ADDRESSING METHODS WITHIN A PARTITIONIn a source program instruction, a storage area or another instruction is referred toby a label. A register is referred to by a label or by a number. When source instructionis converted to object code, these labels and numbers are converted toaddresses. An address in an object code instruction is always relative to the beginning<strong>of</strong> the partition. When the object code instruction is executed, the relativeaddress is added to the absolute address <strong>of</strong> the beginning <strong>of</strong> the partition. Theabsolute address <strong>of</strong> the beginning <strong>of</strong> the partition is stored in displacement hex ODin the partition lOB.Because instructions and registers must begin on specific boundaries, the 16-bitaddress can be compressed. The bits in the object code instruction that are notused for the address are used for other purposes, such as flags. A relative addressin an object code instruction is in one <strong>of</strong> the following formats:• 16-bit address to locate any byte within a partition• 14-bit address to locate an instruction• 8-bit address to locate a decimal register• 7-bit address to locate a binary registerIn addition to the relative addresses, an object code instruction may contain thefollowing types <strong>of</strong> data:• 8-bit instruction displacement, used with certain branch instructions to locatean instruction.• 8-bit indicator number to locate an indicator.• 8-bit index into a system table to locate the address <strong>of</strong> a format, prompt, duplicationarea, or table.• Constant.Object Code I nstruction Format 131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!