CODE SEGMENT ASSUME CS:CODE DATA_NUM DB 12H,23H,34H,45H,4 DUP(0) START: PUSH CS POP DS PUSH CS POP ES LEA SI,DATA_NUM MOV DI,SI ADD DI,4 CLD MOV CX,4 @M1: LODSB MOV BL,AL ROR BL,4 AND BL,0FH SHL BL,1 MOV BH,BL SHL BL,2 ADD BL,BH AND AL,0FH ADD AL,BL STOSB LOOP @M1 MOV AH,4CH INT 21H CODE ENDS END START
CODE SEGMENT ASSUME CS:CODE DATA_NUM DB 12H,23H,34H,45H,4 DUP(0) START: PUSH CS POP DS PUSH CS POP ES LEA SI,DATA_NUM MOV DI,SI ADD DI,4 CLD MOV CX,4 @M1: LODSB MOV BL,AL ROR BL,4 AND BL,0FH SHL BL,1 MOV BH,BL SHL BL,2 ADD BL,BH AND AL,0FH ADD AL,BL STOSB LOOP @M1 MOV AH,4CH INT 21H CODE ENDS END START