把30H的内容拆开,高4位送31H,低4位送32H低4位。31H、32H高4位清零。 请编程实现。
答案:2 悬赏:0
解决时间 2021-03-12 22:35
- 提问者网友:迷茫庸人
- 2021-03-12 10:46
单片机基础 编程题,跪求答案
最佳答案
- 二级知识专家网友:厭世為王
- 2021-03-12 11:24
dseg segment
org 30h
a1 db 34h
a2 db 0
a3 db 0
dseg ends
cseg segment
assume cs:cseg, ds:dseg
start:
mov ax,dseg
mov ds, ax
mov al, a1
mov ah,a1
shr ah,4
and al,0Fh
and ah, 0F0h
mov a2,al
mov a3,ah
mov ah,4ch
int 21h
cseg ends
end start
org 30h
a1 db 34h
a2 db 0
a3 db 0
dseg ends
cseg segment
assume cs:cseg, ds:dseg
start:
mov ax,dseg
mov ds, ax
mov al, a1
mov ah,a1
shr ah,4
and al,0Fh
and ah, 0F0h
mov a2,al
mov a3,ah
mov ah,4ch
int 21h
cseg ends
end start
全部回答
- 1楼网友:野心和家
- 2021-03-12 12:30
ot
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯