// the include
#include <syslog.h>

// no ip address specified - should be a broadcast

// call to write to the syslog
SysLog("starting\r\n");


======================================================
Crash output from mtty, 
------------------------------------------------------

-------------------Trap information-----------------------------
Exception Frame/A7 =8000204C
Trap Vector        =Access Error (2)
Format             =04
Status register SR =2000
Fault Status       =09
Faulted PC         =400354EA

-------------------Register information-------------------------
A0=00000000 A1=4003AFE3 A2=800027B0 A3=80002700
A4=8000285C A5=80002760 A6=80002068 A7=8000204C
D0=0000000A D1=0000000A D2=0000000A D3=4003AFE3
D4=00000000 D5=0000000A D6=4003AFE3 D7=4003549C 
SR=2000 PC=400354EA
-------------------RTOS information-----------------------------
The OSTCBCur current task control block = 80000670
This looks like a valid TCB
The current running task is: Main#0A
-------------------Task information-----------------------------
Task    | State    |Wait| Call Stack
Idle#3F|Ready     |    |40014C38,0
Main#0A|Running   |    |400354EA,0

-------------------End of Trap Diagnostics----------------------


======================================================
Project dissassembly dump
the error is in "memmove" at PC = 400354EA
the problem is writing a byte to (A0) which is pointing to address = 0x00000000
------------------------------------------------------

4003549c <memmove>:
4003549c:	4e56 ffec      	linkw %fp,#-20
400354a0:	48d7 043c      	moveml %d2-%d5/%a2,%sp@
400354a4:	282e 0008      	movel %fp@(8),%d4
400354a8:	2044           	moveal %d4,%a0
400354aa:	262e 000c      	movel %fp@(12),%d3
400354ae:	2243           	moveal %d3,%a1
400354b0:	242e 0010      	movel %fp@(16),%d2
400354b4:	2202           	movel %d2,%d1
400354b6:	b684           	cmpl %d4,%d3
400354b8:	6422           	bccs 400354dc <memmove+0x40>
400354ba:	45f1 2800      	lea %a1@(00000000,%d2:l),%a2
400354be:	b5c4           	cmpal %d4,%a2
400354c0:	631a           	blss 400354dc <memmove+0x40>
400354c2:	4a82           	tstl %d2
400354c4:	670c           	beqs 400354d2 <memmove+0x36>
400354c6:	d1c2           	addal %d2,%a0
400354c8:	2248           	moveal %a0,%a1
400354ca:	93c2           	subal %d2,%a1
400354cc:	1122           	moveb %a2@-,%a0@-
400354ce:	b3c8           	cmpal %a0,%a1
400354d0:	66fa           	bnes 400354cc <memmove+0x30>
400354d2:	2004           	movel %d4,%d0
400354d4:	4cd7 043c      	moveml %sp@,%d2-%d5/%a2
400354d8:	4e5e           	unlk %fp
400354da:	4e75           	rts
400354dc:	700f           	moveq #15,%d0
400354de:	b082           	cmpl %d2,%d0
400354e0:	6516           	bcss 400354f8 <memmove+0x5c>
400354e2:	4a81           	tstl %d1
400354e4:	67ec           	beqs 400354d2 <memmove+0x36>
400354e6:	2008           	movel %a0,%d0
400354e8:	d081           	addl %d1,%d0
400354ea:	10d9           	moveb %a1@+,%a0@+
400354ec:	b088           	cmpl %a0,%d0
400354ee:	67e2           	beqs 400354d2 <memmove+0x36>
400354f0:	10d9           	moveb %a1@+,%a0@+
400354f2:	b088           	cmpl %a0,%d0
400354f4:	66f4           	bnes 400354ea <memmove+0x4e>
400354f6:	60da           	bras 400354d2 <memmove+0x36>
400354f8:	2003           	movel %d3,%d0
400354fa:	7a03           	moveq #3,%d5
400354fc:	8084           	orl %d4,%d0
400354fe:	c085           	andl %d5,%d0
40035500:	66e0           	bnes 400354e2 <memmove+0x46>
40035502:	2243           	moveal %d3,%a1
40035504:	2044           	moveal %d4,%a0
40035506:	2091           	movel %a1@,%a0@
40035508:	2202           	movel %d2,%d1
4003550a:	0681 ffff fff0 	addil #-16,%d1
40035510:	2401           	movel %d1,%d2
40035512:	700f           	moveq #15,%d0
40035514:	2169 0004 0004 	movel %a1@(4),%a0@(4)
4003551a:	2169 0008 0008 	movel %a1@(8),%a0@(8)
40035520:	2169 000c 000c 	movel %a1@(12),%a0@(12)
40035526:	d1fc 0000 0010 	addal #16,%a0
4003552c:	d3fc 0000 0010 	addal #16,%a1
40035532:	b081           	cmpl %d1,%d0
40035534:	65d0           	bcss 40035506 <memmove+0x6a>
40035536:	7a03           	moveq #3,%d5
40035538:	ba81           	cmpl %d1,%d5
4003553a:	64a6           	bccs 400354e2 <memmove+0x46>
4003553c:	20d9           	movel %a1@+,%a0@+
4003553e:	5981           	subql #4,%d1
40035540:	7003           	moveq #3,%d0
40035542:	b081           	cmpl %d1,%d0
40035544:	649c           	bccs 400354e2 <memmove+0x46>
40035546:	20d9           	movel %a1@+,%a0@+
40035548:	5981           	subql #4,%d1
4003554a:	7003           	moveq #3,%d0
4003554c:	b081           	cmpl %d1,%d0
4003554e:	65ec           	bcss 4003553c <memmove+0xa0>
40035550:	6090           	bras 400354e2 <memmove+0x46>
	...
