I typed in this program from the Dutch translation of mr Tang's book.
It did not work very well, fully buggy not debugged since 1984 I think.
When I changed the '-typo to 9 the correct Hex values were given.
10 DEF FN d(s$) = (s$ > "9") * (CODE s$-55)+(s$ <= "9") * (CODE s$ - 48) - (s$ > "9") * 32
So thanks for that!
It was still very buggy and since I have the english translation as well I found more typo's, of myself l and 1 mixups mainly.
Now most of the program seems to work except:
I cannot enter program codes in lines other than the consecutively way:
example: line nr: 14 C9
line nr: 26 E3
It does not change line nr 14 or 26 it only changes (after a Dump) line 1.
When I do it the consecutively way like :
line nr: 01 04
line nr: 02 A4
line nr: 14 C9
Then it works, so basicly I cannot edit a previously made program, I have to redo it all. Starting with line 1 all the way to the end.
I looked over the code and over and over but cannot find more typo's yet.
Is this a bug? Or just the way this old monitor program works?
Also Loading a previously saved machine code file does not work:
after loading when I press a key, the program ends with a D-break message.
Perhaps a typo or perhaps a known bug by any of you?