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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [20_hdemu.s] - Diff between revs 39 and 49

Only display areas with differences | Details | Blame | View Log

Rev 39 Rev 49
.code16
.code16
start:
start:
# First sector
# First sector
movw $0x100, %cx
movw $0x100, %cx
movw $0xe000, %dx
movw $0xe000, %dx
movw $0x1000, %ax
movw $0x1000, %ax
movw $0x0, %bx
movw $0x0, %bx
movw %ax, %ds
movw %ax, %ds
 
 
a:
a:
inw  %dx, %ax
inw  %dx, %ax
movw %ax, (%bx)
movw %ax, (%bx)
addw $2, %dx
addw $2, %dx
addw $2, %bx
addw $2, %bx
loop a
loop a
 
 
movw $2844, %ax
movw $2844, %ax
movw $0xe000, %dx
movw $0xe000, %dx
outw %ax, %dx
outw %ax, %dx
 
 
# Fifth sector
# Fifth sector
movw $0x100, %cx
movw $0x100, %cx
movw $0xe000, %dx
movw $0xe000, %dx
movw $0x2000, %ax
movw $0x2000, %ax
movw $0x0, %bx
movw $0x0, %bx
movw %ax, %ds
movw %ax, %ds
 
 
b:
b:
inw  %dx, %ax
inw  %dx, %ax
movw %ax, (%bx)
movw %ax, (%bx)
addw $2, %dx
addw $2, %dx
addw $2, %bx
addw $2, %bx
loop b
loop b
 
 
 
 
 
 
hlt
hlt
 
 
 
 
 
 
 
 
.org 65520
.org 65520
jmp start
jmp start
 
 
.org 65535
.org 65535
.byte 0xff
.byte 0xff
 
 

powered by: WebSVN 2.1.0

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