Thank you so much! Wish I would have had it earlier, although it was good for my French to struggle with the French version.....
Now finally understand why RESTORE linenumber did not work. Did not understand there needed to be a ! at the start.
Thank you so much! Wish I would have had it earlier, although it was good for my French to struggle with the French version.....
Decided to use labels after all. Makes the code much easier to maintain and much more reusable.
Yes, #2DF contains the last keypress. If it is XOR'ed with #80, it sets the char to having been processed (ROM routine sets it OR #80 to indicate needs processing..)>Nothing on a keyboard buffer there and clearing it, but I did see that the last keypress is apparently at address 735 ("$2DF (735) Contains the ASCII code + 128 of the last pressed key"). So thought, lets try POKEing a zero to 735 and see if that helps. And yes, it does seem to work. Is this indeed the way to clear a keyboard buffer and remove any last pressed key?
I have to admit to being quite interested in your discoveries with SEDORIC. Will you open the sources when the game is released, or perhaps do other blog/articles on your discoveries? I think SEDORIC gives Oric a bit of heft ..Gives indeed very readable source code and indeed compact target code.
Yes, there will be a second part, but it's about programming the keyboard 100% in assembler, so not really for BASIC use.
Code: Select all
IF KEY$<>"" THEN GET K$