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.