mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-01-12 01:58:24 +00:00
10 lines
244 B
ArmAsm
10 lines
244 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
|