Categories
CoCo Urbane

Done with edline

Done with edline. When I added better comments I noticed that the exits of ldel and lbksp were identical. Then I noticed that by adding one instruction I could go to the main loop in lbksp instead of just the lbksp exit routine. Meant to be.

Categories
CoCo Urbane

Doing Labels Right

I had trouble staying asleep this morning. I’m rewriting my project for LWTools. My mind was sharp. Everything I rewrote seemed to work. I’m getting rid of the local labels. I’m using labels starting with K for kbd. L for edLine. S for screen. F for edFile. C for crunch. And U for Uncrunch. I’m keeping the label length down to six. Quite a challenge. When I get done it should work with both lwasm and EDTASM6308. I finally realized that I had forgotten to take my evening pills. Oh well.

Categories
CoCo Urbane

Doing Names Right

When using notepad++ with a .asm file the numbers are a pale red which I have a hard time seeing. I started making single digit numbers into hexadecimals which show black. Then I got the idea of changing the extension to .txt. Then everything is black. At first I saved them as .txt then deleted the .asm ones. Not good. Much better now I save a copy with a .txt extension open it in notepad++ and close the original with the .asm extension. My urbane.bat file copies the src\name.txt to ..\urbane\name.asm. I did the same with the .bas files. I already had a urbane.txt file so I changed urbane.bas to urbas.txt. Now urbane.bat copies src\urbas.txt to ..\urbane\urbane.bas. I closed all the files I wasn’t using in notepad++ instead of deleting them. Much better. Now I have no .asm or .bas files open in notepad++. Now all of the files that are open in notepad++ are in \src except urbane.bat which is in “VHD Images” Let the good times roll.

Categories
CoCo Urbane

LWTools

I want to write my urbane project in such a way that others will be able to understand what I have done. At the time it consisted of seven programs in three virtual floppy drives in Vcc on my laptop. I wanted to combine them into just three programs. I thought that I would use the mamou assembler. I started by working on the kbd routine in the edline.asm file. I made everything uppercase and replaced some local labels with normal labels in the edline.asm so that mamou would work on the file. In the kbd routine I replaced all the local labels with normal labels I also put in a lot of comments. When one holds a key down it repeats. It used to pause a little now and then. When I first wrote it I just accepted it. With the comments and normal labels I saw how to fix it. Then it froze completely every once in a long while. I fixed it. When you first press a key it waits a bit before it repeats. It now started repeating right away when a key was pressed twice. I fixed that. Since there will only be one .asm file I decided to call it urbane.asm. When you have .asm files in notepad++ numbers are pale red. I could hardly see them. I started replacing digits with $digit. With a .txt file everything is just black so I changed the .asm extension to .txt in the .src folder. Since I copy the urbane.txt file into the distribution folder before I assemble it I change the name to urbane.asm then. When I updated the urbane.bat file the urbane.bin gave a format error when I tried to load it. I puzzled a lot then I remembered that it worked before so looked it up in the .git repository. I was using a -3 option which is text instead of a -2 which is binary when I copied it into the virtual floppy. Changing a lot of local labels was really hard with one file. I had three .asm files. It was going to get really hairy. When mamou runs it gives out a message that it was deprecated and said to use LWTools. My son Ira installed LWTools on my laptop. Thanks Ira. I got it running with the edlin.asm file. It runs edtasm6309 assembler file as is. Now I can add a file to it and change it a little at a time. Let the good times roll.

Categories
CoCo Urbane

I need people, too

I was working on my urbane program almost to the exclusion of all else. I had this intense dream. I am retired, but in my dream I was back at work. People were trying unsuccessfully to find something meaningful for me to do. I could seem to be able to do nothing. The result of my dream was that I feel that now that I am retired the most important thing I need to do is relate to the people around me. My program should be what I do to occupy myself when there is no one available to relate to. The discomfort I had been feeling was lack of closeness. My wife Karen was lying beside me awake. We agreed to spend more time watching movies and TV in our area. Somehow we didn’t yet. I still worked on my program almost to the exclusion of all else. I started migrating urbane to the mamou assembler. I want to share what I’m doing with others. I will have only four files left. ED.BAS to shift Vcc to coco2 rom mode, URBANE.BAS to load URBANE.BIN and set up some variables and provide a place to save and load urbane files, and URBANE.BIN to do most of the work. When mamou runs it says that it is deprecated use LWTools. My son Ira used TeamViewer to get LWTools on my laptop for me. Thanks Ira. I had started by moving EDLINE.ASM to URBANE.ASM. To make it easier to port to other systems, I made everything uppercase. In Robert Gault’s EDTASM6309 upper and lower case are significant. In mamou Sam=sam, or=OR, and l@=L@. In EDTASM6309 each pair is different. I started on the keyboard routine. I replaced all of the local labels with meaningful labels. None longer than six characters. And I added meaningful comments. Holding a key down makes it repeat. In the old days it would pause once in a while. With the new comments I was able to see what to change to fix it. But if you held an arrow key down a long time it would freeze. Once more I was able to fix it. The routine is supposed to pause before starting to repeat, but if you press the same key twice it starts repeating right away. l haven’t been able to fix it yet. I decided to write in my blog instead. I used to charge my phone in our spare room. Every so often I would miss a call. I moved the charger to our living room. I’m waiting for my phone to charge. I fixed it. Now every key press pauses before it repeats. Hooray. Writing in my blog is a little like talking to someone else. I pretend that my son Ira will read this.

Categories
CoCo Urbane

Add Works

When last we visited I was going to jump on comments. Well, the kind of comment that doesn’t work is the single quote followed by the comment ‘this is a comment. The rem keyword works just fine. rem this is a comment. Problem solved. So I went back to my add two distances routine. I wrote what I thought should work. It didn’t. I couldn’t tell what was happening so I added a step mode into the urbane interpreter. The problem was obvious. Gosub returned to itself instead of the instruction after itself. Problem solved. As for moving the copy buffer back to the highlight buffer, I think that I will just use the highlight buffer for the read data buffer. Problem solved.

Categories
CoCo Urbane

Back in Business

A while back I had trouble when I used a mid mem buffer to copy lines from high mem so the rom interpreter could work on them. Strings messed up. I solved it by copying them to linbuf in low mem. It solved that problem but when I tried to input from a file the input routine wrote on top of the line I had copied into linbuf. I took a couple of weeks off trying to figure out how I wanted to go. Finally I remembered something I had read in the Tandy user’s manual. It was talking about trying to put strings into low mem where variables live from mid mem where user’s machine language programs live. It dawned on me that’s what I was doing when my urbane program in high mem said a$=”sam” and I put it into mid mem where user’s programs live. It suggested that I say a$=””+”sam” to put “sam” into regular string memory. I tried it. It worked.

I plunged back in. When I tried to read into linbuf from a file I got the same error. My son has me using git-hub. Unfortunately I forgot a step. To get the change into my test area. I have to kill Vcc, save my change in notepad++, insert the changes into the floppy image, wake Vcc up, copy the files from the floppy image into the hard drive image, load the assembler, and assemble the file that has been changed. When I got the same error I checked to see if the file had been changed on the Vcc hard drive image. It had. I finally realized I hadn’t loaded the assembler and assembled the file. When I did it worked like a charm.

When I tried to run my Earl program I had a line of garbage on the bottom of the screen. I thought it might be because I had used the buffer I use when I’m highlighting the keywords. I changed it. Gave it a dedicated buffer. Same result. Then I realized that it was the scale line that I fixed up at the beginning of the program. The old a$=”sam” problem. I said a$=””+”sam”. Presto it worked. I wondered if I should go to all the trouble to switch it back the highlight buffer. Sometimes I wonder if it’s worth it. 256 bytes. I remember when the thought of wasting that much memory would drive me up a wall. My whole program will probably be less tan 4k when I’m done. That’s 1/16 of my program. Maybe it is worth it. Oh well. Another day. I tried to put a comment in my urbane program. It didn’t work. I guess you tell how few comments I make. I guess that’s something that’s I should do next. Maybe I can manage to switch the copy buffer back to the highlight buffer somewhere in there.

Categories
CoCo Urbane

I’m Having Fun

I have the urbane editor and interpreter written. Unfortunately It takes fifteen seconds to load. It seems like forever. Of course it’s not like when I started studying computers. One run a day. There’s a much more serious problem. I copy the next line to execute into the direct line buffer. That buffer is called the line input buffer for a reason. When I try to do input the input clobbers my commands. I was thinking of sharing the buffer. Write my commands into the far end of the buffer. The problem is that once in a while the input would overtake the commands. And there remains the problem of a buffer to handle reading data from the data statements in the program. I was thinking of dedicating a medium resolution graphics page for my two buffers. Six data pages. What a waste. Then I recalled low resolution pages. Two data pages per graphics page. Perfect. I never use low resolution buffers. I won’t mind. Who am I kidding. No one else is going to use urbane anyway. lol.

Categories
CoCo Urbane

Earl’s Way

Remember how I left out an at sign and got strange results? This time I left out the &. It was sure I meant print at h80. That is what I told it. Of course I had never told it what value h80 had, so it assumed I meant zero. There it was what I wanted to print printing at the top of the screen. I assumed urbane was flawed. While it was just doing what I told it to do.

As my father used to say there’s the easy way, there’s the hard was, and then there’s Earl’s way that makes the hard way look easy. When I was editing an urbane line, every once in a while something would show up at the end of the line. I looked at my code and discovered that every time I refreshed the screen, I set up an inverse video cursor line then changed it back to normal before putting it on the screen. I fixed it by leaving the whole screen with reverse video keywords until I started editing a line. Then I did a straight forward uncrunch without making it inverse first. I haven’t tried it out very much, but I have great hopes.

Well, I have a program that marches a greater sign one way across the screen and then turns it around and marches it back as a less than sign. I always said that when I got it so that it would do that that I would expose my project to the light of day. Soo I guess that I will. Fortunately I have a computer savvy son who will help me with that. I hope.

Categories
CoCo Urbane

The Good and the Bad

I’ve been using github for a while. Everytime I did a commit It gave this error message in a big window. CRLF instead o f LF line endings. I just endured it. Finally I mentioned it to my son. He spent a while on it. Now no more error messages. Everytime I do a commit and it just does it I get a warm feeling all over. That’s the good.

I have behavior health issues. I’m willing to accept creepy ideas as real when they aren’t necessarily so. I have my IMUrbane project working well enough that I can write programs in Urbane basic that actually do things. I wrote a meaningful program which gave me some strange results. Instead of assuming my project was working and my Urbane program was faulty. I spent several hours trying to pin down how my project was flawed. Coco basic and Urbane basic which is just an extension of it both have this feature that if you say print@n it will print at a spot specified by n. Finally I thought maybe I should look at my Urbane program. I tried likely commands on the command line. Finally I discovered that I had left out the @ sign. It made some really strange results. It printed n at the current spot on the screen. Oh well. All’s well that ends well.