26 lines
349 B
ArmAsm
26 lines
349 B
ArmAsm
|
.define _brk
|
||
|
.define _sbrk
|
||
|
.extern _brk
|
||
|
.extern _sbrk
|
||
|
.text
|
||
|
_sbrk: move.l nd,d0
|
||
|
add.l d0, 4(sp)
|
||
|
move.w #0x11,d0
|
||
|
move.l 4(sp),a0
|
||
|
trap #0
|
||
|
bcs lcerror
|
||
|
move.l nd,d0
|
||
|
move.l 4(sp),nd
|
||
|
rts
|
||
|
lcerror: jmp cerror
|
||
|
_brk: move.w #0x11,d0
|
||
|
move.l 4(sp),a0
|
||
|
trap #0
|
||
|
bcs lcerror
|
||
|
move.l 4(sp),nd
|
||
|
clr.l d0
|
||
|
rts
|
||
|
.data
|
||
|
nd: .long endbss
|
||
|
.text
|