OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [asm-11/] [tests/] [test_0100_op_g.mac] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
; $Id: test_0100_op_g.mac 501 2013-03-30 13:53:39Z mueller $
2
;
3
; test opcodes with one general operand
4
;
5
        .asect
6
        .blkw   400
7
;
8
a:      .word   0               ;;!! 001000: 000000
9
pa:     .word   a               ;;!! 001002: 001000
10
 
11
; all modes with one opcode
12
p1:
13
        inc     r1              ;;!! 005201
14
        inc     @r2             ;;!! 005212
15
        inc     (r3)            ;;!! 005213
16
        inc     (r4)+           ;;!! 005224
17
        inc     @(r5)+          ;;!! 005235
18
        inc     -(r1)           ;;!! 005241
19
        inc     @-(r2)          ;;!! 005252
20
        inc     1234(r3)        ;;!! 005263 001234
21
        inc     @1234(r4)       ;;!! 005274 001234
22
        inc     a               ;;!! 005267 177742
23
        inc     @pa             ;;!! 005277 177740
24
        inc     @#a             ;;!! 005237 001000
25
 
26
; pc relative addressing
27
 
28
b:      .word   0
29
        inc     b
30
        inc     c
31
c:      .word   0
32
 
33
; all 'g' type opcodes, random modes
34
p2:
35
        jmp     @r2             ;;!! 000112
36
        swab    (r3)            ;;!! 000313
37
        clr     (r4)+           ;;!! 005024
38
        com     @(r5)+          ;;!! 005135
39
        dec     -(r1)           ;;!! 005341
40
        neg     @-(r2)          ;;!! 005452
41
        adc     1234(r3)        ;;!! 005563 001234
42
        sbc     @1234(r4)       ;;!! 005674 001234
43
        tst     a               ;;!! 005767 177666
44
        ror     @pa             ;;!! 006077 177664
45
        rol     @#a             ;;!! 006137 001000
46
        asr     @r2             ;;!! 006212
47
        asl     (r3)            ;;!! 006313
48
        mfpi    (r4)+           ;;!! 006524
49
        mtpi    @(r5)+          ;;!! 006635
50
        sxt     -(r1)           ;;!! 006741
51
;       csm     @-(r2)          ;;!!
52
;       tstset  1234(r3)        ;;!!
53
;       wrtlck  @1234(r4)       ;;!!
54
        clrb    a               ;;!! 105067 177640
55
        comb    @pa             ;;!! 105177 177636
56
        incb    @#a             ;;!! 105237 001000
57
        decb    @r2             ;;!! 105312
58
        negb    (r3)            ;;!! 105413
59
        adcb    (r4)+           ;;!! 105524
60
        sbcb    @(r5)+          ;;!! 105635
61
        tstb    -(r1)           ;;!! 105741
62
        rorb    @-(r2)          ;;!! 106052
63
        rolb    1234(r3)        ;;!! 106163 001234
64
        asrb     @1234(r4)      ;;!! 106274 001234
65
        aslb    a               ;;!! 106367 177600
66
        mtps    @pa             ;;!! 106477 177576
67
        mfpd    @#a             ;;!! 106537 001000
68
        mtpd    @r2             ;;!! 106612
69
        mfps    (r3)            ;;!! 106713
70
 
71
        .end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.