I created a sort of DOS prompt because I am writing an adventure.
So I created a jump table that each function all you have to do is LD A with a number like 7 and it will jump to the 7th subroutine in that table. Pretty easy and strait forward.
However, I could not find any code out there that can parse a table with the commands such as GO, NORTH, UP, TREE or whatever and give it a number if you type it in.
I created a table with the commands of variable length and a buffer space to hold what you type in.
So I have the two things that I can compare such as...
LD HL, buffer
LD DE, Table
That was all I can figure out.
I suspect that it would be some routine to compare like...
LD A, (DE)
LD B, (HL)
Compare A and B
Then some routine after that to create a number between 0-255.
Is there source code or instruction to follow because I have looked through ZAK's, Assembly Language routines, MSX books and I can not find anything on the subject. I might even be working it wrong in my google search.
All help is welcome