mat February 2016
x86 assembly GAS, padding
Is it possible to pad a certain amount of times depending on the current location counter?
In NASM you can do something like this
times value - ($ $$) db 0
Is there a coresponding way of doing this using the gas syntax?
(The ammount of bytes i wish to pad is unknown, only the max number is known)
Rami February 2016
if you want to align use
.align directive, And if you want to allocate stuff by hand you need to use
.space directive. The second one should be used in the
Asked in February 2016
Viewed 1,020 times
Answered 1 times
Leave an answer
Quote of the day: live life