1. AT&T -> Intel 간 신택스 전환
http://stackoverflow.com/questions/549347/how-to-use-address-constants-in-gcc-x86-inline-assembly
2. Constraint
http://gcc.gnu.org/onlinedocs/gcc/Constraints.html
http://stackoverflow.com/questions/2489824/calling-assembly-in-gcc (+, = )
3. 현재주소 '.'
4. 상수 $0x1000
5. 레지스터 오퍼랜드 방향 바뀜, 소스, 데스티네이션
mov %eax, %ebx
6. far 점프 대신 ljmp 세그먼트, 오프셋
7. C언어, C++, 어셈블리어 연결
http://wiki.osdev.org/C%2B%2B_to_ASM_linkage_in_GCC
8. GCC 인라인 어셈블리어에서 C함수 호출
http://stackoverflow.com/questions/3446004/gcc-inline-assembly-call-dword-ptr
8. 인라인 어셈블리 위키
http://en.wikibooks.org/wiki/X86_Assembly/GAS_Syntax
'CLKH64 OS > 10장' 카테고리의 다른 글
SwitchMode.o: Inline Assembly 버전 및 파이썬 스크립트 수정 (0) | 2013.01.12 |
---|---|
10장 CPUID, GCC Inline Assembly 이용해서 작성하기 (0) | 2013.01.11 |