回覆列表
  • 1 # 愛逗的小夥伴

    DATAS SEGMENT

    SHIF DD 12345678H

    DATAS ENDS

    CODE SEGMENT

    ASSUME CS:CODE,DS:DATAS

    START:

    MOV AX,DATAS

    MOV DS,AX

    MOV DX,WORD PTR [SHIF+2]

    MOV AX,WORD PTR [SHIF]

    MOV CL,4

    SHL DX,CL

    MOV BL,AH

    SHL AX,CL

    SHR BL,CL

    OR DL,BL

    MOV BL,DH

    PUSH AX

    PUSH DX

    MOV DL,BL

    MOV CL,4

    SHR DL,CL

    CMP DL,9

    JL L1

    ADD DL,7H

    L1:ADD DL,30H

    MOV AH,2

    INT 21H

    MOV DL,BL

    AND DL,0FH

    CMP DL,9

    JL L2

    ADD DL,7H

    L2:ADD DL,30H

    INT 21H

    POP DX

    POP AX

    MOV BL,DL

    PUSH AX

    MOV CL,4

    MOV BL,DL

    SHR DL,CL

    CMP DL,9

    JL L3

    ADD DL,7H

    L3:ADD DL,30H

    MOV AH,2

    INT 21H

    MOV DL,BL

    AND DL,0FH

    CMP DL,9

    JL L4

    ADD DL,7H

    L4:ADD DL,30H

    INT 21H

    POP AX

    MOV BL,AH

    PUSH AX

    MOV CL,4

    MOV DL,BL

    SHR DL,CL

    CMP DL,9

    JL L5

    ADD DL,7H

    L5:ADD DL,30H

    MOV AH,2

    INT 21H

    MOV DL,BL

    AND DL,0FH

    CMP DL,9

    JL L6

    ADD DL,7H

    L6:ADD DL,30H

    MOV AH,2

    INT 21H

    POP AX

    MOV BL,AL

    MOV DL,AL

    MOV CL,4

    SHR DL,CL

    CMP DL,9

    JL L7

    ADD DL,7H

    L7:ADD DL,30H

    MOV AH,2

    INT 21H

    MOV DL,BL

    AND DL,0FH

    CMP DL,9

    JL L8

    ADD DL,7H

    L8:ADD DL,30H

    INT 21H

    MOV AH,4CH

    INT 21H

    CODE ENDS

    END START

  • 中秋節和大豐收的關聯?
  • 腦梗四個月後患腿正常,健腿膝蓋骨下邊疼痛是怎麼回事?