; Archelon URCC C 3.17 2004/01/12
; MSP430 CIF 2003/10/23
; Compiled "E:\mmcrfio\version.c" Fri Feb 20 18:03:42 2004
; 
	.dbgseg dbg_syms
	.align 0x2
	.long 0x6c69662e
	.long 0x65
	.long 0x1
	.long 0x0
	.long 0x167fffe
	.long 0x0
	.long DBG5
	.long 0x0
	.long 0x0
	.long 0x0
; typedef unsigned int size_t;
; size_t size 2
; typedef void *va_list;
; va_list size 2
; typedef struct {
; 	unsigned char *_base;
; 	unsigned char *_end;
; 	unsigned char *_ptr;
; 	long int       _seek;
; 	int            _cnt;
; 	short          _flag;
; 	char           _file;
; 	unsigned char  _nbf;
; } FILE;
; FILE size 16
; int    sprintf( char *, const char *, ... );
; int    sscanf( const char *, const char *, ... );
; int    vsprintf( char *, const char *, va_list );
; typedef int boolean;
; boolean size 2
; enum {false = 0, true = 1};
; enum {error = -1, success = 0};
; void clearString(char *s, int len);
; void eatWhiteSpace(char **s);
; int grabArgument(char **srcStr, char *dstStr, int dstLen);
; typedef int (*commandHandler)(char *);
; commandHandler size 2
; int cmdparseInit(void);
; void cmdparseShow(void);
; int cmdparseAddCommand(char * pCmdStr, char * pSubCmdStr, commandHandler handler);
; int cmdparseDoCommand(char * pCmdStr);
; int outfmtInit(void);
; void outfmtSendAlarmInfo(int type, unsigned char alarms);
; void outfmtSendPrompt(void);
; void outfmtSendCrLf(void);
; void outfmtSendVersion(char *);
; void outfmtSendData(void);
; void outfmtSendLevels(void);
; void outfmtSendTime(int, int, int);
; void outfmtSendDate(int, int, int);
; void outfmtSendError(int);
; int outfmtGetBuffer(char **, int *);
; int outfmtSendBuffer(void);
; static const char dateStr[] = "Feb 20 2004" ;
	.iseg version_data_const
	.align 0x2
_dateStr:
	.byte 0x46
	.byte 0x65
	.byte 0x62
	.byte 0x20
	.byte 0x32
	.byte 0x30
	.byte 0x20
	.byte 0x32
	.byte 0x30
	.byte 0x30
	.byte 0x34
	.byte 0x0
; dateStr size 12
; static const char toolchain = 'Q';
_toolchain:
	.byte 0x51
; toolchain size 1
; static const unsigned char verMinor = 1;
_verMinor:
	.byte 0x1
; verMinor size 1
; static const unsigned char verMajor = 2;
_verMajor:
	.byte 0x2
; verMajor size 1
; static char versionString[ (16) ];
; static int getVersionHandler(char * cmdStr)
	.dbgseg dbg_syms
DBG3:
	.long 0x0
	.long DBG10
	.long _getVersionHandler
	.long 0x44
	.long 0x1030001
	.long DBG1
	.long DBG7-DBG8
	.long DBG9
	.long DBG6
	.long 0x0
	.pseg version_code
DBG8:
	.dbgseg dbg_syms
DBG1:
	.long 0x66622e
	.long 0x0
	.long DBG8
	.long 0x0
	.long 0x1650001
	.long 0x0
	.long 0x14
	.long 0x0
	.long DBG11
	.long 0x0
	.dbgseg dbg_line
	.align 0x2
DBG9:
	.long DBG3
	.long 0x0
	.long _getVersionHandler
	.long 0x1
	.long DBG13
	.long 0x2
	.long DBG14
	.long 0x3
	.long DBG15
	.long 0x4
	.long DBG16
	.long 0x5
	.pseg version_code
_getVersionHandler:
; ENTRY
DBG12:
; {
DBG13:
;   outfmtSendVersion(versionString);
DBG14:
	mov	#_versionString,r12
	call	#_outfmtSendVersion
DBG15:
;   return 0;
	mov	#0x0,r12
DBG17:
DBG16:
; EXIT
	ret
	.dbgseg dbg_syms
	.long 0x0
	.long DBG18
	.long 0x0
	.long 0x0
	.long 0x10002
	.long 0x0
	.long DBG19
	.long 0x2
	.long 0x0
	.long 0x10002
	.long 0x66652e
	.long 0x0
	.long DBG17
	.long 0x0
	.long 0x1650001
	.long 0x0
	.long 0x18
	.long 0x0
	.long 0x0
	.long 0x0
	.pseg version_code
DBG7:
	.dbgseg dbg_syms
	.long 0x0
	.long DBG10
	.long DBG7
	.long 0x0
	.long 0xff0001
; }
; ****** Warning: Symbol ``cmdStr'' (function getVersionHandler) was defined, but not used
; int versionInit(void)
DBG6:
	.long 0x0
	.long DBG24
	.long _versionInit
	.long 0x44
	.long 0x1020001
	.long DBG11
	.long DBG21-DBG22
	.long DBG23
	.long DBG20
	.long 0x0
	.pseg version_code
DBG22:
	.dbgseg dbg_syms
DBG11:
	.long 0x66622e
	.long 0x0
	.long DBG22
	.long 0x0
	.long 0x1650001
	.long 0x0
	.long 0x1a
	.long 0x0
	.long DBG25
	.long 0x0
	.dbgseg dbg_line
DBG23:
	.long DBG6
	.long 0x0
	.long _versionInit
	.long 0x1
	.long DBG27
	.long 0x2
	.long DBG28
	.long 0x4
	.long DBG29
	.long 0x5
	.long DBG30
	.long 0x6
	.long DBG31
	.long 0x7
	.long DBG32
	.long 0x8
	.pseg version_code
	.global _versionInit
_versionInit:
	push	r4
DBG28:
DBG27:
DBG26:
; ENTRY
; result in reg  size 2
; {
;   int result;
;   clearString(versionString, (16) );
	mov	#0x10,r13
	mov	#_versionString,r4
	mov	r4,r12
	call	#_clearString
DBG29:
;   sprintf(versionString, "%u.%u%c [%s]", verMajor, verMinor, toolchain, dateStr);
	push	#_dateStr
	mov.b	&_toolchain,r12
	sxt	r12
	push	r12
	mov.b	&_verMinor,r12
	push	r12
	mov.b	&_verMajor,r12
	push	r12
	push	#version_V2
	push	r4
DBG33:
	call	#_sprintf
DBG34:
	add	#0xc,sp
DBG30:
;   result = cmdparseAddCommand("get", "version", getVersionHandler);
	mov	#_getVersionHandler,r14
	mov	#version_V4,r13
	mov	#version_V3,r12
	call	#_cmdparseAddCommand
DBG35:
DBG32:
DBG31:
;   return result;
; EXIT
; .temp0 at stkloc 0 (0x0) size 2
	pop	r4
	ret
	.dbgseg dbg_syms
	.long 0x0
	.long DBG18
	.long 0x2
	.long 0x0
	.long 0x10002
	.long 0x0
	.long DBG19
	.long 0x2
	.long 0x0
	.long 0x10002
DBG2:
	.long 0x62622e
	.long 0x0
	.long DBG33
	.long 0x0
	.long 0x1640001
	.long 0x0
	.long 0x6
	.long 0x0
	.long DBG36
	.long 0x0
	.long 0x0
	.long DBG37
	.long 0xc
	.long 0x0
	.long 0x10002
	.long 0x62652e
	.long 0x0
	.long DBG34
	.long 0x0
	.long 0x1640001
	.long 0x0
	.long 0x6
	.long 0x0
	.long 0x0
	.long 0x0
	.long 0x66652e
	.long 0x0
	.long DBG35
	.long 0x0
	.long 0x1650001
	.long 0x0
	.long 0x21
	.long 0x0
	.long 0x0
	.long 0x0
	.pseg version_code
DBG21:
	.dbgseg dbg_syms
	.long 0x0
	.long DBG24
	.long DBG21
	.long 0x0
	.long 0xff0001
; }
	.dseg	version_bss
	.align 0x2
version_V5:
_versionString:
	.bss 0x10
; versionString size 16
	.extern _sprintf
	.extern _outfmtSendVersion
	.extern _cmdparseAddCommand
	.extern _clearString
	.dbgseg dbg_syms
.0fake_1:
DBG4:
	.long 0x6166302e
	.long 0x315f656b
	.long 0x0
	.long 0x8
	.long 0x10afffe
	.long 0x0
	.long 0x100000
	.long 0x0
	.long DBG38
	.long 0x0
	.long 0x7361625f
	.long 0x65
	.long 0x0
	.long 0x2c
	.long 0x8ffff
	.long 0x646e655f
	.long 0x0
	.long 0x2
	.long 0x2c
	.long 0x8ffff
	.long 0x7274705f
	.long 0x0
	.long 0x4
	.long 0x2c
	.long 0x8ffff
	.long 0x6565735f
	.long 0x6b
	.long 0x6
	.long 0x5
	.long 0x8ffff
	.long 0x746e635f
	.long 0x0
	.long 0xa
	.long 0x4
	.long 0x8ffff
	.long 0x616c665f
	.long 0x67
	.long 0xc
	.long 0x3
	.long 0x8ffff
	.long 0x6c69665f
	.long 0x65
	.long 0xe
	.long 0x2
	.long 0x8ffff
	.long 0x66626e5f
	.long 0x0
	.long 0xf
	.long 0xc
	.long 0x8ffff
	.long 0x736f652e
	.long 0x0
	.long 0x10
	.long 0x0
	.long 0x166ffff
	.long DBG4
	.long 0x100000
	.long 0x0
	.long 0x0
	.long 0x0
DBG25:
DBG36:
DBG20:
DBG38:
	.long 0x7073
	.long 0x0
	.long 0x1
	.long 0x0
	.long 0x16cfffe
	.long 0x0
	.long 0x100001
	.long 0x0
	.long 0x0
	.long 0x0
	.long 0x52
	.long 0x0
	.long 0x2
	.long 0x0
	.long 0x16cfffe
	.long 0x0
	.long 0x100010
	.long 0x0
	.long 0x0
	.long 0x0
	.long 0x0
	.long DBG39
	.long _toolchain
	.long 0x2
	.long 0x30002
	.long 0x4d726576
	.long 0x726f6a61
	.long _verMajor
	.long 0xc
	.long 0x30002
	.long 0x4d726576
	.long 0x726f6e69
	.long _verMinor
	.long 0xc
	.long 0x30002
	.long 0x65746164
	.long 0x727453
	.long _dateStr
	.long 0x62
	.long 0x1030002
	.long 0x0
	.long 0xc0023
	.long 0xc
	.long 0x0
	.long 0x0
	.long 0x0
	.long DBG40
	.long _versionString
	.long 0x62
	.long 0x1030002
	.long 0x0
	.long 0x100023
	.long 0x10
	.long 0x0
	.long 0x0
	.long 0x6c6f6f62
	.long 0x6e6165
	.long 0x0
	.long 0x4
	.long 0xdfffe
	.long 0x454c4946
	.long 0x0
	.long 0x0
	.long 0x8
	.long 0x10dfffe
	.long .0fake_1
	.long 0x10
	.long 0x0
	.long 0x0
	.long 0x0
	.long 0x657a6973
	.long 0x745f
	.long 0x0
	.long 0xe
	.long 0xdfffe
	.long 0x6c5f6176
	.long 0x747369
	.long 0x0
	.long 0x20
	.long 0xdfffe
	.long 0x0
	.long DBG41
	.long 0x0
	.long 0x2a4
	.long 0xdfffe
	.iseg version_istrings_const
version_V3:
	.byte 0x67
	.byte 0x65
	.byte 0x74
	.byte 0x0
version_V4:
	.byte 0x76
	.byte 0x65
	.byte 0x72
	.byte 0x73
	.byte 0x69
	.byte 0x6f
	.byte 0x6e
	.byte 0x0
version_V2:
	.byte 0x25
	.byte 0x75
	.byte 0x2e
	.byte 0x25
	.byte 0x75
	.byte 0x25
	.byte 0x63
	.byte 0x20
	.byte 0x5b
	.byte 0x25
	.byte 0x73
	.byte 0x5d
	.byte 0x0
	.dbgseg dbg_syms
	.long 0x666f652e
	.long 0x0
	.long 0x0
	.long 0x0
	.long 0x67fffe
	.dbgseg dbg_strs
	.align 0x2
	.long 0x98
DBG39:
	.long 0x746f6f6c
	.long 0x63686169
	.long 0x6e000000
DBG18:
	.long 0x5f5f4652
	.long 0x414d4553
	.long 0x495a4500
DBG10:
	.long 0x67657456
	.long 0x65727369
	.long 0x6f6e4861
	.long 0x6e646c65
	.long 0x72000000
DBG37:
	.long 0x5f5f5641
	.long 0x525f4152
	.long 0x47535f53
	.long 0x495a4500
DBG19:
	.long 0x5f5f5341
	.long 0x5645445f
	.long 0x41524753
	.long 0x5f53495a
	.long 0x45000000
DBG24:
	.long 0x76657273
	.long 0x696f6e49
	.long 0x6e697400
DBG5:
	.long 0x453a5c6d
	.long 0x6d637266
	.long 0x696f5c76
	.long 0x65727369
	.long 0x6f6e2e63
	.long 0x0
DBG41:
	.long 0x636f6d6d
	.long 0x616e6448
	.long 0x616e646c
	.long 0x65720000
DBG40:
	.long 0x76657273
	.long 0x696f6e53
	.long 0x7472696e
	.long 0x67000000
	.iseg _idesc
	.align 0x2
	.data 0x0
	.data version_V5
	.data 0x10
