摘要:
1 assume cs:codesg 2 3 codesg segment 4 db 'welcome to masm!' 5 6 kk: 7 mov ax,0B800H 8 mov ds,ax 9 mov bx,780H10 mov di,8011 mov si,012 mov cx,313 s1w:push cx14 mov cx,1615 s1n:16 mov al,... 阅读全文
摘要:
assume cs:code,ds:data,es:tabledata segment db '1975','1976','1977','1978','1979','1980','1981','1982','1983' db '1984','1985','1986','1987','1988','1989','1990','1991& 阅读全文
摘要:
(2)assume cs:codesg,ss:stacksg,ds:datasgstacksg segment dw 0,0,0,0,0,0,0,0stacksg endsdatasg segment db '1.display.......' db '2.brows.........' db '3.replace.......' db '4.modify........'datasg endscodesg segmentstart: mov ax,stacksg mov ss,ax mov sp,10H mov ax,d... 阅读全文
摘要:
实验5(5)assume cs:codea segment db 1,2,3,4,5,6,7,8a endsb segment db 1,2,3,4,5,6,7,8b endsd segment db 0,0,0,0,0,0,0,0d endscode segmentstart: mov ax,a mov ds,ax mov bx,0 mov cx,8s1: mov ax,b mov es,ax mov ax,0 mov al,[bx] add al,es:[bx] mov dx,d ... 阅读全文
摘要:
实验5(2)assume cs:code,ds:data,ss:stackdata segment dw 0123h,0456hdata endsstack segment dw 0,0stack endscode segmentstart: mov ax,stack mov ss,ax mov sp,16 mov ax,data mov ds,ax push ds:[0] push ds:[2] pop ds:[2] pop ds:[0] mov ax,4c00h int ... 阅读全文
摘要:
实验五(1)assume cs:code,ds:data,ss:stackdata segment dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987hdata endsstack segment dw 0,0,0,0,0,0,0,0stack endscode segmentstart: mov ax,stack mov ss,ax mov sp,16 mov ax,data mov ds,ax push ds:[0] push ds:[2] pop ds:[2] pop ds:[0] mov ax,4c00h int 21hcode ends 阅读全文