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

Subversion Repositories zet86

[/] [zet86/] [trunk/] [tests/] [01_jmpmov.s] - Blame information for rev 49

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 zeus
# mov: 1 (word), 2 (word), 3 (off, base+index+off), 4, 5 (off),
2
#      7 (byte,word), 8 (byte off), 9 (word base), 10 (byte,word),
3
#      11 (word off, byte base+index), 12 (imm,special)
4
# jmp: 1, 2, 3 (reg), 3 (mem base+index+off), 4, 5 (mem base+index+off)
5
.code16
6
start:
7
jmp b                   # (2)  jmp
8
hlt
9
 
10
.org 14
11
b:
12
movw $0xf000, %bx       # (10) mov word
13
movw %bx, %ds           # (4)  mov
14
movw (0xfff3), %ax      # (2)  mov word
15
jmp *%ax                # (3)  jmp reg
16
hlt
17
 
18
.org 0x1290
19
ljmp $0xe342, $0xebe0   # (4)  jmp
20
hlt
21
 
22
.org 0x2000
23
movw $0x1000, %bx       # (10) mov word
24
movw %bx, %ds           # (4)  mov
25
 
26
movb $0xfb, %ah         # (10) mov byte
27
movb $0xe1, %al         # (10) mov byte
28
movw %ax, (0x2501)      # (1)  mov word
29
 
30
movw $0x1001, (0x2600)  # (11) mov word
31
movw (0x2600), %ss      # (3)  mov
32
 
33
movw %ss, (0x2601)      # (5)  mov
34
movb (0x2601), %dl      # (8)  mov byte
35
movb $0x00, %dh         # (10) mov byte
36
movw %dx, %di           # (7)  mov word
37
 
38
movw $0x2506, %bp       # (10) mov word
39
 
40
jmp *-22(%bp,%di)       # (3)  jmp mem
41
hlt                     # m[0x12501] = 0xfbe1
42
 
43
.org 0x3001
44
.byte 0xc7,0xc0        # (12) movw $0x4001, %ax
45
.word 0x4001           # [not in a default codification]
46
movw $0x2501, %bx
47
movw %ax, (%bx)         # (9)  mov word
48
movw $2, %di
49
movb $0x00, (%bx,%di)   # (11) mov byte
50
movb $4, %ch
51
movb %ch, %cl           # (7)  mov byte
52
movb $0, %ch
53
movw %cx, %si
54
movb $0xf0, -1(%bx,%si)
55
movw $0x3, %si
56
ljmp *-24(%bp,%si)      # (5)  jmp mem
57
hlt
58
 
59
.org 0x4001
60
movw -3(%bx,%si), %ax
61
movw $0x0, %dx
62
movw %dx, %ds
63
movw %ax, (0)
64
hlt
65
 
66
.org 65520
67
jmp start               # (1)  jmp
68
.word 0x1290
69
 
70
.org 65534
71
.word 0xffff
72
 

powered by: WebSVN 2.1.0

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