Monday, 17 June 2013

54. SEPARATING POSITIVE & NEGATIVE NUMBERS


MOV SI,1100
      MOV CX,0A
      MOV AL,00
L2: MOV BX,[SI]
      ADD BX,00H
      JS L1
      INC SI
      INC AL

      DEC CX
      JNZ L2
      JMP L3
L1: INC SI
      INC AH
      DEC CX
      JNZ L2
L3: HLT


Need the code??

No comments:

Post a Comment