URL
https://opencores.org/ocsvn/zet86/zet86/trunk
[/] [zet86/] [trunk/] [tests/] [03_control.s] - Diff between revs 39 and 49
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 39 |
Rev 49 |
.code16
|
.code16
|
start:
|
start:
|
movw $0x1000, %ax
|
movw $0x1000, %ax
|
movw %ax, %ss
|
movw %ax, %ss
|
movw $0x1000, %sp
|
movw $0x1000, %sp
|
|
|
movw $0xfeff, %cx
|
movw $0xfeff, %cx
|
push %cx
|
push %cx
|
popf
|
popf
|
|
|
clc # (1)
|
clc # (1)
|
cld # (2)
|
cld # (2)
|
cli # (3)
|
cli # (3)
|
|
|
nop # (6)
|
nop # (6)
|
|
|
pushf
|
pushf
|
pop %ax # %ax = 0x08d6
|
pop %ax # %ax = 0x08d6
|
|
|
movw $0x1, %dx
|
movw $0x1, %dx
|
push %dx
|
push %dx
|
popf
|
popf
|
|
|
cmc # (4)
|
cmc # (4)
|
stc # (7)
|
stc # (7)
|
std # (8)
|
std # (8)
|
sti # (9)
|
sti # (9)
|
|
|
pushf
|
pushf
|
pop %bx # %bx = 0x0603
|
pop %bx # %bx = 0x0603
|
|
|
movw $0x0, %cx
|
movw $0x0, %cx
|
movw %cx, %ds
|
movw %cx, %ds
|
movw %ax, (0)
|
movw %ax, (0)
|
movw %bx, (2)
|
movw %bx, (2)
|
|
|
hlt # (5)
|
hlt # (5)
|
|
|
.org 65520
|
.org 65520
|
jmp start
|
jmp start
|
|
|
.org 65535
|
.org 65535
|
.byte 0xff
|
.byte 0xff
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.