例1

例1 - 1: data segment para `data' d0...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
例 1: 例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例例 例例例 data segment para ‘data’ d0 db odh, oad d1 db ‘Abcdef123Lnop’, ‘$’; 例例例例例 data ends mycode segment para ‘code’ assume cs:mycode, ds:data, es:data main proc far start例 push ds push ax xor ax,ax mov ax,data mov ds,ax mov es, ax call tt ;例例例例例例例例例例例 lea di, d1 call tt1 ;例例例例例例例例例例例例例例例例例例例 call tt ;例例例例例例例例例例例例例 lea di,d1 call tt2 ;例例例例例例例例例例例例例例例例例例例 call tt ;例例例例例例例例例例例例例 ret main endp tt1 proc go: mov a1,[di] ; 例例例例例 cmp al, ‘$’ jz go2 cmp al, ‘A’ jb go1 cmp al,’Z’ ja go1 add byte ptr[di], 20h go1: inc di jmp go go2: ret tt1 endp tt2 proc ;例例例例例 gq: mov al,[di] cmp al, ‘$’ 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
jz gq2 cmp al, ‘a’ jb gq1 cmp al, ‘z’ ja gq1 sub byte ptr[di], 20h gq1: INC di jmp gq gq2: ret tt2 endp tt proc 例例例例例例 lea dx,do mov ah, 9 int 21h ret tt endp mycod ends end start 例 2例 例 NUMBYN 例例例例例例例例例例例例例例例 BCD 例例例 NUMBCD 1 (例例)例NUMBCD 2 (例例)例 NUMBCD 3 (例例)例例例例例例例例例例例例例例例例例例例例例 例例例例例 例例例例例例例例例例 NUBYN=E7H=231 例例例例例例例 E7H÷100=2 例 31(1F) 例例例例 1FH÷10=3 例 1 例例例例例例例例例例例例例例 BCD 例例例例例例例例 02H例例例例例 03H例例例例 01H例例例例例例例例例例例例例例 ASCII 例例例例例例例 例例例 data segment para ‘dat’ do
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

例1 - 1: data segment para `data' d0...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online