Welcome! Please add your programs.

Basic and Machine Language

Moderator: Moderators

User avatar
Soloman
Vic 20 Amateur
Posts: 65
Joined: Fri Sep 22, 2023 1:46 am
Location: Bilthoven, Netherlan
Occupation: Data-analyst

Re: Welcome! Please add your programs.

Post by Soloman »

boraxman wrote: Mon Sep 02, 2024 4:29 am

Source is attached. The ZIP file contains the source, the graphics, and a .prg ready to run.

smilebounce2.png
Very nice. Thank you for attaching the assembler source too. I am a beginning assembler VIC-20 programmer, so I can see how you programmed it. I am using the SYS-method. Before I start programming in the monitor I start with a line 1 SYS 4109.
So I can start with my code at $100D. I have room to $1DFF.
Saving .S "program" 8 1001 xxxx
And then I can load the program from disk with the normal LOAD "program",8 and it works.

I had to figure out how I had to start your .PRG
It's always tricky. I prefer the SYS-option. The user doesn't have to figure out how to run the program, just load it from disk.
User avatar
Soloman
Vic 20 Amateur
Posts: 65
Joined: Fri Sep 22, 2023 1:46 am
Location: Bilthoven, Netherlan
Occupation: Data-analyst

Re: Welcome! Please add your programs.

Post by Soloman »

I wrote my first text-adventure-game for the unexpanded VIC. I was used to the Commodore <plenty of memory> 64, but now I only had 3581 bytes. :D
Pfff, I economized by making a world of only nine places with one-word-commands. Well, it turned out to a simple adventure, but I made the step programming a whopping text-adventure on the unexpanded VIC-20. :P
And I run into the infamous INPUT-bug also (it even bugs with PRINT "xxxxx";:INPUT "xxxx";... ).

It's a christmas adventure, you must find a christmas tree for your home. This week I'm testing the game and I will come back here with it next weekend!
Have a nice working week you all!
User avatar
Soloman
Vic 20 Amateur
Posts: 65
Joined: Fri Sep 22, 2023 1:46 am
Location: Bilthoven, Netherlan
Occupation: Data-analyst

Re: Welcome! Please add your programs.

Post by Soloman »

But now again, I struggle with the end of the program. Again garbage. Always the last line. I do nothing in the zero page, I just program in BASIC.
It looks like this in the monitor:

Image
The last programlines are DATA-lines. The last is DATA 6,,5,
On location $1C8D you see the DATA-statement ($83). The comma's are $2C. Address $1C93 is the last one.
After that is the rotten apple: no 3 times $00 (end of program), but other. I'm really used to it already, 10% of my savings to disk this happens. I replace it with 3 times $00 and the problem is solved. But it's weird....
Strange thing is that the pointer the next line (that isn't there) is pointing to $1C95.
Post Reply