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] - Rev 4
Go to most recent revision | Compare with Previous | Blame | View Log
The Mamou Assembler Version 01.00 12/30/2013 08:06:17 Page 001
00001
00002 ; simple instruction excerciser
00003 0000 8602 lda #$02
00004 0002 C600 ldb #$00
00005 0004 9700 sta $0
00006 0006 D701 stb $1
00007 0008 9E00 ldx $0 ; load sav
00008 000A 108E0000 ldy #$0
00009 000E ACA4 cmpx ,y ; compare
00010 0010 2702 beq test_push_pull
00011
00012 0012 20FE error bra error
00013
00014 0014 10CE00FF test_push_pull lds #$00ff
00015 0018 3406 pshs a,b
00016 001A 3510 puls x
00017 001C ACA4 cmpx ,y ; compare
00018 001E 26F2 bne error
00019
00020 0020 8D09 bsr test_bsr
00021 0022 26EE bne error ; push/pul
00022 W 0024 17000B lbsr test_lea
00023 0027 26E9 bne error
00024 0029 20FE ok bra ok
00025
00026 002B 3420 test_bsr pshs y
00027 002D 3520 puls y
00028 002F AC20 cmpx 0,y
00029 0031 39 rts
00030
00031 0032 3321 test_lea leau 1,y
00032 0034 3120 leay 0,y
00033 0036 39 rts
Assembler Summary:
- 0 errors, 1 warnings
- 33 lines (26 source, 6 blank, 1 comment)
- $0037 (55) program bytes, $0000 (0) data bytes
- Output file: "instructions_test.bin"
Go to most recent revision | Compare with Previous | Blame | View Log