鱼C论坛

 找回密码
 立即注册
查看: 1481|回复: 1

年份怎么改?

[复制链接]
发表于 2014-9-17 23:15:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
<div class="blockcode"><blockquote>
assume cs:code

data segment
db 0,2,4,7,8,9

data ends

code segment

start:  mov ax,0b800h
        mov es,ax
                mov di,160*12+25*2
                push di
        
                mov ax,data
                mov ds,ax
                mov bx,5
               
        s1:        mov al,[bx]
            out 70h,al
                in al,71h
               
                mov ah,al
                mov cl,4
                shr ah,cl
                and al,00001111b
               
                add ah,30h
                add al,30h
               
                mov byte ptr es:[di],ah
                mov byte ptr es:[di+1],11001010b
                mov byte ptr es:[di+2],al
                mov byte ptr es:[di+3],11001010b
               
                cmp bx,0
                je ok
               
                add di,10
                dec bx
               
                jmp s1
               
        ok:        pop di
       
                mov byte ptr es:[di+6],'/'
                mov byte ptr es:[di+7],10100010b
                mov byte ptr es:[di+16],'/'
                mov byte ptr es:[di+17],10100010b
                mov byte ptr es:[di+26],'/'
                mov byte ptr es:[di+27],10100010b
                mov byte ptr es:[di+36],':'
                mov byte ptr es:[di+37],10100010b
            mov byte ptr es:[di+46],':'
                mov byte ptr es:[di+47],10100010b
       
               
            mov ax,4c00h
            int 21h
               
code ends
end start
               
实验14

我要把年份改一下,应该怎么写?
assume cs:code
code segment
       mov al,9
       out 70h,al
       mov al,10
       out 71h,al
        mov ax,4c00h
     int 21h
  
code ends
end

这样写,把年份改成10年,对么??


想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2014-9-17 23:16:33 | 显示全部楼层
我要把年份改一下,应该怎么写?
assume cs:code
code segment
        mov al,9
        out 70h,al
        mov al,10
        out 71h,al
         mov ax,4c00h
      int 21h
   
code ends
end

这样写,把年份改成10年,对么??
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-10-7 02:30

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表