/************************************************************************/
/* CQBBEL GNU CC Common Control Software / (C) Toshio MURAI 2011, 2012	*/
/*      This is Free Software;   You can redistribute this software     */
/*      and/or modify it under the terms of the GNU General Public      */
/*      License version 3, or (at your option) any later version.       */
/************************************************************************/

	.text

	.extern		_main
	.extern		_systemStack

	.global	_start
_start:

	mov.l	_init_addr,r1
	jsr	@r1	
	nop
	mov.l	_start_addr,r1
	jsr	@r1	
	nop

	.align 4
_init_addr:
	.long	_initializeMemory
_start_addr:
	.long	_main

	.global	_interruptEnable
_interruptEnable:
	stc	sr,r1
	mov	#0xF0, r2
	not	r2,r2
	and	r2,r1
	add	#0xE0,r1
	ldc	r1,sr
	rts
	nop
	nop


	.global	_interruptDisable
_interruptDisable:

	rts
	nop
	nop
