Prev: 47330 Up: Map Next: 47379
47353: Move View
Used by the routines at ScrollViewDown and ScrollViewUp.
Moves the view by adding a value to 23780 and subtracting it from ViewOriginDifference and ViewPosition.
Input
DE The amount
MoveView 47353 LD HL,(23780) Fetch the word at 23780 into HL.
47356 ADD HL,DE HL takes DE.
47357 LD (23780),HL Write HL at 23780.
47360 LD HL,(23790) Fetch the word at ViewOriginDifference into HL.
47363 AND A See whether A is zero.
47364 SBC HL,DE Subtract DE from HL. (with the carry)
47366 LD (23790),HL Write HL at ViewOriginDifference.
47369 LD HL,(23778) Fetch the word at ViewPosition into HL.
47372 AND A See whether A is zero.
47373 SBC HL,DE Subtract DE from HL. (with the carry)
47375 LD (23778),HL Write HL at ViewPosition.
47378 RET Return.
Prev: 47330 Up: Map Next: 47379