mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-12 01:58:24 +00:00
9 lines
247 B
ArmAsm
9 lines
247 B
ArmAsm
max:
|
|
cmpl %esi, %edi // Set condition flags
|
|
jle .IF // Conditional jump if %edi <= %esi
|
|
movl %edi, %edx // %edi -> return register
|
|
jmp .ELSE
|
|
.IF:
|
|
movl %esi, %edx // &esi -> return register
|
|
.ELSE:
|
|
ret |