17 lines
192 B
ArmAsm
17 lines
192 B
ArmAsm
.define _sbrk
|
|
.sect .text
|
|
.sect .rom
|
|
.sect .data
|
|
.sect .bss
|
|
.sect .text
|
|
.extern _sbrk
|
|
.sect .text
|
|
_sbrk:
|
|
enter[], 0
|
|
movd @.reghp,r7
|
|
addd 8(fp),r7
|
|
movd r7,@.reghp
|
|
movd @.reghp,r4
|
|
exit []
|
|
ret 0
|