URL
https://opencores.org/ocsvn/zet86/zet86/trunk
[/] [zet86/] [trunk/] [tests/] [05_jump2.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, %bx
|
movw $0xf000, %bx
|
movw %bx, %ds
|
movw %bx, %ds
|
movw $0x1290, %ax
|
movw $0x1290, %ax
|
|
|
movw $0x5, %cx
|
movw $0x5, %cx
|
again:
|
again:
|
push %cx
|
push %cx
|
loop again # (6)
|
loop again # (6)
|
|
|
call *%ax # (2)
|
call *%ax # (2)
|
ret # (9)
|
ret # (9)
|
|
|
.org 0x1290
|
.org 0x1290
|
ag2:
|
ag2:
|
movw $0xffff, %cx
|
movw $0xffff, %cx
|
loope ag2 # (7) branch not taken
|
loope ag2 # (7) branch not taken
|
movw $64, %dx
|
movw $64, %dx
|
push %dx
|
push %dx
|
popf
|
popf
|
loope cont # (7) branch taken
|
loope cont # (7) branch taken
|
hlt
|
hlt
|
cont:
|
cont:
|
lcall $0xe342, $0xebe0 # (4)
|
lcall $0xe342, $0xebe0 # (4)
|
jcxz cont # (13) branch not taken
|
jcxz cont # (13) branch not taken
|
movw $0, %cx
|
movw $0, %cx
|
jcxz exit # (13) branch taken
|
jcxz exit # (13) branch taken
|
hlt
|
hlt
|
exit:
|
exit:
|
ret $10 # (10)
|
ret $10 # (10)
|
|
|
.org 0x2000
|
.org 0x2000
|
call *(0x3000) # (3)
|
call *(0x3000) # (3)
|
movw $0, %dx
|
movw $0, %dx
|
push %dx
|
push %dx
|
popf
|
popf
|
hang:
|
hang:
|
movw $1, %cx
|
movw $1, %cx
|
loopnz hang # (8) branch not taken
|
loopnz hang # (8) branch not taken
|
loopne cont1 # (8) branch taken
|
loopne cont1 # (8) branch taken
|
hlt
|
hlt
|
cont1:
|
cont1:
|
lret # (11)
|
lret # (11)
|
.org 0x3000
|
.org 0x3000
|
.word 0xfde0
|
.word 0xfde0
|
.word 0x4000
|
.word 0x4000
|
.word 0xf000
|
.word 0xf000
|
|
|
.org 0x3200
|
.org 0x3200
|
movw $0x2ff0, %bx
|
movw $0x2ff0, %bx
|
movw $0x10, %si
|
movw $0x10, %si
|
push %dx
|
push %dx
|
lcall *2(%bx,%si) # (5)
|
lcall *2(%bx,%si) # (5)
|
ret
|
ret
|
|
|
.org 0x4000
|
.org 0x4000
|
lret $2 # (12)
|
lret $2 # (12)
|
|
|
.org 65520
|
.org 65520
|
movw $0x1000, %sp
|
movw $0x1000, %sp
|
movw %sp, %ss
|
movw %sp, %ss
|
call start # (1)
|
call start # (1)
|
movw %cx, %ds
|
movw %cx, %ds
|
movw %bx, (0)
|
movw %bx, (0)
|
hlt
|
hlt
|
.org 65535
|
.org 65535
|
.byte 0xff
|
.byte 0xff
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.