AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Zsnes directdraw error8/29/2023 MSVC is all straight foward about these A function call is a simple register backup, call, restore # define ASM_CALL( func) ASM_COMMAND(call _ # func) # define ASM_COMMAND3( line, var) #line ", _ "#var " \n\t " # define ASM_COMMAND2( line, part2) #line ", "#part2 " \n\t " # define ASM_COMMAND( line) #line " \n\t " All commands need quotes and a newline and tab. Simple start and end structure, set as volatile so perhaps we can use -O1+ later I added some macros for inline assembly to keep compatibility between GCC and MSVCĪSM_BEGIN is to start an assembly sectionĪSM_COMMAND is for any simple command without a, in it example: dec eaxĪSM_COMMAND2 is when a command has a, for example: add ebx, 5ĪSM_COMMAND3 is when the parameter after the, is a variable example: mov eax, my_variableĪSM_CALL is for calling another function inside assembly sectionĪsm_call() can be treated like any C function, use it to call an assembly function
0 Comments
Read More
Leave a Reply. |