|

楼主 |
发表于 2005-4-26 11:20:00
|
显示全部楼层
附加题:<br>/ F' O$ k+ ^! s& g
data SEGMENT<br>
. O& ^* R3 X- n8 A7 X {data1 DB ' 12345',10,13,'+'<br>
, O' L1 H8 t0 A* O7 }" u% j/ \. ^data2 DB '67890',10,13,'------',10,13,' '<br>1 K0 \% e$ p' q# y0 s7 e$ J# ^+ r
data3 DB 6 DUP(?),'$'<br>
6 C) G4 l$ C, T4 Gdata ENDS<br>4 t) {/ T% x; r. l- G8 n# F
code SEGMENT<br> ASSUME CS:code,DS:data<br>" ?' n8 ^+ q6 F, Q$ |. F
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>5 S* s, l$ Z9 D, D' P8 B( q- p
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>) d% ^/ q% x8 V4 ]5 R
d0: MOV [data3-1],31h<br> JMP d2 <br>0 [" A( Z5 A) A8 V1 L* N7 E
d1: MOV [data3-1],20h<br>! h6 K* r8 f6 P7 J8 U
d2: MOV DX,OFFSET data1<br> MOV AH,09h<br> INT 21h<br> MOV AH,4ch<br> INT 21h<br>: s" h8 F9 s% U: m& l8 u! I( W
code ENDS<br> END start<br>) i; k- J7 W/ N8 ` Y* q0 V1 r7 I
|
|