Search found 4678 matches

by Mike
Sat Mar 16, 2013 5:10 am
Forum: Programming
Topic: Cbmsh - A Unix-like shell for the commodores
Replies: 43
Views: 12142

The RAM drive for the FE3 is already there, even with a command channel, so rename and delete work. :) Of course, there's always the VIC wedge, and menu-driven environments like CBM-Command, or graphic environments like VIN, but having a real command line, maybe even with 40 columns per line (so ful...
by Mike
Fri Mar 15, 2013 7:28 am
Forum: Programming
Topic: New Frontiers in VIC-Hires-Graphics Series
Replies: 0
Views: 25383

New Frontiers in VIC-Hires-Graphics Series

Hi, y'all! Over the time, the threads about 'New Frontiers in VIC-Hires-Graphics' became scattered around in the Programming section. I gathered all links to these here in this post, to make it easier to follow the whole development over the last three years. Maybe it would also be appropriate to ad...
by Mike
Thu Mar 14, 2013 12:32 pm
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6056

The program counts the chars of the line before writing to file. It check the length without the final double quotes and semicolon to be no more than 86. If it doesn't work as expected, there might be a bug. Here's how a LISTed line with 87 characters in total looks (i.e. line number, blank, PRINT,...
by Mike
Thu Mar 14, 2013 11:33 am
Forum: Hardware and Tech
Topic: LOAD"*",8 glitch
Replies: 5
Views: 841

That also happens with the original 1541. Actually, the single asterisk-wildcard '*' has that special treatment to mean 'last file used', which just after a drive reset or disk change also means 'first file on disk'. The variant LOAD":*",8 truly works as expected and loads the first file o...
by Mike
Thu Mar 14, 2013 9:24 am
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6056

When I wrote about the 88 character limit, I didn't mean the character count inside the quotes, or the length of the tokenized line in memory, but the total length of the BASIC line when LISTed. Now most of the lines exceed that limit and you can't edit them anymore. :( And, please, what's the reaso...
by Mike
Thu Mar 14, 2013 12:56 am
Forum: Programming
Topic: Alternatives to FOR duration loops?
Replies: 13
Views: 1431

Re: Alternatives to FOR duration loops?

I want something longer than a second. Let's say three or five seconds. [...] I would use it to set pace/rhythm in a game. If you can guarantee, that all actions up to the next delay take less than around 4 seconds, bit 0 (value 1) in the mid-byte of the jiffy clock might do the job: it changes fro...
by Mike
Wed Mar 13, 2013 4:42 pm
Forum: Programming
Topic: Alternatives to FOR duration loops?
Replies: 13
Views: 1431

I still prefer not messing around with the jiffy clock. For another example, here's the intro sequence of VICtoria Gold Edition: 590 @RETURN:DN=PEEK(186):@LOAD"TITLE 1",DN:T1=TI 600 OPEN2,DN,2,"FILL DATA,S,R" 610 FORR=1TO23:INPUT#2,R$(R,1),R$(R,0):NEXT 620 CLOSE2 630 IFABS(TI-T1)...
by Mike
Wed Mar 13, 2013 6:26 am
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6056

Don't bother. I just checked the speed difference between a screen built up from single line PRINTs (without any control characters) and triple-line PRINTs (also without control characters, the last PRINT doing two lines), each done in a loop 100 times: 1 line PRINTs: 1158 jiffies, 3 line PRINTs: 10...
by Mike
Wed Mar 13, 2013 4:54 am
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6056

a simple optimization [...] would be to put two drawing lines on a single line of code The converter optimizes already a lot by leaving out {RVS ON} and {RVS OFF} control characters, when they're not necessary. But in the worst case, a single line could still contain 22 control characters, 22 print...
by Mike
Wed Mar 13, 2013 3:07 am
Forum: Programming
Topic: Alternatives to FOR duration loops?
Replies: 13
Views: 1431

I've been searching memory locations for some value that naturally progresses in such a way that I could use WAIT. I still haven't found anything. This is how WAIT works: it takes up to three parameters, an address, an AND-mask, and an optional EOR-value. The address is read, then bits are toggled ...
by Mike
Tue Mar 12, 2013 2:14 pm
Forum: Programming
Topic: MG Text Edit
Replies: 15
Views: 6596

After a short exchange with darkatx over PM, I was finally able to find the source of the problem: the @LOAD command continues even when an error occured during load, it then activates the graphics screen automatically, with whatever is present in memory to display. Now, when one makes a typo and en...
by Mike
Mon Mar 11, 2013 2:53 pm
Forum: Programming
Topic: Commodore FREE One Liners competition.
Replies: 55
Views: 7931

Unfortunately, I lose line 0 when I type it as in the screenshot, in Vice. That has nothing to do with VICE, this also happens on a real VIC-20: the cursor must be within one of the physical lines of a logical line to enter that logical line into memory when RETURN is pressed. I suppose you pressed...
by Mike
Mon Mar 11, 2013 9:13 am
Forum: Programming
Topic: Poxels splash screen + animation
Replies: 30
Views: 6056

Not quite two dozen lines, but nonetheless... here's pgm2chunky.prg ( download ). It expects a 44x46 pixels *.pgm file as input, and emits a *.prg file. A first some initialisations for all possible 2x2 groupings of chunky pixels in string form (G$) and screen code (G%()): 10 DIMG%(15),S%(1,1),C%(1)...
by Mike
Sun Mar 10, 2013 10:38 am
Forum: Programming
Topic: ** New Frontiers in VIC-Hires-Graphics, Part 13
Replies: 21
Views: 10832

I would never of thought the VIC could display images of such quality. You must have missed the entire development over the last three years, where Torsten and I went all the way up to MAXIGRAFIK , MFLI , MIFLI and - with a small hardware modification - VFLI . Finally, I could feed back some algori...
by Mike
Sun Mar 10, 2013 10:25 am
Forum: Programming
Topic: Tile draw code optimization help
Replies: 8
Views: 2140

what I meant was all the four chars that make up the tile are the same colour, each tile can be a different colour. I missed that somehow. You can fetch the tile colour from another table and then put it into another ZP address, changing: STA tile_ptr LDA #0 to STA tile_ptr STA tile_colour LDA #0 i...