Search found 4663 matches
- Sun Mar 10, 2013 9:14 am
- Forum: Programming
- Topic: Tile draw code optimization help
- Replies: 8
- Views: 2069
Not much faster, and untested, but you might try out this one instead: ; ***************************** ; * Draw 2x2 Tile on screen * ; * A = Tile Number * ; * X = Column 0-20 * ; * Y = Row 0-21 * ; ***************************** STA tile_ptr LDA #0 ASL tile_ptr:ROL A ASL tile_ptr:ROL A STA tile_ptr+1...
- Sun Mar 10, 2013 4:55 am
- Forum: Programming
- Topic: Poxels splash screen + animation
- Replies: 30
- Views: 6017
Works but a bit memory heavy. This method takes away 2K just for a constant definition of the character set, and then you still have to add in the screen data. IMO, using a bitmap (like MINIGRAFIK/MINIPAINT) or doing 'sparse' hires displays (like Ghislain does in his splash screens) makes better us...
- Sun Mar 10, 2013 4:27 am
- Forum: Programming
- Topic: Alternatives to FOR duration loops?
- Replies: 13
- Views: 1431
OMG, ML code tucked away in a REM statement...LOL... Take a look here for a similar feat for a joystick decoding routine. ;) You just have to take care, that the ML code does not contain any null bytes, as these would be interpreted as end-of-line (and the two following bytes would be changed by th...
- Sun Mar 10, 2013 4:10 am
- Forum: Programming
- Topic: The limitations of Austro compiler
- Replies: 13
- Views: 2725
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...
- 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...
- Fri Mar 08, 2013 4:04 pm
- Forum: Games
- Topic: German Magazine - Type-Ins - Compute Mit
- Replies: 133
- Views: 33493
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...
- Thu Mar 07, 2013 2:56 pm
- Forum: Games
- Topic: [Finished] Yacht Dice Game
- Replies: 23
- Views: 7100
- Thu Mar 07, 2013 1:30 pm
- Forum: Programming
- Topic: Commodore FREE One Liners competition.
- Replies: 55
- Views: 7786
- Thu Mar 07, 2013 12:55 pm
- Forum: Programming
- Topic: Commodore FREE One Liners competition.
- Replies: 55
- Views: 7786
Here's my ultimate-rule-bending entry: 'bird.prg'.
- Thu Mar 07, 2013 11:15 am
- Forum: Programming
- Topic: Commodore FREE One Liners competition.
- Replies: 55
- Views: 7786
- Wed Mar 06, 2013 11:50 am
- Forum: General Topics
- Topic: Auto add emulator links?
- Replies: 4
- Views: 1230
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...
- Tue Mar 05, 2013 2:10 pm
- Forum: Games
- Topic: [Finished] Yacht Dice Game
- Replies: 23
- Views: 7100
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 ...
- 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...
- Tue Mar 05, 2013 11:31 am
- Forum: Games
- Topic: [Finished] Yacht Dice Game
- Replies: 23
- Views: 7100
- 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 ...