Search found 4673 matches

by Mike
Fri Mar 08, 2013 4:04 pm
Forum: Games
Topic: German Magazine - Type-Ins - Compute Mit
Replies: 133
Views: 33826

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: 7143

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: 7815

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: 7815

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: 7815

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: 1240

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: 7143

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: 7143

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: 7143

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: 7815

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: 6028

[...] 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...
by Mike
Fri Mar 01, 2013 2:14 pm
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6028

Why this intermediate step with a list of pixel co-ordinates?

You can convert the B/W image directly to a BASIC program which consists solely of PRINT statements (and two POKEs into screen and colour RAM for the bottom-right character), which is much more efficient speed- and memory-wise.
by Mike
Thu Feb 28, 2013 4:11 pm
Forum: Emulation and Cross Development
Topic: The optimal VICE PAL VIC aspect ratio
Replies: 14
Views: 5853

Hmm? I was under the impression, that NTSC had a different pixel aspect ratio more like 1.5:1 (which would correspond to 0.750 in VICE). :? I got my value a long time ago by measuring the width and height of the text window of the VIC-20 on a TV set, which had been confirmed before to draw perfect c...