83Plus:BCALLs:4345

From WikiTI
Jump to: navigation, search

Synopsis

Official Name: AdjMath

Unofficial Name: UpdatePointers

BCALL Address: 4345

Updates 23 pointers after memory has been inserted or deleted.

Inputs

  • DE = Location in RAM where memory was inserted/deleted
  • BC = Number of bytes to decrease each pointer by (use signed integer to increase the pointers)

Outputs

none

Destroys

  • HL, F

Comments

Each of the following pointers will be checked and possibly adjusted. If the address pointed to is strictly greater than DE, then BC will be subtracted from it. This means that if you insert memory at the address (iMathPtr1), the pointer will not be changed, which may or may not be what you expect.