URL
https://opencores.org/ocsvn/t48/t48/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 289 |
Rev 292 |
;; *******************************************************************
|
;; *******************************************************************
|
;; $Id: test.asm,v 1.1 2005-11-01 21:07:41 arniml Exp $
|
;; $Id: test.asm,v 1.1 2005-11-01 21:07:41 arniml Exp $
|
;;
|
;;
|
;; *******************************************************************
|
;; *******************************************************************
|
|
|
INCLUDE "cpu.inc"
|
INCLUDE "cpu.inc"
|
INCLUDE "pass_fail.inc"
|
INCLUDE "pass_fail.inc"
|
|
|
ORG 0
|
ORG 0
|
|
|
;; Start of test
|
;; Start of test
|
jmp start
|
jmp start
|
|
|
|
|
start:
|
start:
|
call test_code
|
call test_code
|
sel mb0
|
sel mb0
|
|
|
|
|
pass: PASS
|
pass: PASS
|
|
|
fail: FAIL
|
fail: FAIL
|
|
|
|
|
|
|
ORG 0400H
|
ORG 0400H
|
test_code:
|
test_code:
|
;; write to P2
|
;; write to P2
|
mov a, #089h
|
mov a, #089h
|
outl p2, a
|
outl p2, a
|
|
|
;; use expander
|
;; use expander
|
mov a, #00ch
|
mov a, #00ch
|
movd p5, a
|
movd p5, a
|
|
|
;; write to P2
|
;; write to P2
|
mov a, #098h
|
mov a, #098h
|
outl p2, a
|
outl p2, a
|
|
|
;; use expander
|
;; use expander
|
movd a, p6
|
movd a, p6
|
|
|
ret
|
ret
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.