|
data SEGMENT<br>. r& p0 y, `$ ^( t/ q0 E, [
data1 DB'72355+'<br>
9 g0 U, Q8 u3 a `# U/ Vdata2 DB'45664= '<br>
/ c w. P( H% I6 n! f) M$ ~0 Z+ qdata3 DB 6 DUP(?),'$'<br>- I, G) p* F1 U" K5 ]
data ENDS<br>' Y3 O% T! N7 l. M# S
code SEGMENT<br>
4 E. c5 K7 t6 e* R; O" lASSUME CS:code,DS:data<br>: u: Z, _+ g- ~, x& u
start: MOV AX,data<br> MOV DS,AX<br> LEA SI,data1<br> LEA DI,data2<br> LEA BX,data3<br> MOV CX,5<br> CLC<br>
6 t7 w6 R4 R) M6 ?" K: [, a, ]8 cl1: MOV AL,[SI+4]<br> ADC AL,[DI+4]<br> AAA<br> PUSHF<br> ADD AL,30h<br> POPF<br> MOV [BX+4],AL<br> DEC SI<br> DEC DI<br> DEC BX<br> LOOP l1<br> JNC l21<br>5 q8 d w: L- {8 Z/ @
l2: MOV [data3-1],31h<br> JMP l22<br>
1 I1 F/ ^' j- m; L# n9 c El21: MOV [data3-1],20h<br>
: \- o* L" f1 |l22: MOV DX,OFFSET data1<br> MOV AH,09h<br> INT 21h<br> MOV AH,4ch<br> INT 21h<br># f+ ?3 x1 d9 N0 { E) i" Q" Q* `
code ENDS<br> END start <br>
0 V$ [$ |) ^6 o+ U |
|