OpenCores
URL https://opencores.org/ocsvn/t48/t48/trunk

Subversion Repositories t48

[/] [t48/] [tags/] [rel_1_1/] [sw/] [verif/] [white_box/] [pc_wrap_bit11/] [test.asm] - Blame information for rev 292

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 173 arniml
        ;; *******************************************************************
2
        ;; $Id: test.asm,v 1.1 2005-06-08 19:05:39 arniml Exp $
3
        ;;
4
        ;; Test wrap-around of Program Counter on bits 10 - 0.
5
        ;; *******************************************************************
6
 
7
        INCLUDE "cpu.inc"
8
        INCLUDE "pass_fail.inc"
9
 
10
        ORG     0
11
 
12
        ;; Start of test
13
 
14
        ;; decide whether this is the first time that the test
15
        ;; executes from address 0
16
        in      a, P1
17
        jnz     first_time
18
 
19
        ;; came here for the second time
20
        ;; -> that's great!
21
        jmp     pass
22
 
23
first_time:
24
        clr     a
25
        outl    P1, a           ; tag P1 -> lock this path
26
        ;; jump to external Program Memory
27
        jmp     end_of_first_2k
28
 
29
pass:   PASS
30
 
31
fail:   FAIL
32
 
33
 
34
        ;; end of first 2k program memory
35
        ORG     07FEH
36
end_of_first_2k:
37
        nop
38
        nop
39
        ;; no wrap-around to address 0
40
 
41
 
42
        ORG     0800H
43
 
44
        jmp     fail
45
 

powered by: WebSVN 2.1.0

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