mirror of
https://github.com/vivier/EMILE.git
synced 2024-11-13 15:05:05 +00:00
39 lines
501 B
ArmAsm
39 lines
501 B
ArmAsm
/*
|
|
*
|
|
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
*
|
|
*/
|
|
|
|
.global _start
|
|
_start:
|
|
/* identify system */
|
|
|
|
bsr arch_init
|
|
|
|
/* initialize console, so we can debug ;-) */
|
|
|
|
bsr console_init
|
|
|
|
/* initialize memory, so we can work */
|
|
|
|
bsr memory_init
|
|
|
|
/* retrieve machine info */
|
|
|
|
bsr bootinfo_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
|