;
; SE-514EP / SE-512EP TEST PROGRAM       exam-a.asm
; P3.4 LED(YELLOW) BLINKING TEST
;
; SAMPLE ELECTRONICS                     http://www.SAMPLE.co.kr
;
$MOD51
;----------------------------------------------------------------
             ORG     0H                ; PROGRAM COUNTER ORIGINE
;----------------------------------------------------------------
START:
             MOV     A, R0             ; LOAD LOW BYTE 
             ADD     A, #01H           ; INCREMENT
             MOV     R0, A             ; STORE LOW BYTE
             MOV     A, R1             ; LOAD HIGH BYTE
             ADDC    A, #00H           ; INCREMENT IF CARRY SET
             MOV     R1, A             ; STORE HIGH BYTE
             ;
             MOV     P3, A             ; HIGH BYTE OUT TO PORT3
             LJMP    START             ; JUMP START
             ;
;----------------------------------------------------------------
             END

