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-06-08 19:05:39 arniml Exp $
|
;; $Id: test.asm,v 1.1 2005-06-08 19:05:39 arniml Exp $
|
;;
|
;;
|
;; Test wrap-around of Program Counter on bits 10 - 0.
|
;; Test wrap-around of Program Counter on bits 10 - 0.
|
;; *******************************************************************
|
;; *******************************************************************
|
|
|
INCLUDE "cpu.inc"
|
INCLUDE "cpu.inc"
|
INCLUDE "pass_fail.inc"
|
INCLUDE "pass_fail.inc"
|
|
|
ORG 0
|
ORG 0
|
|
|
;; Start of test
|
;; Start of test
|
|
|
;; decide whether this is the first time that the test
|
;; decide whether this is the first time that the test
|
;; executes from address 0
|
;; executes from address 0
|
in a, P1
|
in a, P1
|
jnz first_time
|
jnz first_time
|
|
|
;; came here for the second time
|
;; came here for the second time
|
;; -> that's great!
|
;; -> that's great!
|
jmp pass
|
jmp pass
|
|
|
first_time:
|
first_time:
|
clr a
|
clr a
|
outl P1, a ; tag P1 -> lock this path
|
outl P1, a ; tag P1 -> lock this path
|
;; jump to external Program Memory
|
;; jump to external Program Memory
|
jmp end_of_first_2k
|
jmp end_of_first_2k
|
|
|
pass: PASS
|
pass: PASS
|
|
|
fail: FAIL
|
fail: FAIL
|
|
|
|
|
;; end of first 2k program memory
|
;; end of first 2k program memory
|
ORG 07FEH
|
ORG 07FEH
|
end_of_first_2k:
|
end_of_first_2k:
|
nop
|
nop
|
nop
|
nop
|
;; no wrap-around to address 0
|
;; no wrap-around to address 0
|
|
|
|
|
ORG 0800H
|
ORG 0800H
|
|
|
jmp fail
|
jmp fail
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.