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 6

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

Line No. Rev Author Line
1 6 ale500
The Mamou Assembler Version 01.00      01/01/2014 10:15:21      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
00008    000B 1F13                      tfr       x,u                 ; 16 bit t
12
00009    000D 1F83                      tfr       a,u                 ; high to
13
00010    000F 1F93                      tfr       b,u
14
00011    0011 1F18                      tfr       x,a                 ; gets hig
15
00012    0013 1F19                      tfr       x,b                 ; gets low
16 4 ale500
00013
17 6 ale500
00014
18
00015    0015 8602                      lda       #$02
19
00016    0017 C600                      ldb       #$00
20
00017    0019 9700                      sta       $0
21
00018    001B D701                      stb       $1
22
00019    001D 9E00                      ldx       $0                  ; load sav
23
00020    001F 108E0000                  ldy       #$0
24
00021    0023 ACA4                      cmpx      ,y                  ; compare
25
00022    0025 2702                      beq       test_push_pull
26
00023
27
00024    0027 20FE       error          bra       error
28
00025
29
00026    0029 10CE00FF   test_push_pull lds       #$00ff
30
00027    002D 3406                      pshs      a,b
31
00028    002F 3510                      puls      x
32
00029    0031 ACA4                      cmpx      ,y                  ; compare
33
00030    0033 26F2                      bne       error
34
00031
35
00032    0035 8D09                      bsr       test_bsr
36
00033    0037 26EE                      bne       error               ; push/pul
37
00034  W 0039 17000B                    lbsr      test_lea
38
00035    003C 26E9                      bne       error
39
00036    003E 20FE       ok             bra       ok
40
00037
41
00038    0040 3420       test_bsr       pshs      y
42
00039    0042 3520                      puls      y
43
00040    0044 AC20                      cmpx      0,y
44
00041    0046 39                        rts
45
00042
46
00043    0047 3321       test_lea       leau      1,y
47
00044    0049 3120                      leay      0,y
48
00045    004B 39                        rts
49 4 ale500
 
50
Assembler Summary:
51
 - 0 errors, 1 warnings
52 6 ale500
 - 45 lines (35 source, 9 blank, 1 comment)
53
 - $004C (76) program bytes, $0000 (0) data bytes
54 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.