Question

I've searched all over the internet and I can't find the equivalent of the following in AT&T syntax. How is this done in INTEL?

 %assign SYS_EXIT 1
 %assign SYS_WRITE 4
 %assign SYS_READ 3
 %assign SYS_OPEN 5
 %assign SYS_CLOSE 6
 %assign SYS_CREATE 8

Using AS - the portable GNU assembler.

Was it helpful?

Solution

I believe that would be something like

SYS_EXIT EQU 1
SYS_WRITE EQU 4
...
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top