Page 1 of 1

Anyone have some yasm macros?

Posted: Sun Jun 07, 2009 9:06 pm
by earlz
Hi, I'm needing to make a glue library for my system calls, as they basically must be written completely in assembly... I do not know gas syntax, and I hate mixing lots of .intel_syntax crap.. so I am just going to go all out and completely implement a small glue library in assembly, for C interfacing. (this is bare minimum.. not really intended for application use, rather for the libc and whatever kernel API I create)

Well, I don't like doing the whole [ebp+4] and such things, and really I don't like programming in assembly much... anyway! onto my question..

Anyway have a set of macros created so I can easily get parameters off of the stack, and create stack-local variables and also something for calling a C function with parameters would be nice.. (It sounds so common that people had ot have created some.. but googling yields nothing for me but the yasm and nasm manual about macros)

I know I can implement these myself in an hour or two.. but I'm lazy and I know someone else had ot have already done it..