|
楼主 |
发表于 2005-4-26 11:20:00
|
显示全部楼层
附加题:<br>6 }7 ^) r. w1 |" y9 ~; J, I
data SEGMENT<br>
" Y! R% U4 q& `% A# c7 A' rdata1 DB ' 12345',10,13,'+'<br>
! _1 N9 c" [ m" Y7 q# G, Sdata2 DB '67890',10,13,'------',10,13,' '<br>0 k8 o$ W0 p' r0 H* O$ t+ P
data3 DB 6 DUP(?),'$'<br># V; x$ s1 C H/ l" o
data ENDS<br>5 m0 K& B& m k) @; `. y
code SEGMENT<br> ASSUME CS:code,DS:data<br>
8 A5 |; F: w: h/ f/ g1 A; ^start: MOV AX,data<br> MOV DS,AX<br> LEA SI,data1<br> LEA DI,data2<br> LEA BX,data3<br> CLC<br> MOV CX,5 <br> <br>& E! t6 s! W% x7 v2 N
again1: MOV AL,[SI+5]<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 again1<br> JNC d1 <br>; r N4 E& X9 s# K
d0: MOV [data3-1],31h<br> JMP d2 <br>. s. }" i3 b4 ?6 ]) p
d1: MOV [data3-1],20h<br>% P h, ^4 g. _4 q" K+ r% H
d2: MOV DX,OFFSET data1<br> MOV AH,09h<br> INT 21h<br> MOV AH,4ch<br> INT 21h<br>" V3 y$ F% i$ c2 W
code ENDS<br> END start<br>
+ h: } v9 z! C2 P2 ~ |
|