mirror of
https://github.com/libretro/x86-assembly-cheat.git
synced 2026-11-07 12:47:59 -10:00
20 lines
241 B
NASM
20 lines
241 B
NASM
; # ADD
|
|
|
|
%include "lib/asm_io.inc"
|
|
|
|
ENTRY
|
|
mov eax, 0
|
|
add eax, 1
|
|
ASSERT_EQ 1
|
|
|
|
mov eax, 0
|
|
mov ebx, 1
|
|
add eax, ebx
|
|
ASSERT_EQ 1
|
|
|
|
; ERROR: second register must be same size
|
|
;add ax,al
|
|
;add ax,eax
|
|
|
|
EXIT
|