看板 ASM 關於我們 聯絡資訊
我最近在GCC上寫了一點ASM, 例如: GCC C extension: asm ("mov %0, %1 " : "=a" (a) : "b" (b)); 如果compile成組語就是: mov eax, ebx 但是我發現『mov eax, ebx』這個指令與我在使用MASM的意義是不一樣的。 在MASM中的意義是copy ebx to eax, 但是 GNU assembler -- as 的意義卻是copy eax to ebx。 我剛始不知道,試了一會才發現這個差異性, 請問這是不是 as 的特色? 這些特色是不是在是不是有說明書可以查? -- Albert Einstein : If there is any religion that could cope with modern scientific needs it would be Buddhism. 《金剛經》一切有為法 如夢幻泡影 如露亦如電 應作如是觀 http://web.cc.ncu.edu.tw/~93501025/jg.doc -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.200.121
jeunder:AT&T syntax 和 Intel syntax 習慣上的差異而已... 04/23 07:15
jeunder:看一下 as 的文件就有詳細說明了 04/23 07:16
zxvc:謝謝樓上。 04/23 07:34
final01:74篇有提到 04/23 14:17