The title says it all. There are 10, 3 letter words in the dictionary. The recommended way is to use fcb directives to set up the dictionary and then set up a fcb for the word that needs to be checked. Use a rmb to allocate the return value (1 for a match, 0 for no match). There is going to be a subroutine with a loop. The subroutine will check the words letter by letter. If the first letter of the checkword isn't the same as the first letter in the dictionary, it will move on to the next word. If a letter matches with the checkword, move on to the next letter until you reach the end of the word. If the words match, return a 1. If there is a mismatch, then start over at the first letter of the next dictionary word.
I'm not really sure how to start. How do I start it off with fcb directives? Would it need to be: fcb "bat",0 or should I just put the list in an array? There'll be other questions once I get to that part of the program. The assembler program that is being used is the THRSim11. It's for a class. If it was a calculator, I would understand what all is going on.
I'm not really sure how to start. How do I start it off with fcb directives? Would it need to be: fcb "bat",0 or should I just put the list in an array? There'll be other questions once I get to that part of the program. The assembler program that is being used is the THRSim11. It's for a class. If it was a calculator, I would understand what all is going on.