https://gist.github.com/anonymous/d5fa2a96a6e1d17bb43a
as -o hello64.o hello64.s && ld -o hello64 hello64.o && ./hello64
rax rbx rcx rdx 不能混用嗎?
mov $4, %rax
mov $1, %rbx
mov $msg, %rcx
mov $len, %rdx
如果改成現在這樣編譯執行就不對
mov $4, %rbx
mov $1, %rax
mov $4 跟 mov $1 我看不出來用那個暫存器
謝謝