Search found 342 matches

by Bobbi
Sun Nov 06, 2016 10:55 am
Forum: Programming
Topic: V-FORTH - Forth-83 for the VIC
Replies: 281
Views: 74525

Re: V-FORTH - Forth-83 for the VIC

I am a Forth newbie (well I used to have a Jupiter Ace a million years ago, but I am very rusty ...)

How does V-Forth compare to Datatronic VICForth 1.1? It is amazing we have multiple implementations to choose from!
by Bobbi
Sun Nov 06, 2016 9:04 am
Forum: Programming
Topic: Color RAM
Replies: 2
Views: 1058

Re: Color RAM

Thanks Mike - I didn't see your answer until now. I'll go read that other thread!
by Bobbi
Sun Nov 06, 2016 9:03 am
Forum: Collecting and History
Topic: Spike's Peak Game on eBay
Replies: 10
Views: 2466

Re: Spike's Peak Game on eBay

Actually I see there are quite a few Xonox carts on eBay. Pricey though!
by Bobbi
Sat Nov 05, 2016 4:37 pm
Forum: Collecting and History
Topic: Spike's Peak Game on eBay
Replies: 10
Views: 2466

Spike's Peak Game on eBay

Hey folks - I have never heard of this game before. Is it known?

http://www.ebay.ca/itm/Commodore-Vic-2 ... wTA9X6INd

(Hope the eBay link works.)
by Bobbi
Sat Nov 05, 2016 11:42 am
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

I am still playing with this with the intention of first putting together a minimal language (think Tiny Basic) and then seeing if I can extend it into something a little more useful. snapshot.png So far all that is possible is to declare integer variables (not update them yet, that is coming soon!)...
by Bobbi
Sat Nov 05, 2016 6:52 am
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

When coding I tend to use lots of brackets, rather than remember all the precedence rules. Makes the code easier to read, especially for those of us that use lots of different languages with slightly different rules! I will have to take a look at how much work it is to rewrite this little parser in ...
by Bobbi
Fri Nov 04, 2016 10:22 pm
Forum: Collecting and History
Topic: PET keys?
Replies: 53
Views: 10997

Re: PET keys?

Makes sense since it was the FCC making a fuss.
by Bobbi
Fri Nov 04, 2016 9:09 pm
Forum: Collecting and History
Topic: PET keys?
Replies: 53
Views: 10997

Re: PET keys?

No metal box around your VIC chip I see.
by Bobbi
Fri Nov 04, 2016 9:06 pm
Forum: Hardware and Tech
Topic: Retrobright keyboard disaster and fix
Replies: 12
Views: 8897

Re: Retrobright keyboard disaster and fix

Nice job!
by Bobbi
Fri Nov 04, 2016 7:07 pm
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

The attached debugged C source builds with cc65 and runs on VICE.
Let me know if you find any more bugs! :roll:

(BTW this workload runs 7800 times faster on my PC than on the VIC!)
by Bobbi
Fri Nov 04, 2016 6:57 pm
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

Yay! I got the expression parser working on VICE. (Will try it on the real VIC once I get access to the TV!) There were a couple of lurking bugs in the code which compiling with cc65 exposed. snapshot.png I'll send the updated C source once I clean it up a bit! I still want to hand code this in 6502...
by Bobbi
Fri Nov 04, 2016 5:22 pm
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

I think this tweak fixes the problem you noticed Mike. It makes precedence independent of the token value. The implementation is very quick and dirty just to prove the point, but it seems to do the trick.

Thank you for the alpha testing!

Code: Select all

Enter expression: 
1-3+2
0
Enter expression: 
1+2-3
0
by Bobbi
Fri Nov 04, 2016 4:46 pm
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

I think the shortcoming is that it uses the token value as the precedence but these need to be independent to allow two different tokens to have the same precedence ...
by Bobbi
Fri Nov 04, 2016 4:42 pm
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

Like I say it is quick and dirty code - just my tinkering from this afternoon. It is based on the URL referenced in the source, and there may be some shortcomings to his algorithm implementation. I suspect it is possible to do it without the recursion which would be more stack friendly (important on...
by Bobbi
Fri Nov 04, 2016 4:19 pm
Forum: Programming
Topic: Programming language implementation ...
Replies: 30
Views: 4741

Re: Programming language implementation ...

This version builds with cc65 (but I haven't tested the resulting code on 6502.)
I had to comment out the power function to get it to build with cc65.
This is very quick and dirty code, needless to say.