Search found 4675 matches

by Mike
Sun Mar 10, 2013 4:10 am
Forum: Programming
Topic: The limitations of Austro compiler
Replies: 13
Views: 2739

Well there's always cc65, but that's a cross-compiler and different language of course. Most of the speed enhancements of Austro-Comp stem from: - pre-evaluating constants (so it's not 'necessary' anymore to put often used values into variables), - calling the arithmetic routines in the BASIC interp...
by Mike
Sat Mar 09, 2013 7:53 pm
Forum: Programming
Topic: Alternatives to FOR duration loops?
Replies: 13
Views: 1431

This is for unexpanded VIC-20: 0 REMZZZZZZZZZZZZZZZZZZZ 1 FORT=0TO18:READA:POKE4102+T,A:NEXT 2 DATA32,241,215,134,252,165,162,133,251,56,165,162,229,251,197,252,144,247,96 Line 0 contains 19 Z's. Run this once. After this, you can delete lines 1 and 2. Never modify line 0. SYS4102,X with X between 1...
by Mike
Fri Mar 08, 2013 4:04 pm
Forum: Games
Topic: German Magazine - Type-Ins - Compute Mit
Replies: 133
Views: 36017

how do you print the code of the the prg files There's the petcat utility bundled with VICE, which converts *.prg to ASCII *.txt and vice versa. It has some weaknesses though, because graphic characters with the C= key are quoted as hex-codes only. Alternatively (again using VICE) the file is loade...
by Mike
Thu Mar 07, 2013 2:56 pm
Forum: Games
Topic: [Finished] Yacht Dice Game
Replies: 23
Views: 7169

KingTrode wrote:[...] it does need some sound FX [...] Probably "Dice Throw" / "Invalid Selection" / "Succesful Score " or something along those lines.
Oh, I thought you'd add some speech synthesis if you were going to use expanded memory.
by Mike
Thu Mar 07, 2013 1:30 pm
Forum: Programming
Topic: Commodore FREE One Liners competition.
Replies: 55
Views: 7869

I already sent it to Nigel as e-mail, together with an explanation how the exploit works. :)
by Mike
Thu Mar 07, 2013 12:55 pm
Forum: Programming
Topic: Commodore FREE One Liners competition.
Replies: 55
Views: 7869

Here's my ultimate-rule-bending entry: 'bird.prg'. :mrgreen:
by Mike
Thu Mar 07, 2013 11:15 am
Forum: Programming
Topic: Commodore FREE One Liners competition.
Replies: 55
Views: 7869

Kweepa's program could go into a single line, BTW.
by Mike
Wed Mar 06, 2013 11:50 am
Forum: General Topics
Topic: Auto add emulator links?
Replies: 4
Views: 1264

I'm sorry, but I wouldn't want an automated script to change my posts. Furthermore, I suppose you couldn't guarantee that any *.prg file runs without hassles on your emulator. If you add the link manually in an own follow-up post, that's fine and indicates you checked it at least. But if such an aut...
by Mike
Tue Mar 05, 2013 2:10 pm
Forum: Games
Topic: [Finished] Yacht Dice Game
Replies: 23
Views: 7169

Okay then, the +3K RAM expansion just moves the BASIC start from $1001 down to $0401, but leaves screen memory and colour RAM at the same place as in the unexpanded configuration. Most BASIC programs written for the unexpanded VIC-20, even those that use redefined characters, run without any issues ...
by Mike
Tue Mar 05, 2013 12:41 pm
Forum: Programming
Topic: [Q] are ORs and ANDs short-circuited?
Replies: 5
Views: 1135

Indeed, the form: IF <condition_1> THEN IF <condition_2> THEN ... instead of: IF <condition_1> AND <condition_2> THEN ... is quite often found in BASIC programs, and is easily generalised for more conditions. Note however these are only equivalent, when all conditionals are Boolean expressions. If y...
by Mike
Tue Mar 05, 2013 11:31 am
Forum: Games
Topic: [Finished] Yacht Dice Game
Replies: 23
Views: 7169

Mayhem wrote:+3K RAM provides its own problems, [...]
What kind of problems?
by Mike
Tue Mar 05, 2013 11:30 am
Forum: Programming
Topic: [Q] are ORs and ANDs short-circuited?
Replies: 5
Views: 1135

Re: [Q] are ORs and ANDs short-circuited?

Are the "and" and "or" operators short-circuited in basic v2? No, they aren't. Expressions are always evaluated in full. Furthermore, AND, OR and NOT operate on signed 16-bit quantities. The result of a relational operator ('=', '<', '>' or any combination thereof) is -1 if the ...
by Mike
Mon Mar 04, 2013 4:52 pm
Forum: Games
Topic: [Finished] Yacht Dice Game
Replies: 23
Views: 7169

So any input on this front is most welcome. If you want to keep it somewhat restrained, you should consider a +16K RAM expansion as 'soft' limit. At the time, this was the biggest single RAM expansion cart sold by Commodore (the VIC-1111). Anything bigger than that would have required either a cart...
by Mike
Mon Mar 04, 2013 4:30 pm
Forum: Programming
Topic: Commodore FREE One Liners competition.
Replies: 55
Views: 7869

The screen editor of the VIC-20 accepts up to four physical lines as a single logical line, i.e. 88 characters. With abbreviations (for example, ? for PRINT, F SHIFT-O for FOR, N SHIFT-E for NEXT, etc., see the VIC User's manual), you can enter some more code into these four lines. When this line is...
by Mike
Sat Mar 02, 2013 8:10 am
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6039

[...] a little (perl?) script that creates basic lines from the coordinates. My problem is how to write the petscii chars and rvson/rvsoff, so that they paste correctly into vice or basedit. As I wrote elsewhere , the copy&paste facility of VICE is just unusable beyond simple text I/O. Again, w...