i need sort through array , sort each individual row in array in ascending order.  doesn't seem going (surprise!) keep getting hit 2 errors:   a2101: cannot add 2 relocatable labels , a2026: constant expected   here's sort, makes sense me, think i'm still trying implement high-lvl language techniqes assembly.  there way around not being able use relative values?  (the array 7 rows 9 columns, btw).   mov cx, 7; cx = number of rows  outer: ; outer loop  walk through rows    push cx    mov cx, 9   mov row, cx ;rows      middle: ; middle-loop walk through columns        push cx       sub cx, 1  ;cx = cx-1       mov column, cx  ;columns           inner:  ;inner loop - compare , exchange column values                    cmp marray[row*9 + column], marray[row*9 + column+1]                   xchg marray[row*9 + column+1], marray[row*9 + column]                   ; compare , exchange values marray table                   inc column           loop inner        pop cx     loop mid...
 
Comments
Post a Comment