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 4

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

Line No. Rev Author Line
1 4 ale500
The Mamou Assembler Version 01.00      12/30/2013 08:06:17      Page 001
2
 
3
 
4
00001
5
00002                    ; simple instruction excerciser
6
00003    0000 8602                      lda       #$02
7
00004    0002 C600                      ldb       #$00
8
00005    0004 9700                      sta       $0
9
00006    0006 D701                      stb       $1
10
00007    0008 9E00                      ldx       $0                  ; load sav
11
00008    000A 108E0000                  ldy       #$0
12
00009    000E ACA4                      cmpx      ,y                  ; compare
13
00010    0010 2702                      beq       test_push_pull
14
00011
15
00012    0012 20FE       error          bra       error
16
00013
17
00014    0014 10CE00FF   test_push_pull lds       #$00ff
18
00015    0018 3406                      pshs      a,b
19
00016    001A 3510                      puls      x
20
00017    001C ACA4                      cmpx      ,y                  ; compare
21
00018    001E 26F2                      bne       error
22
00019
23
00020    0020 8D09                      bsr       test_bsr
24
00021    0022 26EE                      bne       error               ; push/pul
25
00022  W 0024 17000B                    lbsr      test_lea
26
00023    0027 26E9                      bne       error
27
00024    0029 20FE       ok             bra       ok
28
00025
29
00026    002B 3420       test_bsr       pshs      y
30
00027    002D 3520                      puls      y
31
00028    002F AC20                      cmpx      0,y
32
00029    0031 39                        rts
33
00030
34
00031    0032 3321       test_lea       leau      1,y
35
00032    0034 3120                      leay      0,y
36
00033    0036 39                        rts
37
 
38
Assembler Summary:
39
 - 0 errors, 1 warnings
40
 - 33 lines (26 source, 6 blank, 1 comment)
41
 - $0037 (55) program bytes, $0000 (0) data bytes
42
 - 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.