您好,欢迎光临江苏自考网(www.jiangsuzikao.com)!

咨询电话:025-83235887 / RSS地图 / 网站地图
自考专题:

北大“接口技术”上机类型题目及答案(3)

发布时间:2018-05-23编辑整理:江苏自考网浏览次数:(

来源:江苏自考网 时间:2018-05-23 12:27:48

  10. 8253通道0方式0,计数值为0Fh,手动逐个输入脉冲,从计算机显示器上显示对应的数。

  code segment

  assume cs:code

  start: mov dx,283h

  mov al,10h

  out dx,al

  mov dx,280h

  mov al,0fh

  out dx,al

  l1: mov dx,280h

  in al,dx

  call disp

  mov ah,1

  int 16h

  jz l1

  mov ah,4ch

  int 21h

  disp proc near

  push dx

  and al,0fh

  mov dl,al

  cmp dl,9

  jbe num

  add dl,7

  num: add dl,30h

  mov ah,02h

  int 21h

  mov dl,0dh

  int 21h

  mov dl,0ah

  int 21h

  pop dx

  ret

  disp endp

  code ends

  end start

  11. 8253通道0方式0,从8255C口读入计数值,手动逐个输入脉冲,从A口输出在数码管显示其值。

  code segment

  assume cs:code

  start: mov dx,28bh

  mov al,88h

  out dx,al

  mov dx,28ah

  in al,dx

  mov cl,4

  shr al,cl

  and al,0fh

  mov bl,al

  mov dx,283h

  mov al,10h

  out dx,al

  mov al,bl

  mov dx,280h

  out dx,al

  l1: mov dx,280h

  in al,dx

  mov dx,288h

  out dx,al

  mov ah,1

  int 16h

  jz l1

  mov ah,4ch

  int 21h

  code ends

  end start

  12. 8253通道1方式1(硬件可重触发),计数值0Fh,用8255A口输出在数码管显示值,有键按下返回DOS,无键按下继续执行。

  data segment

  led db 3fh,06h,5bh,4fh,66h,6dh,7dh,07h,7fh,6fh,77h,7ch,39h,5eh,79h,71h

  data ends

  code segment

  assume cs:code,ds:data

  start: mov ax,data

  mov ds,ax

  lea bx,led

  mov dx,28bh

  mov al,80h

  out dx,al

  mov dx,283h

  mov al,52h

  out dx,al

  mov al,0fh

  mov dx,281h

  out dx,al

  l1: mov dx,281h

  in al,dx

  xlat

  mov dx,288h

  out dx,al

  push dx

  mov ah,06h

  mov dl,0ffh

  int 21h

  pop dx

  jz l1

  mov ah,4ch

  int 21h

  code ends

  end start

  13. 8253通道1方式0,计数值为0Fh,手动逐个输入脉冲,用8255C口输出在数码管显示其值,并在计算机显示器显示,但计算机上显示顺序为0~F递增。

  data segment

  led db 3fh,06h,5bh,4fh,66h,6dh,7dh,07h,7fh,6fh,77h,7ch,39h,5eh,79h,71h

  data ends

  code segment

  assume cs:code,ds:data

  start: mov ax,data

  mov ds,ax

  lea bx,led

  mov dx,28bh

  mov al,80h

  out dx,al

  mov dx,283h

  mov al,50h

  out dx,al

  mov al,0fh

  mov dx,281h

  out dx,al

  l2: mov dx,281h

  in al,dx

  call disp

  xlat

  mov dx,28ah

  out dx,al

  mov ah,1

  int 16h

  jz l2

  mov ah,4ch

  int 21h

  disp proc near

  push dx

  push ax

  mov cl,0fh

  sub cl,al

  mov al,cl

  cmp al,0ah

  jb d1

  add al,07h

  d1: add al,30h

  mov dl,al

  mov ah,02h

  int 21h

  mov dl,0dh

  int 21h

  mov dl,0ah

  int 21h

  pop ax

  pop dx

  ret

  disp endp

  code ends

  end start

以上就是关于“北大“接口技术”上机类型题目及答案(3)”的全部内容,想获取更多江苏自考的相关资讯,如江苏自考常见问题、院校动态,政策公告,考试题库,复习备考、专业目录。敬请关注下方“江苏自考微信公众号”或加入“江苏自考考生交流群”和千万自考生一起学习,共同进步~
欢迎关注“江苏自考网微信公众平台
江苏自考网微信公众平台
(自考资讯,一手掌握!)
欢迎加入“江苏自考网微信交流群
江苏自考网微信交流群
(扫码进群,领取《 备考资料和备考方案 》哦!)
8888人已通过
开始测试

江苏自考网》免责声明:

(一)由于考试政策等各方面情况的不断调整与变化,本网站所提供的考试信息仅供参考,请以省考试院及院校官方发布公布的正式信息为准。

(二)本站文章内容信息来源出处标注为其他平台的稿件均为转载稿,免费转载出于非商业性学习目的,版权归原作者所有。如您对内容、版权等问题存在异议请与本站联系,我们会及时进行处理解决,联系邮箱:952056566@qq.com。

报考提醒

报名入口 查询系统

自考交流群

咨询老师

扫一扫,加入江苏自考交流群免费送《备考资料和备考方案》

扫一扫,加入“江苏自考交流群”
进群领取《备考资料和备考方案》

报考服务

025-83235887