1AssumeCS:Code2 3 Code Segment4 Start:5 movAx,code6 movDs,ax7 movSi,offset do08 movAx09 movEs,axTen movdi,200h One movcx,offset do0end-offset do0 A CLD - Rep MOVSB - the movAx0 - movDs,ax - movWord ptrds:[0],200h - movWord ptrds:[2],0 + - movax,4c00h + int21h A at Do0: - jmpShort Do0start - Do0str: -Dw1 -Db'Divide error!' - Do0start: in movAx,cs - movDs,ax to movsi,202h + - movax,0b800h the movEs,ax * movdi,7c8h $ movCx -Panax Notoginseng ;mov cx,ds:[202h] - S: the movAlds:[si+2] + mov es:[Di],al A Incsi the AddDi2 + Loop S - $ movax,4c00h $ int21h - - movAxds:[202h] the IncAx - mov ds:[202h],axWuyi the PushCX - movCx5 Wu DS0: - PushCX About movCX,0FFFFH $ DS1: - Loop DS1 - PopCX - Loop Ds0 A PopCX + the Iret - $ Do0end: the NOP the the code ends theEnd Start
shiyan12.asm
1AssumeCS:Code2 3 Code Segment4 Start:5 movAx06 movBx07 DivBX8 9 movax,4c00hTen int21h One A code ends -End Start
12fushu.asm
Assembly Language Experiment 12