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