mirror of
https://github.com/vivier/EMILE.git
synced 2024-10-09 19:56:06 +00:00
35 lines
485 B
ArmAsm
35 lines
485 B
ArmAsm
|
/*
|
||
|
*
|
||
|
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
.global _start
|
||
|
_start:
|
||
|
/* initialize console, so we can debug ;-) */
|
||
|
|
||
|
bsr console_init
|
||
|
|
||
|
/* retrieve machine info before we make the mess */
|
||
|
|
||
|
bsr bootinfo_init;
|
||
|
|
||
|
/* initialize memory, so we can work */
|
||
|
|
||
|
bsr memory_init
|
||
|
|
||
|
/* allocate stack, so we can jump */
|
||
|
|
||
|
pea 0x2000
|
||
|
bsr malloc
|
||
|
add.l #0x2000 - 16, %d0
|
||
|
move.l %d0, %sp
|
||
|
|
||
|
/* begin to work */
|
||
|
|
||
|
bsr main
|
||
|
|
||
|
/* We guess to never come here */
|
||
|
loop:
|
||
|
bra loop
|