mirror of
https://github.com/libretro/x86-assembly-cheat.git
synced 2026-11-07 12:47:59 -10:00
22 lines
265 B
NASM
22 lines
265 B
NASM
; # SBB
|
|
|
|
; Subtraction with borrow:
|
|
|
|
; edx:eax -= ebx:ecx
|
|
|
|
%include "lib/asm_io.inc"
|
|
|
|
ENTRY
|
|
mov eax, 0
|
|
mov ebx, 0
|
|
mov ecx, 0x80000000
|
|
mov edx, 1
|
|
|
|
sub eax, ecx
|
|
sbb edx, ebx
|
|
|
|
ASSERT_EQ 0x80000000
|
|
ASSERT_EQ edx, 0
|
|
|
|
EXIT
|