![]() |
delete_between | Function (ROM Call 0x2C3) |
AMS 1.01 or higher | estack.h |
void delete_between (ESI ptr1, ESI ptr2); |
Deletes a sequence of bytes from the expression stack.
delete_between deletes a sequence of bytes between ptr1 and ptr2 (more precise, starting at ptr1+1 and ending at ptr2) from the expression stack. It does this by moving the memory from ptr2+1 to top_estack downwards (using memmove) and adjusting top_estack. This routine assumes that ptr1 and ptr2 really point to parts of the expression stack and that ptr2 is above ptr1, otherwise the result is unpredictable.