next up previous
Next:Rex86 Sample - String to Int With Negatives Up: Overview Previous: Rex86 Sample - Pythagoras


Rex86 Sample - Reverse List

POINT   CX,{3 4 5 6}
POINT   AX,0

;loop
FETCH   BX,CX
COND    !   done

MOV     DX,0
APPEND  DX,BX   INTEGER
APPEND  DX,AX   INTS
MOV     AX,DX

JMP     loop

;done
OUTPUT  INTS


next up previous
Next:Rex86 Sample - String to Int With Negatives Up: Overview Previous: Rex86 Sample - Pythagoras

by dlong@progmatism.com. Plz don't copy kthx.