2个字节的bcd码转化为4个字节的bcd码
我想把bcd变量中2个字节的bcd码转化为4个字节的bcd码,请懂的帮忙code segment
assume cs:code
bcd db 12h,34h
bcd2 db 0,0,0,0
start: mov al,bcd
接下来怎么编?
jmp _start
bcd1 db 12h,34h
bcd2 db 0,0,0,0
_start:
mov ax,bcd1
mov ds,ax
mov ax,bcd2
mov es,ax
mov cl,4
xor ax,ax
mov al,
shl ax,cl
shr al,cl
mov ,ah
mov ,al
xor ax,ax
mov al,
shl ax,cl
shr al,cl
mov ,ah
mov ,al
页:
[1]