Bug fixed: a0 is changed by call to _brk, so it should be saved & restored.
This commit is contained in:
parent
14a9b13fd3
commit
8f7a447719
1 changed files with 2 additions and 0 deletions
|
@ -10,9 +10,11 @@
|
||||||
add.l #0x400,d0
|
add.l #0x400,d0
|
||||||
and.l #~0x3ff,d0
|
and.l #~0x3ff,d0
|
||||||
move.l d0,.limhp
|
move.l d0,.limhp
|
||||||
|
move.l a0,-(sp)
|
||||||
move.l d0,-(sp)
|
move.l d0,-(sp)
|
||||||
jsr _brk
|
jsr _brk
|
||||||
tst.l (sp)+
|
tst.l (sp)+
|
||||||
|
move.l (sp)+,a0
|
||||||
tst.w d0
|
tst.w d0
|
||||||
bne 2f
|
bne 2f
|
||||||
1:
|
1:
|
||||||
|
|
Loading…
Add table
Reference in a new issue