fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

CHANGE HEX NUMBERS

Syntax:

CHANGE HEX [NUMBERS] TO DEC [FORMAT]
CHANGE HEX [NUMBERS] TO FORTRAN 90 [FORMAT]
CHANGE HEX [NUMBERS] TO GOULD-SEL [FORMAT]
CHANGE HEX [NUMBERS] TO IBM [FORMAT]
CHANGE HEX [NUMBERS] TO INTEL [FORMAT]
CHANGE HEX [NUMBERS] TO SALFORD [FORMAT]
CHANGE HEX [NUMBERS] TO TOP[ ]EXPRESS [FORMAT]
CHANGE HEX [NUMBERS] TO X'FFFF'
CHANGE HEX [NUMBERS] TO 'FFFF'X
CHANGE HEX [NUMBERS] TO Z'FFFF'
CHANGE HEX [NUMBERS] TO 'FFFF'Z
DO NOT CHANGE HEX NUMBERS
HEX NUMBERS AS WRITTEN

Function:

fpt reads HEX numbers in all of the formats listed above. These commands instruct fpt systematically to convert HEX numbers to the specified formats. Some of the formats are synonyms. They are, for example:

DEC '20414243'X
Fortran 90 Z'20414243'
Gould-SEL 8Z20414243
IBM '20414243'X
Intel #20414243X
Salford Z'20414243'
TopExpress ?'20414243'X

Octal numbers may similarly be changed by the command CHANGE OCTAL NUMBERS.

Note that no attempt is made to byte-swap the numbers in changing between big-ended and little-ended systems.

Changed HEX numbers are marked by diagnostics in the code. These may be suppressed by the SUPPRESS ERROR command.

Where to Use this Command

Operating system command line Yes
Configuration file, config.fsp Yes
Specification (fsp) files, *.fsp Yes
Interactively, to FPT> prompt Yes
Interactive command files Yes
Embedded in the Fortran code No

Default

HEX numbers are not changed by default (Note that defaults may be changed in the configuration file).

Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.