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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [20_hdemu.s] - Blame information for rev 49

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 zeus
.code16
2
start:
3
# First sector
4
movw $0x100, %cx
5
movw $0xe000, %dx
6
movw $0x1000, %ax
7
movw $0x0, %bx
8
movw %ax, %ds
9
 
10
a:
11
inw  %dx, %ax
12
movw %ax, (%bx)
13
addw $2, %dx
14
addw $2, %bx
15
loop a
16
 
17
movw $2844, %ax
18
movw $0xe000, %dx
19
outw %ax, %dx
20
 
21
# Fifth sector
22
movw $0x100, %cx
23
movw $0xe000, %dx
24
movw $0x2000, %ax
25
movw $0x0, %bx
26
movw %ax, %ds
27
 
28
b:
29
inw  %dx, %ax
30
movw %ax, (%bx)
31
addw $2, %dx
32
addw $2, %bx
33
loop b
34
 
35
 
36
 
37
hlt
38
 
39
 
40
 
41
 
42
.org 65520
43
jmp start
44
 
45
.org 65535
46
.byte 0xff

powered by: WebSVN 2.1.0

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