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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [19_segpr.s] - Blame information for rev 49

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 zeus
.code16
2
start:
3
movw $0xf100, %bx
4
movw %bx, %es
5
 
6
es movw (0), %bx
7
es movw (2), %ax
8
movw %ax, (2)
9
movw $0x2, %sp
10
es push %bx
11
 
12
es les (0), %dx
13
movw %dx, (4)
14
movw %es, %dx
15
movw %dx, (6)
16
 
17
movw $5, %di
18
cs lea 23(%bp,%di), %si
19
movw %si, (8)
20
 
21
movw $0x0005, %bx
22
movw $0x0005, %ax
23
movw $0x2345, (10)
24
movw $0xf100, %dx
25
movw %dx, %es
26
es xlat
27
movw %ax, (12)
28
 
29
# inc with segment
30
movw $0x1, %ax
31
movw %ax, %ss
32
movw $0x6, (16)
33
ss incw (0)
34
 
35
# div with interrupt
36
movw $32, %sp
37
movw $0x0, (18)
38
ss
39
.byte 0xf3
40
divw (2)
41
subw $6, %sp
42
 
43
movw $0x1200, (20)
44
movw $5, %bx
45
movw $3, %si
46
# repz prefix (do not affect)
47
.byte 0xf3
48
ss call *-4(%bx,%si)
49
 
50
hlt
51
 
52
.org 0x1000
53
.word 0x1100
54
.word 0xf000
55
 
56
.org 0x100a
57
.word 0x5678
58
 
59
.org 0x1100
60
movw %sp, %si
61
ss movw (%si), %si
62
movw %si, (14)
63
addw $6, %si
64
movw %sp, %di
65
ss movw %si, (%di)
66
iret
67
 
68
.org 0x1200
69
movw $0xf120, %cx
70
movw %cx, %es
71
movw $0x0200, %si
72
movw $0x0e01, %di
73
 
74
es cmpsb
75
pushf
76
 
77
movw $0x1, %ax
78
movw %ax, %es
79
movw $6, %di
80
movw $0x1400, %si
81
movw $0x6, %cx
82
# Two prefixes
83
rep cs movsb
84
hlt
85
 
86
.org 0x1400
87
.byte 0x01,0xff,0xff,0x80
88
.word 0x0002
89
.byte 0xc2
90
 
91
.org 0x2001
92
.byte 0x02,0xff,0x01,0x01
93
.word 0x8001
94
 
95
.org 65520
96
jmp start
97
.org 65535
98
.byte 0xff

powered by: WebSVN 2.1.0

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