Browse Prior Art Database

Replace Instruction

IP.com Disclosure Number: IPCOM000080238D
Original Publication Date: 1973-Nov-01
Included in the Prior Art Database: 2005-Feb-27
Document File: 2 page(s) / 35K

Publishing Venue

IBM

Related People

Bryner, JW: AUTHOR

Abstract

A hardware/firmware implemented function is described to be selected by a program instruction "REPLACE". The function requires the specification of certain parameters of both the receiving and transmitting fields including field type, length, pad character, justification (left or right) or truncation (left or right), and location. The functions provided by the instruction therefore are movement, translation, padding, justification and truncation of fields. It is envisioned as an "RR" type of instruction arranged to allow specification of the necessary parameters, as shown in the figure.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 100% of the total text.

Page 1 of 2

Replace Instruction

A hardware/firmware implemented function is described to be selected by a program instruction "REPLACE". The function requires the specification of certain parameters of both the receiving and transmitting fields including field type, length, pad character, justification (left or right) or truncation (left or right), and location. The functions provided by the instruction therefore are movement, translation, padding, justification and truncation of fields. It is envisioned as an "RR" type of instruction arranged to allow specification of the necessary parameters, as shown in the figure.

Bit 0 of the "Type" byte indicates justification/truncation

0 = left

1 = right

This allows 128 field types.

Floating-point conversions might cover a number of "field types" depending on the truncation rules, rounding rules, etc. of the particular source language (e.g. PL/1, Fortran, Algol, Cobol, etc.)

The most commonly used translations would be hardware or firmware: EBCDIC -> FIXED PT

FIXED PT -> EBCDIC

EBCDIC - HEX

HEX -> EBCDIC

EBCDIC -> Floating Pt (PL/1)

Floating Pt (PL/1) -> EBCDIC

Fixed Pt -> Floating Pt (PL/1)

Floating Pt (PL/1) -> Fixed Pt etc.

1

Page 2 of 2

2

[This page contains 1 picture or other non-text object]