Path: utzoo!attcan!uunet!cs.utexas.edu!ico!isis!nbires!maa From: maa@nbires.nbi.com (Mark Armbrust) Newsgroups: comp.binaries.ibm.pc.d Subject: Minor bug in nethack 2.3e Summary: and a patch to fix it Keywords: nethack bug patch Message-ID: <401@nbires.nbi.com> Date: 26 May 89 20:58:53 GMT Reply-To: maa@nbires.UUCP (Mark Armbrust) Organization: NBI Inc, Boulder CO Lines: 30 I had a bit of a problem getting nethack 2.3e running on my system. I tracked the problem down to the fact that nethack discards the TERMCAP environment variable if it does not begin with a "/" or a "\". (For my system, TERMCAP= C:\MISC\TERMCAP.) Here is a simple patch to make it accept all values of TERMCAP: at offset 5487Eh (346,238 dec) in NETHACK.EXE, change 74h to EBh. This forces it to accept any value of TERMCAP. (You did save BPE.EXE from comp.binaries. ibm.pc last week, didn't you? If not, ...) >ren nethack.exe nethack >debug nethack -r AX=0000 BX=0006 CX=B82E DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000 DS=20F8 ES=20F8 SS=20F8 CS=20F8 IP=0100 NV UP EI PL NZ NA PO NC 20F8:0100 4D DEC BP -e 70f8:497e [note: 70f8 is DS + 5000] 70F8:497E 74.eb -w Writing 6B82E bytes -q >ren nethack nethack.exe > Happy Hacking, Mark Armbrust maa@nbires.nbi.com maa@nbires.UUCP