Search found 237 matches

by wimoos
Sun Oct 01, 2017 8:03 am
Forum: Programming
Topic: BASIC 3.5 on a VIC?
Replies: 5
Views: 205

Re: BASIC 3.5 on a VIC?

A BASIC with more instructions is also slower. Not necessarily so, it entirely depends what you want from it. WimBasic http://wimbasic.webs.com has some features that really can improve speed of your Basic programs: SuperNumbers, DIVMOD, Mike's SQR implementation, DEEK/DOKE, FRAC, WHiLE/WEND/QUIT, ...
by wimoos
Wed Aug 30, 2017 11:57 am
Forum: Programming
Topic: New version of WimBasic
Replies: 10
Views: 3263

Re: New version of WimBasic

After two years, I have released yet another new version of WimBasic, in which more improvements have been implemented. The most noticeable improvements are around the PRINT USING statement. In previous versions: 1) a formatting string containing double quotes would be misinterpreted 2) the syntaxis...
by wimoos
Mon Mar 20, 2017 5:51 am
Forum: Programming
Topic: Help converting numbers onto Char in ML
Replies: 7
Views: 354

Re: Help converting numbers onto Char in ML

Printing signed 16-bit integers (where the high bit of the msb denotes the sign):

Code: Select all

   LDA msb
   LDY lsb
   JSR $D391
   INY
   JMP $DDD7


Regards,

Wim.
by wimoos
Tue Feb 28, 2017 1:05 am
Forum: Programming
Topic: The IF statement....
Replies: 12
Views: 352

Re: The IF statement....

It is not so much that the IF statement slows things down, it's more the formula after the IF statement. There's a few things that you can do to speed that up. Machinelanguage is one of them. In arcade games this helps dramatically. Arcade games are usuallly around integers and byte, whereas in BASI...
by wimoos
Thu Jan 19, 2017 1:45 am
Forum: Programming
Topic: Analog clock in BASIC
Replies: 6
Views: 522

Re: Analog clock in BASIC

P.S. CBM BASIC processes integers *slower* than floats - that's because there are no dedicated integer routines in the interpreter, and use of integers incurs extra conversions. Neither do simple integer variables use less space than floats (both require 7 bytes per variable - 2 bytes for the name,...
by wimoos
Tue Jan 17, 2017 1:09 am
Forum: Collecting and History
Topic: Unknown Stack cartridge
Replies: 10
Views: 304

Re: Unknown Stack cartridge

These RAM chips are the good old 2114's. They are 1024x4 bits. So, 6 of them are arranged on the board as 3072x8 bits. (As you can deduce from the wiring pattern on the left in the second picture, where the datalines are divided 50/50 over the two rows of 3 chips). These are used as base memory in m...
by wimoos
Fri Jan 06, 2017 2:36 am
Forum: Programming
Topic: Hello and problem moving screen memory
Replies: 5
Views: 247

Re: Hello and problem moving screen memory

We know that the VIC-20 video chip gets two things from memory: "screen memory" and "the character set." But it sees the computer's memory in an unusual way: The VIC chip is not able to address memory in the expansion connector. In my VIC I have soldered 3K memory piggyback on e...
by wimoos
Fri Dec 09, 2016 6:12 am
Forum: Programming
Topic: Video Poker
Replies: 115
Views: 27284

Re: Video Poker

In the attachment, please find the Videopoker program (Wheel version), CBM Basic.

It runs on an unexpanded VIC with 260 bytes free. Enjoy!

Regards,

Wim.

videopoker.zip
Videopoker Wheel version
(1.97 KiB) Downloaded 26 times
by wimoos
Tue Dec 06, 2016 1:49 am
Forum: Programming
Topic: Video Poker
Replies: 115
Views: 27284

Re: Video Poker

That would mean that I would have to reverse-engineer my WimBasic version towards CBM Basic. In fact, the scoring routine in my previous reply can just be called with a GOSUB 100 as soon as the array H() holds the drawn cards. Variable W is then returned as the index to the scoring table. W=0 when n...
by wimoos
Mon Dec 05, 2016 1:03 pm
Forum: Programming
Topic: Video Poker
Replies: 115
Views: 27284

Re: Video Poker

Its easier than I thought. You have to adapt line 190 in my earlier reply :-). In array K() all drawn values are sorted low-to-high. All values are different, because doubles scored earlier. In line 190, the difference between K(5) and K(1) represents a straight (ace values 14). The difference betwe...
by wimoos
Mon Dec 05, 2016 2:58 am
Forum: Programming
Topic: Video Poker
Replies: 115
Views: 27284

Re: Video Poker

Can a card have two values at the same time ? This was not accounted for, so a fix is definitely needed.
I will have a look, and come back as soon as I find a decent solution.

Regards,

Wim.
by wimoos
Mon Nov 21, 2016 2:30 pm
Forum: Programming
Topic: Wanted: projects to be released on Cartridge
Replies: 8
Views: 453

Re: Wanted: projects to be released on Cartridge

I don't know what special requirements there are to an FE3 cart format file, other than removing the first two bytes (the load address).
There is a wimbasic.cart file in the zip-file now that has that.

Regards,

Wim.
by wimoos
Mon Nov 21, 2016 1:48 am
Forum: Programming
Topic: Wanted: projects to be released on Cartridge
Replies: 8
Views: 453

Re: Wanted: projects to be released on Cartridge

You are more than welcome to put WimBasic (from http://wimbasic.webs.com ) on a cartridge. Please let me know when you're downloading.

Regards,

Wim.
by wimoos
Mon Aug 01, 2016 2:18 am
Forum: Games
Topic: Threes
Replies: 11
Views: 3320

Re: Threes

Hello Schlowski, I brought it down further (in WimBasic of course :-)) to 53 lines and 2274 bytes. An interesting technique I now used (that can also be done in CBM basic) is redefining functions. I applied that to the display routine, where during play the P% matrix is referenced, and variable colo...
by wimoos
Thu Jun 16, 2016 10:16 am
Forum: Programming
Topic: expanded vs unexpanded
Replies: 13
Views: 687

Re: expanded vs unexpanded

The one major thing that changes is the location of screen memory. It moves from $1E00 to $1000, when an expansion other than 3K is applied. Along with that, the location of the color-RAM is changed from $9600 to $9400. Because all Basic programs have to be continuous in memory (no gaps between part...

Go to advanced search