Skip to main content
gamedev.net
🔒 Locked

Assembly

Started by Tiger99 0 replies 250+ views
Original Post
Tiger99
Tiger99
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
Shannon Barber
Shannon Barber
moved
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.