OpenCores
URL https://opencores.org/ocsvn/6809_6309_compatible_core/6809_6309_compatible_core/trunk

Subversion Repositories 6809_6309_compatible_core

[/] [6809_6309_compatible_core/] [trunk/] [sim/] [instructions_test.lst] - Blame information for rev 7

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 ale500
The Mamou Assembler Version 01.00      01/05/2014 08:05:53      Page 001
2 4 ale500
 
3
 
4
00001
5
00002                    ; simple instruction excerciser
6 5 ale500
00003
7
00004    0000 CCAABB                    ldd       #$AABB
8 6 ale500
00005    0003 3D                        mul
9
00006    0004 8E1234                    ldx       #$1234
10
00007    0007 108E5678                  ldy       #$5678
11 7 ale500
00008    000B 1E89                      exg       a,b
12
00009                                   ;exg    a,x
13
00010    000D 1E21                      exg       y,x
14
00011    000F 1F13                      tfr       x,u                 ; 16 bit t
15
00012    0011 1F83                      tfr       a,u                 ; high to
16
00013    0013 1F93                      tfr       b,u
17
00014    0015 1F18                      tfr       x,a                 ; gets hig
18
00015    0017 1F19                      tfr       x,b                 ; gets low
19
00016    0019 2002                      bra       eatests
20
00017    001B 0000       addr           fcb       0,                  4 ; an add
21
00018
22
00019    001D 8602       eatests        lda       #$02
23
00020    001F C600                      ldb       #$00
24
00021    0021 9700                      sta       $0
25
00022    0023 D701                      stb       $1
26
00023    0025 9E00                      ldx       $0                  ; load sav
27
00024    0027 108E0000                  ldy       #$0
28
00025    002B ACA4                      cmpx      ,y                  ; compare
29
00026    002D 2702                      beq       test_push_pull
30
00027
31
00028    002F 20FE       error          bra       error
32
00029
33
00030    0031 10CE00FF   test_push_pull lds       #$00ff
34
00031    0035 3406                      pshs      a,b
35
00032    0037 3510                      puls      x
36
00033    0039 ACA4                      cmpx      ,y                  ; compare
37
00034    003B 26F2                      bne       error
38
00035
39
00036    003D 8D09                      bsr       test_bsr
40
00037    003F 26EE                      bne       error               ; push/pul
41
00038  W 0041 17000B                    lbsr      test_lea
42
00039    0044 26E9                      bne       error
43
00040    0046 20FE       ok             bra       ok
44
00041
45
00042    0048 3420       test_bsr       pshs      y
46
00043    004A 3520                      puls      y
47
00044    004C AC20                      cmpx      0,y
48
00045    004E 39                        rts
49
00046
50
00047    004F 3321       test_lea       leau      1,y
51
00048    0051 3120                      leay      0,y
52
00049    0053 39                        rts
53
00050
54
00051    0054 8E0064     _boot          ldx       #100
55
00052    0057 CC4100     _loop0         ldd       #$4100
56
00053    005A A785       _loop1         sta       b,x
57
00054    005C 5C                        incb
58
00055    005D C110                      cmpb      #16
59
00056    005F 26F9                      bne       _loop1
60
00057    0061 4C                        inca
61
00058    0062 5C         _loop2         incb
62
00059    0063 26FD                      bne       _loop2              ; delay
63
00060    0065 8180                      cmpa      #128
64 4 ale500
 
65 7 ale500
 
66
 
67
The Mamou Assembler Version 01.00      01/05/2014 08:05:53      Page 002
68
 
69
 
70
00061    0067 27F1                      beq       _loop1              ; another
71
00062    0069 20EC                      bra       _loop0
72
00063
73
00064
74
00065
75
 
76 4 ale500
Assembler Summary:
77
 - 0 errors, 1 warnings
78 7 ale500
 - 65 lines (51 source, 12 blank, 2 comment)
79
 - $006B (107) program bytes, $0000 (0) data bytes
80 4 ale500
 - Output file: "instructions_test.bin"

powered by: WebSVN 2.1.0

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