XEROX DATATYPESPLUS 2 4 1 DatatypesPlus 1 4 By: Nick Briggs (Briggs.pa@Xerox.com) This document last edited on February 18, 1988. INTRODUCTION The DatatypesPlus module extends the field specs for datatype definition to include the types REVERSEDWORD, and REVERSEDFIXP. These types are useful for dealing with data generated by other hardware. DESCRIPTION REVERSEDWORD [field specification] The REVERSEDWORD field specification is similar to the WORD specification, except that it indicates that the data in this field should be byte-swapped before being fetched or replaced. Bit order within the bytes is maintained. The data will appear as [least significant byte, most significant byte] if examined bytewise. REVERSEDFIXP [field specification] The REVERSEDFIXP field specification is similar to the FIXP specification, except that it indicates that the data in this 32 bit field should be stored or retrieved such that the data will appear as [[lsb,msb] of least significant word, [lsb, msb] of most significant word] if examined bytewise. Both the REVERSEDWORD and REVERSEDFIXP fields must be aligned on word boundaries. For example, a DATATYPE declaration might contain: (DATATYPE MUMBLE ((SEGMENT-ID REVERSEDWORD) (SEGMENT-LENGTH REVERSEDFIXP))) (LIST ((PAGE NIL (PAPERSIZE Letter FOLIOINFO (ARABIC "" "") STARTINGPAGE# 1) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO (ARABIC "" "")) (174 36 288 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 528 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL (PAPERSIZE Letter FOLIOINFO (ARABIC "" "")) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO (ARABIC "" "")) (174 36 288 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 528 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))) (PAGE NIL (PAPERSIZE Letter FOLIOINFO (ARABIC "" "")) (0 0 612 792) ((FOLIO NIL (PARALOOKS (QUAD CENTERED) CHARLOOKS (SUPERSCRIPT 0 INVISIBLE OFF SELECTPOINT OFF PROTECTED OFF SIZE 10 FAMILY MODERN OVERLINE OFF STRIKEOUT OFF UNDERLINE OFF EXPANSION REGULAR SLOPE REGULAR WEIGHT MEDIUM INVERTED OFF USERINFO NIL STYLE NIL) FORMATINFO (ARABIC "" "")) (174 36 288 36) NIL) (HEADING NIL (HEADINGTYPE RUNNINGHEAD) (84 744 528 36) NIL) (TEXT NIL NIL (84 96 456 600) NIL))))).ÈÈ.È È(È(ŠŠ8(ŠŠ8DÈÈ PAGEHEADING RUNNINGHEADTERMINAL  HELVETICA MODERN MODERN MODERN MODERNLOGO HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN  HRULE.GETFNMODERN '/ Ê  D *R3,2;zº