URL
https://opencores.org/ocsvn/zet86/zet86/trunk
[/] [zet86/] [trunk/] [tests/] [07_strings.s] - Diff between revs 39 and 49
Only display areas with differences |
Details |
Blame |
View Log
Rev 39 |
Rev 49 |
.code16
|
.code16
|
start:
|
start:
|
movw $0xf000, %cx
|
movw $0xf000, %cx
|
movw %cx, %ds
|
movw %cx, %ds
|
movw %cx, %es
|
movw %cx, %es
|
movw $0x1000, %si
|
movw $0x1000, %si
|
movw $0x2001, %di
|
movw $0x2001, %di
|
|
|
cmpsb # (1) flags=0x97 (SAPC)
|
cmpsb # (1) flags=0x97 (SAPC)
|
pushf
|
pushf
|
ret
|
ret
|
|
|
.org 0x46
|
.org 0x46
|
cmpsb # (1) flags=0x82 (S)
|
cmpsb # (1) flags=0x82 (S)
|
pushf
|
pushf
|
ret
|
ret
|
|
|
.org 0x82
|
.org 0x82
|
cmpsb # (1) flags=0x812 (OA)
|
cmpsb # (1) flags=0x812 (OA)
|
pushf
|
pushf
|
ret
|
ret
|
|
|
.org 0x97
|
.org 0x97
|
cmpsb # (1) flags=0x46 (ZP)
|
cmpsb # (1) flags=0x46 (ZP)
|
pushf
|
pushf
|
ret
|
ret
|
|
|
.org 0x812
|
.org 0x812
|
cmpsw # (2)
|
cmpsw # (2)
|
pushf
|
pushf
|
ret # jump to f000:0883
|
ret # jump to f000:0883
|
|
|
.org 0x883
|
.org 0x883
|
movb $0x10, %ah
|
movb $0x10, %ah
|
std
|
std
|
lodsb # (3)
|
lodsb # (3)
|
jmp *%ax # jump to f000:10c2
|
jmp *%ax # jump to f000:10c2
|
|
|
.org 0x1000
|
.org 0x1000
|
.byte 0x01,0xff,0xff,0x80
|
.byte 0x01,0xff,0xff,0x80
|
.word 0x0002
|
.word 0x0002
|
.byte 0xc2
|
.byte 0xc2
|
|
|
.org 0x10c2
|
.org 0x10c2
|
lodsw # (4)
|
lodsw # (4)
|
jmp *%ax
|
jmp *%ax
|
|
|
.org 0x1300
|
.org 0x1300
|
movw %ax, (%di)
|
movw %ax, (%di)
|
movw %dx, %es
|
movw %dx, %es
|
scasw # (8)
|
scasw # (8)
|
jz stor
|
jz stor
|
|
|
.org 0x1350
|
.org 0x1350
|
stor:
|
stor:
|
movb $0x80, %al
|
movb $0x80, %al
|
std
|
std
|
stosb # (9)
|
stosb # (9)
|
jmp *(%di)
|
jmp *(%di)
|
|
|
.org 0x2001
|
.org 0x2001
|
.byte 0x02,0xff,0x01,0x01
|
.byte 0x02,0xff,0x01,0x01
|
.word 0x8001
|
.word 0x8001
|
|
|
.org 0x8013
|
.org 0x8013
|
movw $0xd000, %ax
|
movw $0xd000, %ax
|
stosw # (10)
|
stosw # (10)
|
jmp *2(%di)
|
jmp *2(%di)
|
|
|
.org 0x80c2
|
.org 0x80c2
|
movw %cx, %ds
|
movw %cx, %ds
|
movsw # (6)
|
movsw # (6)
|
movw %dx, %ds
|
movw %dx, %ds
|
jmp *2(%di)
|
jmp *2(%di)
|
|
|
.org 0x80ff
|
.org 0x80ff
|
movw $0x2002, %di
|
movw $0x2002, %di
|
movw %cx, %es
|
movw %cx, %es
|
cld
|
cld
|
scasb # (7)
|
scasb # (7)
|
lahf
|
lahf
|
jmp *%ax
|
jmp *%ax
|
|
|
.org 0xc200
|
.org 0xc200
|
movw $0x1000, %dx
|
movw $0x1000, %dx
|
movw %dx, %es
|
movw %dx, %es
|
movw $0xffff, %di
|
movw $0xffff, %di
|
movsb # (5)
|
movsb # (5)
|
movw %dx, %ds
|
movw %dx, %ds
|
movb $0xc2, (%di)
|
movb $0xc2, (%di)
|
jmp *(%di)
|
jmp *(%di)
|
|
|
.org 0xd000
|
.org 0xd000
|
movw $0, %dx
|
movw $0, %dx
|
movw %dx, %ds
|
movw %dx, %ds
|
movw $0x1234, (2)
|
movw $0x1234, (2)
|
|
|
hlt
|
hlt
|
|
|
.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.