Search code examples
assemblystacknasmgnu-assembler

How to translate NASM "push byte" to GAS syntax?


I'm "porting" a NASM source to GAS and I found the following lines of code:

push byte 0
push byte 37

GAS doesn't allow "push byte" or "pushb".

How should I translate the above code to GAS syntax?

Thanks


Solution

  • pushb was removed from GAS. You should be able to use the push command to get the same effect. A little more information is here.