For the GNU assembler...

is it acceptable to do

#pragma asm

#pragma endasm
or

#pragma __asm__

#pragma endasm