-1

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)

mat
  • 77
  • 1
  • 1
  • 6

1 Answers1

1

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 .bss section.

Rami
  • 73
  • 6