[Solved]Convert Gas Nasm Data Array Long 3 2 6 4 1 Count Long 5 Text Globl Main Main Mov Count Ecx Q37183834
Convert from GAS to NASM
.dataarray: .long 3, 2, 6, 4, 1count: .long 5.text.globl _main_main:mov count, %ecxdec %ecxouterLoop:push %ecxlea array, %esiinnerLoop:mov (%esi), %eaxcmp %eax, 4(%esi)jg nextStepxchg 4(%esi), %eaxmov %eax, (%esi)nextStep:add $4, %esiloop innerLooppop %ecxloop outerLoopmovl $1, %eaxmovl $0, %ebxint $0x80.end
Expert Answer
Answer to Convert from GAS to NASM .data array: .long 3, 2, 6, 4, 1 count: .long 5 .text .globl _main _main: mov count, %ecx dec %… . . .
OR

