摘要: assume cs:code data segment db 10 dup (0) data ends code segment start: mov ax,12666 mov bx,data mov ds,bx mov si,0 call dtoc mov dh,8 mov dl,3 mov cl 阅读全文
posted @ 2022-05-31 13:58 moon_orange 阅读(85) 评论(0) 推荐(0) 编辑
摘要: assume cs:code code segment start: mov ax,4240h ; low 16 bit of dividend mov dx,000fh ; high 16 bit of dividend mov cx,0ah ; divisor call divdw mov ax 阅读全文
posted @ 2022-05-31 13:52 moon_orange 阅读(44) 评论(0) 推荐(0) 编辑
摘要: assume cs:code data segment db 'welcome to masm',0 data ends code segment start: mov dh,8 ; row number mov dl,3 ; col number mov cl,2 ; color mov ax,d 阅读全文
posted @ 2022-05-31 13:51 moon_orange 阅读(22) 评论(0) 推荐(0) 编辑
摘要: assume cs:code code segment start: mov ax,0 mov es,ax mov di,200h mov ax,cs mov ds,ax mov si,offset lp mov cx,offset lp_end - offset lp cld rep movsb 阅读全文
posted @ 2022-05-31 13:47 moon_orange 阅读(15) 评论(0) 推荐(0) 编辑
摘要: assume cs:code code segment start: mov ax,0 mov es,ax mov di,200h mov ax,cs mov ds,ax mov si,offset show_str mov cx,offset show_str_end - offset show_ 阅读全文
posted @ 2022-05-31 13:45 moon_orange 阅读(32) 评论(0) 推荐(0) 编辑