section .data
result db 0 ; 結果を格納
section .text
global _start
_start:
; 10 + 20 を計算
mov eax, 10 ; EAXに10をセット
add eax, 20 ; EAXに20を加算
mov [result], eax ; 結果をメモリに保存
; プログラム終了
mov eax, 1
mov ebx, 0
int 0x80
To embed this project on your website, copy the following code and paste it into your website's HTML: