博文
把一个100D个字的DATA区里的最小偶数找出(2006-11-05 13:52:00)
摘要:把一个100D个字的DATA区里的最小偶数找出来,区里的数是我编程序时自己设好的,大家可以改一下啊!
data_seg segment DATA dw 99,100,98 dup(7) TEMP dw 100(?)data_seg endscode_seg segment assume cs:code_seg,ds:data_segstart: mov ax,data_seg mov ds,ax mov cx,100 mov bx,0 mov ax,0 mov si,axagain: mov dx,DATA[si] and dx,1h jnz continue mov TEMP[si],dxcontinue: inc bx add si,2 loop again &nbs......
最简单的一个汇编程序(2006-11-05 13:47:00)
摘要:这是一个在屏幕上输一个小写字母,然后被转化为一个大写字母显示出来,看看吧,变得不怎么样,不过实现了。
code segment assume cs:codestart: mov ah,1 int 21h cmp al,'a' jb exit_0 cmp al,'z' ja exit_0 sub al,20h mov dl,al mov ah,2 int 21hexit_0: mov ah,4ch int 21hcode endsend start......
