count of +ve/-ve
Fri May 10 2024 08:44:04 GMT+0000 (Coordinated Universal Time)
Saved by
@exam123
//not there
org 100h
mov BL,00H
mov BH,00H
mov SI,1100H
MOV CL,01H
MOV CH,[SI]
INC SI
LOOP:MOV AL,[SI]
SHL AL,CL
JC NEGATIVE
INC BL
JMP NEXT
NEGATIVE:INC BH
NEXT:ADD SI,01H
DEC CH
JNZ LOOP
MOV [1200H],BL
MOV [1201h],BH
HLT
content_copyCOPY
Comments