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

Subversion Repositories t48

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 130 arniml
        ;; *******************************************************************
2 131 arniml
        ;; $Id: test.asm,v 1.2 2004-09-12 00:28:58 arniml Exp $
3 130 arniml
        ;;
4
        ;; Test overlap of PSEN and RD/WR.
5
        ;; *******************************************************************
6
 
7
        INCLUDE "cpu.inc"
8
        INCLUDE "pass_fail.inc"
9
 
10
        ORG     0
11
 
12
        ;; Start of test
13
 
14
        ;; access external memory
15 131 arniml
        mov     r0, #0FFH
16
        mov     a, #001H
17
        movx    @r0, a
18 130 arniml
 
19
        ;; jump to external Program Memory
20
        jmp     extern_rom
21
 
22
pass:   PASS
23
 
24
fail:   FAIL
25
 
26
 
27
        ORG     0800H
28
extern_rom:
29
        ;; write to external memory
30
        mov     r0, #010H
31
        mov     a, #0A5H
32
        movx    @r0, a
33
        cpl     a
34
        mov     r1, a
35
        inc     r0
36
        movx    @r0, a
37
 
38
        ;; read back data
39
        movx    a, @r0
40
        cpl     a
41
        add     a, r1
42
        cpl     a
43
        jz      read_next
44
        jmp     fail
45
 
46
read_next:
47
        mov     a, r1
48
        cpl     a
49
        mov     r1, a
50
        dec     r0
51
        movx    a, @r0
52
        cpl     a
53
        add     a, r1
54
        cpl     a
55
        jz      read_ok
56
        jmp     fail
57
 
58
read_ok:
59
        jmp     pass

powered by: WebSVN 2.1.0

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