osdev-jpでは、OS開発に有用な情報を収集し公開しています

View My GitHub Profile

Macでアセンブラ開発環境を整える

objdump

brew install binutils

intel記法を使いたい!

ソースの先頭に下記の記述を追加すればok

.intel_syntax noprefix

生のコードを手に入れよう!

例: 16bit

gcc -c -Wall -o hello.o hello.s
gobjcopy --only-section=.text --output-target binary hello.o hello.bin