Having settled on the use of the win2c64 compiler for now, I wanted to push ahead and continue getting my hands dirty with the 6502/6510 instruction set. I decided to write a simple routine that would clear the screen.
The first step I figured would be to write the basic version. It’s quite a straight forward routine. The default screen memory location starts at $0400 (or 1024 in decimal) and is 1024 bytes long. The first 1000 bytes is allocated for the screen characters (40×25) and these are the bytes I need to modify when clearing the screen.
For this routine, I figured I’d simply populate the screen with spaces to “clear” it. All the routine needs to do is poke the decimal value for space (32) into each screen character location.
One of the very last purchases I made for my C64 before moving onto the PC was an Assembly Language book.
I first read about it in issue #40 of Commodore Format (January 1994) and decided to order a copy at the time. Around the same time Commodore Format ran a small assembly language series, which I will dig out from my collection and revisit over the coming week also. At some point in time I removed the binding from the book and put it into a protective sleeve binder to ensure the pages did not bend or rip over time as I moved my C64 gear around. I found it yesterday with a number of programming notes I had made so long ago, and this should come in handy as a physical reference and something to read while on the train.
With the site up and running, I figured I’d next look at some sort of development environment to work with. My initial thoughts were to fire up my C64 and program directly on that. After some consideration I decided that this would not be the best approach. Having the C64 hooked up all the time at my desk would take up a lot of space. Plus I’d need to source a TV and find room for that too. Then there is the whole dealing with disks and typing on the C64 keyboard. While it would be the more authentic way to develop on it (and how I used to do it), it would be too counter productive. It’s a shame, I was looking forward to using my Action Replay cart again.