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.asm] - Diff between revs 4 and 5

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 4 Rev 5
Line 1... Line 1...
 
 
; simple instruction excerciser
; simple instruction excerciser
 
 
 
                ldd     #$AABB
 
                ldx     #$1234
 
                ldy     #$5678
 
                tfr     x,u     ; 16 bit transfer
 
                tfr     a,u     ; high to high
 
                tfr     b,u
 
                tfr     x,a     ; gets high byte
 
                tfr     x,b     ; gets low byte
 
 
 
 
                lda     #$02
                lda     #$02
                ldb     #$00
                ldb     #$00
                sta     $0
                sta     $0
                stb     $1
                stb     $1
                ldx     $0      ; load saved value
                ldx     $0      ; load saved value

powered by: WebSVN 2.1.0

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