2 ; Ullrich von Bassewitz, 2004-07-17
4 ; size_t __fastcall__ _heapblocksize (const void* ptr);
6 ; Return the size of an allocated block.
10 .export __heapblocksize
17 ;-----------------------------------------------------------------------------
22 ; Decrement the block pointer so it points to the admin data
24 sub #HEAP_ADMIN_SPACE ; Assume it's less than 256
30 ; Load the size from the given block
35 .if (.cpu .bitand CPU_ISET_65SC02)
42 ; Adjust it to the user visible size