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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [03_control.s] - Blame information for rev 53

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

Line No. Rev Author Line
1 39 zeus
.code16
2
start:
3
movw $0x1000, %ax
4
movw %ax, %ss
5
movw $0x1000, %sp
6
 
7
movw $0xfeff, %cx
8
push %cx
9
popf
10
 
11
clc                # (1)
12
cld                # (2)
13
cli                # (3)
14
 
15
nop                # (6)
16
 
17
pushf
18
pop   %ax          # %ax = 0x08d6
19
 
20
movw $0x1, %dx
21
push %dx
22
popf
23
 
24
cmc                # (4)
25
stc                # (7)
26
std                # (8)
27
sti                # (9)
28
 
29
pushf
30
pop   %bx          # %bx = 0x0603
31
 
32
movw $0x0, %cx
33
movw %cx, %ds
34
movw %ax, (0)
35
movw %bx, (2)
36
 
37
hlt                # (5)
38
 
39
.org 65520
40
jmp start
41
 
42
.org 65535
43
.byte 0xff

powered by: WebSVN 2.1.0

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