Micro
FrontPage|FindPage|TitleIndex|RecentChanges|UserPreferences E D R S I M H RSS

LOOP:   LDB      AL,PORT1        ; ½ºÀ§Ä¡ »óŸ¦ ¸®µå 
        ANDB     AL,#11110000B
        ; LED0-3°ú ¸ÅÄ¡½ÃÅ°±â À§ÇÏ¿© ÇÏÀ§ 4ºñÆ®·Î À̵¿ 
        CLR      BX
        JBC      AL,4,L1         ; SW0 °Ë»ç
        OR       BX,#0001H
        ORB      AL,#00000001B

L1:     JBC      AL,5,L2         ; SW1 °Ë»ç
        OR       BX,#0010H
        ORB      AL,#00000010B

L2:     JBC      AL,6,L3         ; SW2 °Ë»ç
        OR       BX,#0100H
        ORB      AL,#00000100B

L3:     JBC      AL,7,L4         ; SW3 °Ë»ç
        OR       BX,#1000H
        ORB      AL,#00001000B

        ; SW0 - SW3 °ª 7-¼¼±×¸ÕÆ®·Î µð½ºÇ÷¹ÀÌ
L4:     ST       BX,FNDL[R0]
        ORB      AL,#11110000B
        STB      AL,PORT1
        SJMP     LOOP            ; ´Ù½Ã ½ºÀ§Ä¡ °Ë»ç 
        ; 
        END 

EditText|FindPage|DeletePage|LikePages| Valid XHTML 1.0! Valid CSS! powered by MoniWiki