The assembler is not NASM nor MASM, so what's it?

–2 votes
asked Jul 22 by H.C. Chen (130 points)

To the example code, I only change '%eax' to '1234' and it failed!! So what's the assembler? it's not NASM, it's not MASM. I need to know what's it so as to find its document to know about the syntax. Thank you very much. 

My code

# Welcome to GDB Online.

# GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,

# C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.

# Code, Compile, Run and Debug online from anywhere in world.

.data

.text

.global main

main:

# your code goes here

xor %eax, 1234

ret

 

The error message

Segmentation fault                                                                                                                                   
...Program finished with exit code 139                                                                                                               
Press ENTER to exit console.      

1 Answer

0 votes
answered Jul 22 by Peter Minarik (4,550 points)
selected Jul 22 by H.C. Chen
 
Best answer

I do not do assembly programming, but I'd assume it's the GNU Assembler you're after.

commented Jul 22 by H.C. Chen (130 points)
100% correct. Because I tried the example on that Wikipedia page and it worked.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...