Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MFP lab 6
- 1. BCD to binary
- code segment
- assume cs:code
- MOV CX,00
- mov BX, 1124h
- mov AX, bx
- and AX,0f000h
- rcr AX,12
- mov DX,1000
- mul DX
- add CX,AX
- mov AX,BX
- and AX, 0f00h
- rcr AX,08
- mov DX,100
- mul DX
- add CX,AX
- mov AX,BX
- and AX,00f0h
- rcr AX,4
- mov DX,10
- mul DX
- add CX,AX
- mov AX,BX
- and AX,000fh
- add CX,AX
- int 3
- code ends
- end
- 2. ASCII to binary
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement