首页 > 代码库 > 汇编字符显示

汇编字符显示

 1 DSEG    SEGMENT 2  3 DATA    DW    0A93EH 4  5 DSEG    ENDS 6 CSEG    SEGMENT                      ;设置代码段 7         ASSUME    CS:CSEG,DS:DSEG 8 START:  9         MOV AX , DSEG10         MOV DS , AX11         MOV CL , 4H              ;循环左移位数12         MOV    BX , DATA13 14         ROL BX , CL15         MOV DX , BX16         AND DX , 000FH17         CMP DL , 1018         JC    INT119         ADD DL , 7H20 INT1:21         ADD DL , 30H22         MOV AH , 223         INT 21H24 25 26         ROL BX , CL27         MOV DX , BX28         AND DX , 000FH29         CMP DL , 1030         JC    INT231         ADD DL , 7H32 INT2:33         ADD DL , 30H34         MOV AH , 235         INT 21H36 37 38         ROL BX , CL39         MOV DX , BX40         AND DX , 000FH41         CMP DL , 1042         JC    INT343         ADD DL , 7H44 INT3:45         ADD DL , 30H46 47         MOV AH , 248         INT 21H49 50 51         ROL BX , CL52         MOV DX , BX53         AND DX , 000FH54         CMP DL , 1055         JC    INT456         ADD DL , 7H57 INT4:58         ADD DL , 30H59         MOV AH , 260         INT 21H61 62         MOV    AX,    4C00H             ;返回DOS63         INT    21H                    64 CSEG    ENDS                     ;代码段结束65 66 END    START                 ;汇编语言源程序结束

 

汇编字符显示