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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [06_interrupt.s] - Blame information for rev 54

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

Line No. Rev Author Line
1 39 zeus
.code16
2
start:
3
movw $0, %dx
4
movw %dx, %ds
5
movw $0x1000, %sp
6
movw %sp, %ss
7
movw $0xebe0, (52)
8
movw $0xe342, (54)
9
 
10
movw $0x0eff, %ax
11
push %ax
12
popf
13
movb $0, (0)
14
int $13                 # (1)
15
movb $2, (2)
16
jmp *%ax
17
 
18
.org 0x0cd7
19
movb $3, (3)
20
pushf
21
pop %bx
22
movw $0xebe0, (12)
23
movw $0xe342, (14)
24
 
25
int $3                  # (2)
26
movb $4, (4)
27
movw $0x3001, (16)
28
movw $0xf000, (18)
29
 
30
into                    # (3) branch taken
31
hlt
32
 
33
.org 0x2000
34
movb $1, (1)
35
pushf
36
pop %ax
37
clc
38
iret                    # (4)
39
 
40
.org 0x3001
41
movb $5, (5)
42
pop %cx
43
movw $0x4002, %cx
44
push %cx
45
iret
46
 
47
.org 0x4002
48
movb $6, (6)
49
movw $0x4ff, %dx
50
push %dx
51
popf
52
movw $0x5000, (16)
53
 
54
into                    # (3) branch not taken
55
movw %ax, (8)
56
movw %bx, (10)
57
movw %cx, (12)
58
movw %dx, (14)
59
movw %sp, (16)
60
hlt
61
 
62
.org 0x5000
63
hlt
64
 
65
.org 65520
66
jmp start
67
.org 65535
68
.byte 0xff

powered by: WebSVN 2.1.0

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