I'm having fun with DREAM assembler on a real dragon64, some 6809 books and an old letter quality printer. I've learned quite to try to "invent examples" on my own. Now I'm trying to do a "simple string manipulation library", at the moment at the 2nd stage of input from keyboard and output on screen: I'm capable of getting a string from keyboard and printing it on the screen, via subroutine and memory and the first version of this program works. The problems arrive when I try to implement a more general library that permits user to select where the string has to be printed, on screen on or serial. At the moment I'm trying to have the same results of the first version,the input from keyboard and the output to screen but all I have is constant garbage at every run and at the end only my complete string. Could I ask you some help to let me figure out what's going on?
I've uploaded image with the code...sorry they are scan of the printed code from Dream...I can save code on cassette only with the /S command on DREAM or with a /PM command printing the code...so funny...so old style....so tedious to do....
If you have time to help me thank you in advance
![Smile :)](./images/smilies/icon_e_smile.gif)
PS: another thing I would ask you: from the book "inside the dragon", my main source, I've seen many constant char declaration; they don't work as expected with my program. I've found the one that works is
MYSTR FCC LENGHT+1,/STRING/,0
Attachment:
-first version of the program - second version of the program: on the image there are the main and the newer version of the PRINTL subroutine. Other 2 subroutines remain the same of the first image