13.04.2013, 16:26
(
Последний раз редактировалось Y_Less; 16.04.2013 в 19:39.
)
// Looks pretty much like inline assembly
@emit proc ;
@emit push_s 12;
@emit push_c 4;
@emit sysreq_d GetNativeAddressFromName("print");
@emit stack 8;
@emit retn ;
Ha! You beat me to it... There is a note on the corner of the bit of paper in front of me that just says "@emit", reminding me to write exactly that macro later tonight (I went for @emit instead of just emit as I thought it looked more like #emit, but that's a minor point).
|
Wonderful! I just wrote a new new macro for asm.inc using this trick
![]() pawn Код:
Oh, and today I learned how to include spaces in macros! |
#define @emit%0\32;%1\32;%2\10; asm_emit_%1(ctx, %2);