CHANGES: AKALABETH_ZX48gd -> ge
-------------------------------
1st June 2017
   4 Removed redundant "DEF FN p$(p,q)".
  12 Changed the title slightly.
  17 Shortened keys display so that it doesn't extend into stats box.
 890-891 Stopped surviving creatures from following player down levels.
 907 Simplified the location info display in the stats box.
4507 Shortened Gremlin message so that it doesn't extend into stats box.


CHANGES: AKALABETH_ZX48gd -> gd
-------------------------------
20th January 2017

Change all references to FN r() & RND to use new assembler routine RAND (Toni Baker version of RND).
6,7,23,30(2),52,63(2),95,800,838,840,892,1155,1165,1176,1662,
1663,1680,4500(2),4509,4520

Correction to use of Magic Amulet by Fighter (also renumber line 1681 to 1680). References to 'Z' should be 'k'.
1680	IF p$="F" THEN
		LET k=INT (FN r(N)*R+N): LET i$=CHR$ (k+F8):
		GO TO VAL "1685"

Correction to quantity display in Shoppe. "c(u,Q)" at end of line 9240 should be "FN n(c(u,Q))".
9240	PRINT AT k8,kB;" " AND c(k6,N)<kA; c(k6,N):
	PRINT AT Q+u,kE;" " AND c(u,Q)<kA; FN n(c(u,Q)):
	GO TO VAL "9210"


CHANGES: AKALABETH_ZX48gc -> gd
-------------------------------
12th January 2017

Reset creature coordinates & HP in m$() during level setup or
when killed (fix spurious regeneration & inter-level movement).
890,1666

Don't allow Mage to select Rapier or Bow in combat.
1650,1652,1653

Check availability of selected weapon on every combat turn
(may have been stolen or thrown).
1650,1652,1653,1659

Add function "DEF FN n(n)=INT (n+0.5) AND n>0" for rounding to nearest integer & resetting -ve to zero (used in HP & inventory displays).
6,51,905,1663,1666,9085,9090,9094,9240

Rewrite dungeon line graphics display routine in assembler.
Corrections for handling of DRAW sign and PLOT with no DRAWs.
3,8,13,352,400-409

Correction to dungeon colouring.
4,210-256

Reorganise UDGs to have only 19 per bank to avoid 128 conflict.
4,5,15,206,800,825,826,828,851,852,898,940,1150,1155,1165,
1550,1580,1661,1674,1686,1690,4050,4060,9990,9991

Remove redundant use of "ABS ln" (as 'ln' is already forced +ve).
30,8000

Simplify handling of player icon changes.
31,90,940,1696

Make overground display quicker by dispensing with the coordinate evaluation sub-routine and moving the function into the lines 34-38 PLOTs rather than passing the values via  intermediate variables. Move display loop near to top of program. Simplify DATA initialisation & retrieval; discard b$().
31,32-45,100-190,8907

Make dungeon display quicker by only evaluating the colours once per move and setting INK with those variables during the subsequent display section.
202,208-256

Make dungeon display quicker by moving display setup sub-routine near to top of program. Also, set RESTORE point directly rather than using an indirect calculation based upon the last GO SUB stack entry. Also, simplify DATA selection to avoid duplication of l$/c$/r$ checks where possible. Also, move DATA lines from 610-657 to 110-157.
13,210-256,400

Move selected weapon display to auto-select line.
1652,1654

Discard some defined constants rendered redundant by these changes (dp5,C4).
1653,1663,1666,4500,8909,8910

Add a "Sell" option to the shop (SymbolShift+Letter).
9210,9215,9216,9227,9230,9236,9238

Show 'task' (target creature assigned by Lord British)
on Status screen.
1951,1952

Some POKE VAL ".....",PEEK VAL "....." weren't working as expected. Couldn't see why, so I just changed them to
POKE .....,PEEK ..... .
27,9510-9515