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

Subversion Repositories t400

[/] [t400/] [trunk/] [sw/] [verif/] [int/] [skip_tci/] [test.asm] - Blame information for rev 179

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 100 arniml
        ;; *******************************************************************
2 179 arniml
        ;; $Id: test.asm 179 2009-04-01 19:48:38Z arniml $
3 100 arniml
        ;;
4
        ;; Checks interrupt on a skipped "transfer of control" instruction.
5
        ;;
6
 
7
        ;; the cpu type is defined on asl's command line
8
 
9
        include "int_macros.inc"
10
 
11
        org     0x00
12
        clra
13
 
14
        int_flag_clear
15
        lei     0x02
16
        jp      int_mark
17
 
18
        org     0x030
19
int_mark:
20
        nop
21
        nop
22
int_instr:
23
        jsr     jsr_target
24
        jmp     fail            ; this one is skipped, but interrupted
25
ret_instr:
26
        int_flag_check
27
        jmp     pass
28
 
29
 
30
        org     0x080
31
jsr_target:
32
        retsk
33
 
34
 
35
 
36
        ;; *******************************************************************
37
        ;; Interrupt routine
38
        ;;
39
        org     0x0fd
40
        jmp     fail
41
int_routine:
42
        nop
43
        save_a_m_c
44
        int_flag_set
45
        check_sa        ret_instr
46
        restore_c_m_a
47
        ret
48
 
49
 
50
        org     0x200
51
        include "int_pass_fail.asm"

powered by: WebSVN 2.1.0

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