- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I am trying to convert this for loop in C++ to ASM: [CODE] for(x=y; (x>=y) && (array[x-z]>temp); x=x-z) { array[x] = array[x-z]; } [/CODE] This is what I have so far: [CODE] mov ax, y mov x, y for_loop: mov ax, x cmp ax, z jl exit_for_loop ........... .. Array … |
|
I am converting an MASM procedure to MIPS. Here's the MASM: [code] ; -------------------------------------------------------- ; Find basic list stats - minimum, median, and maximum. ; Arguments passed: ; list, addr (4) ; length, value (6) ; minimum, addr (8) ; maximum, addr (10) ; median, addr (12) stats1 proc near … |
|
I have written a code that prints array in 6 columns: [code] # ----- # Print array elements. li $t1, 0 la $s0, py_sars print_lp1: bgt $t1, 59, print_end1 lw $a0, 0($s0) #get the value pointed by s0 li $v0, 1 #print int syscall la $a0, space li $v0, 4 … |