projects/maven/mag/
decom_2s_complement.pro
*NAME: decom_2s_complement *PURPOSE: Decom 2 bytes into a long integer via 2's complement. *CALLING SEQUENCE: decom_2s_complement,buff,value *PARAMETERS: buff (required) (input) (array) (byte) An array of 2 bytes in order as read from file. value (required) (output) (scalar) (longwod integer) The calculated value. *EXAMPLES: decom_2s_complement,buff,value *SYSTEM VARIABLES USED: none *INTERACTIVE INPUT: none *SUBROUTINES CALLED: none *FILES USED: none *SIDE EFFECTS: none *RESTRICTIONS: Only for use with 2 bytes *NOTES: *PROCEDURE: - Check inputs - Bytes to bits - calculate value *MODIFICATION HISTORY: 26 Jul 2010 wrote 29 Jul 2010 generalized the code 3 Aug 2010 RCS
Routines
File attributes
Modification date: | Thu Feb 13 16:42:19 2014 |
Lines: | 18 |