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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [02_datatrnf.s] - Blame information for rev 55

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

Line No. Rev Author Line
1 39 zeus
.code16
2
start:
3
movb $0xed, %ah
4
sahf                    # (1)
5
lahf                    # (2) Now %ah must have 0xc7
6
movb %ah, (0)
7
movb %ah, %al
8
outb %al, $0xb7         # (19)
9
movw $0xb7, %ax
10
movw %ax, %dx
11
movb $0xa5, %ah
12
inb  %dx, %al           # (24)
13
movw %ax, (2)
14
sahf
15
lahf                # Now %ax must have 0x87c7
16
movw %ax, (32)
17
 
18
outw %ax, %dx           # (22)
19
movw $0xf752, %ax
20
movw %ax, %bx
21
inw  %dx, %ax           # (26)
22
xchg %bx, %ax       # (16)
23
movw %ax, %ds
24
lds  781(%bx), %si  # (3)  %ds=0x5678 and %si=0x1234
25
movw $0, %ax
26
movw %ds, %bx
27
movw %ax, %ds
28
movw %bx, (4)
29
movw %si, (6)
30
movw %bx, %ds
31
 
32
movw $-1, %bx
33
 
34
movw $0x1000, %ax
35
outw %ax, $0xb7         # (21)
36
 
37
movw $0x5798, %ax
38
movw %ax, %ss
39
movw $9, %sp
40
movw $0xabcd, %cx
41
push %cx                # (10)
42
movw $0x8cf1, %cx
43
movw %cx, %es
44
push %es                # (11)
45
popf                    # (9)
46
les  -46(%bx,%si), %di  # (5) %di=0x8cf1, %es=%0xabcd
47
lea  -452(%bp,%di), %si # (4) %si=0x8b2d
48
pushf                   # (13)
49
movw $0, %ax
50
movw %ax, %ds
51
movw %di, (8)
52
movw %es, %ax
53
movw %ax, (10)
54
movw %si, (12)
55
inw  $0xb7, %ax         # (25)
56
movw %ax, %ds
57
pop  1(%si)             # (8)
58
xchg 2(%bx,%si), %di    # (15) %di=0x0cd3
59
push 2(%bx,%si)         # (12)
60
pop  %es                # (7)  %es=0x8cf1
61
movw %es, %dx
62
 
63
 
64
movw %ds, %ax
65
movw $0, %cx
66
movw %cx, %ds
67
movw %di, (14)
68
movw %dx, (16)
69
movw %ax, %ds
70
pop  %dx                # (6)
71
push %dx
72
.byte 0x8f,0xc1         # (6) pop %cx (non-standard)
73
xchg %bx, %cx           # (14) %bx=0xabcd, %cx=0xffff
74
 
75
movw %ds, %ax
76
movw $0, %dx
77
movw %dx, %ds
78
movw %bx, (18)
79
movw %cx, (20)
80
movw %ax, %ds
81
movw %es, (%bx,%di)
82
movw $0xb800, %bx
83
movw $0xa0a1, %ax
84
xlat                    # (18) %al=0x8c
85
xchg %al, %ah           # (17)
86
xlat                    # %ax=0x8cf1
87
movw $0, %dx
88
movw %dx, %ds
89
movw %ax, (22)
90
movw $0xb7, %dx
91
outb %al, %dx           # (20)
92
movb $0xff, %al
93
inb  $0xb7, %al         # (23) %ax=0x8cf1
94
movw %ax, (24)
95
hlt
96
 
97
.org 65520
98
jmp start
99
 
100
.org 65524
101
.word 0x1234
102
.word 0x5678
103
 
104
.org 65535
105
.byte 0xff

powered by: WebSVN 2.1.0

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