Added some comments and a CVS header.
This commit is contained in:
parent
39689a4de9
commit
5165f0b11f
|
@ -1,8 +1,22 @@
|
||||||
|
! $Source$
|
||||||
|
! $State$
|
||||||
|
! $Revision$
|
||||||
|
|
||||||
.sect .text; .sect .rom; .sect .data; .sect .bss
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
||||||
.sect .text
|
.sect .text
|
||||||
.define .strhp
|
.define .strhp
|
||||||
.extern .reghp, .limhp, EHEAP, .trp
|
.extern .reghp, .limhp, EHEAP, .trp
|
||||||
|
|
||||||
|
! Updates the heap pointer:
|
||||||
|
!
|
||||||
|
! int .strhp(void* newpointer)
|
||||||
|
!
|
||||||
|
! .reghp is the current heap pointer;
|
||||||
|
! .limhp is the current top of memory.
|
||||||
|
!
|
||||||
|
! If the desired new heap pointer is above the top of memory, then BRK is
|
||||||
|
! called to extend the memory.
|
||||||
|
|
||||||
.strhp:
|
.strhp:
|
||||||
pop bx
|
pop bx
|
||||||
pop ax
|
pop ax
|
||||||
|
|
Loading…
Reference in a new issue