3 ms·
Not really, the other reply is right. Most registers are clobbered. FreeBASIC only passes the asm code inside the asm block directly to GAS (using the .intel_sy
by livre 6y ago
Not really, the other reply is right. Most registers are clobbered. FreeBASIC only passes the asm code inside the asm block directly to GAS (using the .intel_syntax noprefix directive). As I said, the compiler is too dumb to figure out what registers are being used so as a safety measure it clobbers almost all of them (see Register Preservation here[1]).
[1] https://documentation.help/FreeBASIC/KeyPgAsm.html https://documentation.help/FreeBASIC/KeyPgAsm.html