;:ts=8
	far	code
	far	data
;//  Copyright, 1994, GEOSense
;//
;//      
;//
;//
;#include        <stdio.h>
;#include        <stdlib.h>
;#include        "assert.h"
;
;#include        "ad7716.h"
;#include        "text_log.h"
	dseg
	ds	0
_LATEST_LOGGER_TIME:
	ds.b	0
	dc.l	$ffffffff
	dc.l	$0000
	cseg
	dseg
	ds	0
_EARLIEST_LOGGER_TIME:
	ds.b	0
	dc.l	$0000
	dc.l	$0000
	cseg
;
;void ASSERT_FAIL (void* exp, void* file, unsigned line)  {
# 13 'assert.c' 587026235
| .2
	xdef	_ASSERT_FAIL
_ASSERT_FAIL:
;	fflush (stdout);
~~ exp 8 "#v"
~~ file 12 "#v"
~~ line 16 "I"
^	pea	__iob+22
	jsr	_fflush
;	fflush (stderr);
^	pea	__iob+44
	jsr	_fflush
;//      cmd_print_time (NULL);
;	printf ("\n\n***************************************\n");
^^	pea	.1+0
	jsr	_printf
;	printf ("Assertion failed: %s @\n  line %d, file %s\n",
^;							(char*)exp, (int)line, (char*)file);
	move.l	20(sp),-(sp)
	move.w	28(sp),-(sp)
	move.l	22(sp),-(sp)
	pea	.1+43
	jsr	_printf
;	printf ("***************************************\n");
^^	pea	.1+86
	jsr	_printf
;	printf ("Interrupt count is %ld\n", AD7716_get_icount ());
^	jsr	_AD7716_get_icount
	move.l	d0,-(sp)
	pea	.1+127
	jsr	_printf
;//      AD7716_critical_data_dump ();                                                   
;//      printf ("Will now dump unsaved data from the text_log routines:\n");
;//      log_print_all_unsaved (NULL);
;//      printf ("That's all folks\n");
;	fflush (stdout);
^^^^^	pea	__iob+22
	jsr	_fflush
;	exit (-1);
^	move.w	#-1,-(sp)
	jsr	_exit
;}       
^	lea	44(sp),sp
.3
	rts
.2
.1
	dc.b	10,10,42,42,42,42,42,42,42,42,42,42,42,42,42
	dc.b	42,42,42,42,42,42,42,42,42,42,42,42,42,42,42
	dc.b	42,42,42,42,42,42,42,42,42,42,42,10,0,65,115
	dc.b	115,101,114,116,105,111,110,32,102,97,105,108,101,100,58
	dc.b	32,37,115,32,64,10,32,32,108,105,110,101,32,37,100
	dc.b	44,32,102,105,108,101,32,37,115,10,0,42,42,42,42
	dc.b	42,42,42,42,42,42,42,42,42,42,42,42,42,42,42
	dc.b	42,42,42,42,42,42,42,42,42,42,42,42,42,42,42
	dc.b	42,42,42,42,42,10,0,73,110,116,101,114,114,117,112
	dc.b	116,32,99,111,117,110,116,32,105,115,32,37,108,100,10
	dc.b	0
	ds	0
;
# 28
|
~ _ASSERT_FAIL * "(v"
~ 'text_log'
~ ''
~ 2 2 8
~ secs 0 "L"
~ ticks 4 "l"
~ 1 5 1068
~ filename 0 "[32c"
~ data 32 "[1024c"
~ n_data 1056 "i"
~ n_filled 1058 "i"
~ oldest_data 1060 ":" 2
~ EARLIEST_LOGGER_TIME _EARLIEST_LOGGER_TIME ":" 2
~ LATEST_LOGGER_TIME _LATEST_LOGGER_TIME ":" 2
~ _AD7716_get_icount * "(L"
~ ''
~ 3 13 46
~ libVersion 0 "l"
~ ramBase 4 "#c"
~ ramSize 8 "l"
~ ramWaits 12 "i"
~ flashBase 14 "#c"
~ flashSize 18 "l"
~ flashWaits 22 "i"
~ heapBot 24 "#v"
~ heapTop 28 "#v"
~ heapCur 32 "#v"
~ statusReg 36 "I"
~ vectorBase 38 "#v"
~ stackPtr 42 "#v"
~ infoAction "c"
~ TT8info ":" 3
~ UeeErr "c"
~ time_tt ":" 2
~ XmdmErr "c"
~ FlashErr "c"
~ ''
~ 4 4 24
~ eSR 0 "I"
~ ePC 2 "L"
~ vectofs 6 "I"
~ states 8 "[8I"
~ ''
~ 5 4 20
~ preamble 0 "[4I"
~ jump 8 "I"
~ target 10 "L"
~ postamble 14 "[3I"
~ ExcCFramePtr "#:" 5
~ ExcCFrame ":" 5
~ ExcStackFrame ":" 4
~ 'tm'
~ 6 10 20
~ tm_sec 0 "i"
~ tm_min 2 "i"
~ tm_hour 4 "i"
~ tm_mday 6 "i"
~ tm_mon 8 "i"
~ tm_year 10 "i"
~ tm_wday 12 "i"
~ tm_yday 14 "i"
~ tm_isdst 16 "i"
~ tm_hsec 18 "i"
~ time_t "L"
~ clock_t "L"
~ ptrdiff_t "l"
~ bool "c"
~ vfptr "#(v"
~ ptr "#c"
~ ulpv "#L"
~ ulong "L"
~ uspv "#I"
~ unsint "I"
~ ushort "I"
~ ucpv "#C"
~ uchar "C"
~ ''
~ 7 2 8
~ quot 0 "l"
~ rem 4 "l"
~ ''
~ 8 2 4
~ quot 0 "i"
~ rem 2 "i"
~ _exit * "(v"
~ ldiv_t ":" 7
~ div_t ":" 8
~ wchar_t "c"
~ '__stdio'
~ 9 8 22
~ _bp 0 "#C"
~ _bend 4 "#C"
~ _buff 8 "#C"
~ _flags 12 "I"
~ _unit 14 "c"
~ _bytbuf 15 "C"
~ _buflen 16 "L"
~ _tmpnum 20 "I"
~ _printf * "(i"
~ _fflush * "(i"
~ __iob * "[0:" 9
~ FILE ":" 9
~ fpos_t "l"
~ size_t "L"
~ va_list "#c"
	xref	_AD7716_get_icount
	xref	_exit
	xref	_printf
	xref	_fflush
	xref	.begin
	dseg
	xref	__iob
	end
