AX 컨텐츠 순서 거꾸로 정렬

759 단어
;P99,5.13,ax    
;  ,ax        cf ,bx     cf   bx    ,
;  16    ax16        bx 

DATA SEGMENT

DATA ENDS

CODE SEGMENT
    ASSUME CS:CODE,DS:DATA
 START: 
    MOV AX,DATA
    MOV DS,AX

    MOV AX,1011100011110000B            ;B8F0
    MOV CX,16
;       AX,0000111100011101B        ;OF1D

 XH:    RCL AX,1
    RCR BX,1
    LOOP XH

    MOV AX,BX

    MOV AH,4CH
    INT 21H
CODE ENDS
 END START

코드 원형

CODE SEGMENT
 ASSUME CS:CODE
START:
    MOV AL,00000001B

    MOV CX,8

 XH:    RCL AL,1    ;AL       ,         cf    
    RCR AH,1    ;ah       ,   cf    al    ah    
    LOOP XH     ;  cx   ,     al   ah     

    MOV AL,AH   ;ah      al ,        :al    

    MOV AH,4CH
    INT 21H
CODE ENDS
END START

좋은 웹페이지 즐겨찾기