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

Subversion Repositories t48

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 arniml
        ;; *******************************************************************
2
        ;; $Id: test.asm,v 1.1 2005-11-01 21:07:41 arniml Exp $
3
        ;;
4
        ;; *******************************************************************
5
 
6
        INCLUDE "cpu.inc"
7
        INCLUDE "pass_fail.inc"
8
 
9
        ORG     0
10
 
11
        ;; Start of test
12
        jmp     start
13
 
14
 
15
start:
16
        call    test_code
17
        sel     mb0
18
 
19
 
20
pass:   PASS
21
 
22
fail:   FAIL
23
 
24
 
25
 
26
        ORG     0400H
27
test_code:
28
        ;; write to P2
29
        mov     a, #089h
30
        outl    p2, a
31
 
32
        ;; use expander
33
        mov     a, #00ch
34
        movd    p5, a
35
 
36
        ;; write to P2
37
        mov     a, #098h
38
        outl    p2, a
39
 
40
        ;; use expander
41
        movd    a, p6
42
 
43
        ret

powered by: WebSVN 2.1.0

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