Tuesday, June 26, 2012

47. SEPARATING +VE & -VE 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