aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t_16c5x/t_16c5x.asm
blob: 805013f256cd98969276e0198c4d85c12d5dcc34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
        cpu     16c57
        page    0
        relaxed on

        clrw
        nop
        option
        sleep

        andlw   12h
        iorlw   12h
        movlw   12h
        retlw   12h
        xorlw   12h

        addwf   12h
        andwf   12h,0
        comf    12h,1
        decf    12h,w
        decfsz  12h,f
        incf    12h
        incfsz  12h,0
        iorwf   12h,1
        movf    12h,w
        rlf     12h,f
        rrf     12h
        subwf   12h,0
        swapf   12h,1
        xorwf   12h,w

        bcf     10h,3
        bsf     17h,5
        btfsc   12h,7
        btfss   08h,1

        clrf    12h
        movwf   12h

        tris    5
        tris    6
        tris    7

        call    234h
        goto    123h