; Archelon URCC C 3.20 2005/02/20
; MSP430 CIF 2005/01/21
; Compiled "C:\svn\MOOS\MSP430\Quadravox\mmcrfio\version.c" Thu Apr 07 21:34:43 2005
; 
	.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 void (*__appendfunc_ptr) (char, void *);
; __appendfunc_ptr 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    snprintf( char *, size_t, const char *, ... );
; int    sscanf( const char *, const char *, ... );
; int    vsprintf( char *, const char *, va_list );
; int    vsnprintf( char *, size_t, const char *, va_list );
; int    __vpprintf( __appendfunc_ptr, void *, const char *, va_list );
; int    __pprintf( __appendfunc_ptr, void *, const char *, ... );
; 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[] = "Apr 07 2005" ;
	.iseg version_data_const
	.align 0x2
_dateStr:
	.byte 0x41
	.byte 0x70
	.byte 0x72
	.byte 0x20
	.byte 0x30
	.byte 0x37
	.byte 0x20
	.byte 0x32
	.byte 0x30
	.byte 0x30
	.byte 0x35
	.byte 0x0
; dateStr size 12
; static const char toolchain = 'Q';
_toolchain:
	.byte 0x51
; toolchain size 1
; static const unsigned char verSubMinor = 1;
_verSubMinor:
	.byte 0x1
; verSubMinor size 1
; static const unsigned char verMinor = 3;
_verMinor:
	.byte 0x3
; 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 0x15
	.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 0x504e5f5f
	.long 0x534d5241
	.long 0x0
	.long 0x0
	.long 0x10002
	.long 0x66652e
	.long 0x0
	.long DBG17
	.long 0x0
	.long 0x1650001
	.long 0x0
	.long 0x19
	.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 0x1b
	.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 0x5
	.long DBG29
	.long 0x7
	.long DBG31
	.long 0x8
	.long DBG32
	.long 0x9
	.long DBG33
	.long 0xa
	.long DBG35
	.long 0xb
	.long DBG36
	.long 0xc
	.long DBG37
	.long 0xe
	.long DBG38
	.long 0xf
	.long DBG39
	.long 0x10
	.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:
;   if (verSubMinor != 0) {
	mov.b	&_verSubMinor,r13
	cmp.b	#0x0,r13
	jeq	versionInit_L1
DBG31:
DBG30:
;     sprintf(versionString, "%u.%u.%u-%c [%s]", verMajor, verMinor, verSubMinor, toolchain, date
	push	#_dateStr
	mov.b	&_toolchain,r12
	sxt	r12
	push	r12
	and	#0xff,r13
	push	r13
	mov.b	&_verMinor,r12
	push	r12
	mov.b	&_verMajor,r12
	push	r12
	push	#version_V2
	push	r4
DBG40:
	call	#_sprintf
DBG41:
	add	#0xe,sp
DBG33:
DBG32:
; Str);
;     }
	jmp	versionInit_L2
versionInit_L1:
;   else {
DBG34:
;     sprintf(versionString, "%u.%u-%c [%s]", verMajor, verMinor, toolchain, dateStr);
DBG35:
	push	#_dateStr
	mov.b	&_toolchain,r12
	sxt	r12
	push	r12
	mov.b	&_verMinor,r12
	push	r12
	mov.b	&_verMajor,r12
	push	r12
	push	#version_V3
	push	r4
DBG42:
	call	#_sprintf
DBG43:
	add	#0xc,sp
DBG36:
versionInit_L2:
;     }
;   result = cmdparseAddCommand("get", "version", getVersionHandler);
DBG37:
	mov	#_getVersionHandler,r14
	mov	#version_V5,r13
	mov	#version_V4,r12
	call	#_cmdparseAddCommand
DBG44:
DBG39:
DBG38:
;   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
	.long 0x504e5f5f
	.long 0x534d5241
	.long 0x0
	.long 0x0
	.long 0x10002
DBG2:
	.long 0x62622e
	.long 0x0
	.long DBG40
	.long 0x0
	.long 0x1640001
	.long 0x0
	.long 0x9
	.long 0x0
	.long DBG45
	.long 0x0
	.long 0x0
	.long DBG46
	.long 0xe
	.long 0x0
	.long 0x10002
	.long 0x62652e
	.long 0x0
	.long DBG41
	.long 0x0
	.long 0x1640001
	.long 0x0
	.long 0x9
	.long 0x0
	.long 0x0
	.long 0x0
DBG45:
	.long 0x62622e
	.long 0x0
	.long DBG42
	.long 0x0
	.long 0x1640001
	.long 0x0
	.long 0xc
	.long 0x0
	.long DBG47
	.long 0x0
	.long 0x0
	.long DBG46
	.long 0xc
	.long 0x0
	.long 0x10002
	.long 0x62652e
	.long 0x0
	.long DBG43
	.long 0x0
	.long 0x1640001
	.long 0x0
	.long 0xc
	.long 0x0
	.long 0x0
	.long 0x0
	.long 0x66652e
	.long 0x0
	.long DBG44
	.long 0x0
	.long 0x1650001
	.long 0x0
	.long 0x2a
	.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_V6:
_versionString:
	.bss 0x10
; versionString size 16
	.extern _sprintf
	.extern _outfmtSendVersion
	.extern _cmdparseAddCommand
	.extern _clearString
	.dbgseg dbg_syms
_0fake_1:
DBG4:
	.long 0x6166305f
	.long 0x315f656b
	.long 0x0
	.long 0x8
	.long 0x10afffe
	.long 0x0
	.long 0x100000
	.long 0x0
	.long DBG48
	.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:
DBG47:
DBG20:
DBG48:
	.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 DBG49
	.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 0xc002c
	.long 0xc
	.long 0x0
	.long 0x0
	.long 0x0
	.long DBG50
	.long _verSubMinor
	.long 0xc
	.long 0x30002
	.long 0x0
	.long DBG51
	.long _versionString
	.long 0x62
	.long 0x1030002
	.long 0x0
	.long 0x10002c
	.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 DBG52
	.long 0x0
	.long 0x2a0
	.long 0xdfffe
	.long 0x0
	.long DBG53
	.long 0x0
	.long 0x2a4
	.long 0xdfffe
	.iseg version_istrings_const
version_V4:
	.byte 0x67
	.byte 0x65
	.byte 0x74
	.byte 0x0
version_V5:
	.byte 0x76
	.byte 0x65
	.byte 0x72
	.byte 0x73
	.byte 0x69
	.byte 0x6f
	.byte 0x6e
	.byte 0x0
version_V3:
	.byte 0x25
	.byte 0x75
	.byte 0x2e
	.byte 0x25
	.byte 0x75
	.byte 0x2d
	.byte 0x25
	.byte 0x63
	.byte 0x20
	.byte 0x5b
	.byte 0x25
	.byte 0x73
	.byte 0x5d
	.byte 0x0
version_V2:
	.byte 0x25
	.byte 0x75
	.byte 0x2e
	.byte 0x25
	.byte 0x75
	.byte 0x2e
	.byte 0x25
	.byte 0x75
	.byte 0x2d
	.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 0xd0
DBG5:
	.long 0x433a5c73
	.long 0x766e5c4d
	.long 0x4f4f535c
	.long 0x4d535034
	.long 0x33305c51
	.long 0x75616472
	.long 0x61766f78
	.long 0x5c6d6d63
	.long 0x7266696f
	.long 0x5c766572
	.long 0x73696f6e
	.long 0x2e630000
DBG49:
	.long 0x746f6f6c
	.long 0x63686169
	.long 0x6e000000
DBG18:
	.long 0x5f5f4652
	.long 0x414d4553
	.long 0x495a4500
DBG10:
	.long 0x67657456
	.long 0x65727369
	.long 0x6f6e4861
	.long 0x6e646c65
	.long 0x72000000
DBG46:
	.long 0x5f5f5641
	.long 0x525f4152
	.long 0x47535f53
	.long 0x495a4500
DBG52:
	.long 0x5f5f6170
	.long 0x70656e64
	.long 0x66756e63
	.long 0x5f707472
	.long 0x0
DBG19:
	.long 0x5f5f5341
	.long 0x5645445f
	.long 0x41524753
	.long 0x5f53495a
	.long 0x45000000
DBG24:
	.long 0x76657273
	.long 0x696f6e49
	.long 0x6e697400
DBG50:
	.long 0x76657253
	.long 0x75624d69
	.long 0x6e6f7200
DBG53:
	.long 0x636f6d6d
	.long 0x616e6448
	.long 0x616e646c
	.long 0x65720000
DBG51:
	.long 0x76657273
	.long 0x696f6e53
	.long 0x7472696e
	.long 0x67000000
	.iseg _idesc
	.align 0x2
	.data 0x0
	.data version_V6
	.data 0x10
