Back to Browse

Max element in an array (Inline assembly)

519 views
Jul 21, 2020
9:56

Using the cmov, cmp and other instructions find the maximum element in an array. This example uses the 'cmovg' instruction - An alternate way to do this is by using the 'cmovnl' instruction. Source code can be found here: https://github.com/vishmohan/inline_assembly_examples/tree/master/max

Download

0 formats

No download links available.

Max element in an array (Inline assembly) | NatokHD