Original Post
Hello
I am not familiar with assembly language. Can someone please explain what the following inline assembly is doing
VOID rtx_dbug_out_char( CHAR c )
{
asm( "sub.l #60, %a7" );
asm( "movem.l %d0-%d7/%a0-%a6, (%a7)" );
asm( "move.l 8(%a6), %d1" );
asm( "move.l #0x13, %d0" );
asm( "trap #15" );
asm( "movem.l (%a7), %d0-%d7/%a0-%a6" );
asm( "add.l #60, %a7" );
}
I am trying to build a simple real time OS. I need to allocate memory for all the OS processes. Should I do the allocation in C or assembly? Some sample code will be helpful
Thanks in advance