Search found 2883 matches

by Mike
Tue Apr 04, 2006 3:46 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

Another test for BasEdit. ;) This program wouldn't have been possible without the addition of the line-routine to MINIGRAFIK. It displays a wall clock, with hands for seconds, minutes, and hours. TI$ is set in the first line, so set time can be easily synchronised with RUN+{RETURN}. As the clock fac...
by Mike
Fri Mar 31, 2006 2:15 am
Forum: General Topics
Topic: Dumping for fun
Replies: 17
Views: 5934

Mayhem, I sent you an e-mail. I found the data of AMAZING from $2000 onwards. No wonders, that it didn't autostart. I then proceeded as follows: Soft-Reset with 'Alt+R' to re-initialise the BASIC. Then I protected that area with 'POKE55,0:POKE56,32:CLR'. I saved the first half of BLK1 with (AMAZING ...
by Mike
Thu Mar 30, 2006 11:02 am
Forum: Programming
Topic: ROM calls and other tricks
Replies: 24
Views: 23869

Small routines for saving and loading blocks of memory: SAVE memory block: SYS57809(N$),8,1:POKE193,start_lo:POKE194,start_hi POKE780,193:POKE781,end_lo:POKE782,end_hi:SYS65496 'start' is inclusive, 'end' is exclusive. 'N$' contains the file name. Other device numbers than 8 can be used (als...
by Mike
Thu Mar 30, 2006 5:28 am
Forum: General Topics
Topic: Dumping for fun
Replies: 17
Views: 5934

By the way, isn't it easier to do POKE40964,0 than going through the monitor if we're only overwriting one byte? I wrote this because I assumed the loader would autostart the cartridge (which it doesn't). A couple of cool SYSes! In another thread I mentioned: POKE147,0:SYS57809(N$),8,1:POKE...
by Mike
Thu Mar 30, 2006 4:10 am
Forum: General Topics
Topic: Dumping for fun
Replies: 17
Views: 5934

[...] and what's "Full setup" btw? [...] I can LOAD"",1,1 and put the dump into memory. Wondering what to possibly do after that. You can change the memory configuration in the menu: Settings > VIC settings ... and 'Full' simply means all blocks are available. You say the loader doesn't autostart? ...
by Mike
Thu Mar 30, 2006 1:56 am
Forum: General Topics
Topic: Dumping for fun
Replies: 17
Views: 5934

Mayhem, As soon as the cartridge has been started in VICE (with 'Full' setup): - start the monitor with 'Alt+M' - overwrite part of the "A0CBM" RESET signature with '>A004 00' - exit the monitor with 'x' - do a soft reset 'Alt+R' - (only necessary if BLK3 is used [*]:) protect BLK3 with 'POKE55,0:PO...
by Mike
Tue Mar 28, 2006 3:32 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

Hope this is ok, Mike? No problem, of course not. :) I also checked the files on your account, and found that BasEdit seems to strip the spaces in the resulting PRG file. For instruction lines, this is o.k., but REM's might become difficult to read. It would be good, if you made this stripping of s...
by Mike
Tue Mar 28, 2006 12:56 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

I went ahead and added a line-routine. MINIGRAFIK now is 484 Bytes long. The syntax: @<colour>,<x1>,<y1>TO<x2>,<y2>: draw line in <colour> between <x1>,<y1> and <x2>,<y2> Note it is still possible to draw a single point leaving out the 'TO' part, i.e. V3 is fully downwards compatible. Both endpoints...
by Mike
Mon Mar 27, 2006 10:04 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

Regards speed: I immediately could supply a working 'POKE and SYS' line-routine which does 30000 pixels/second. But I couldn't fit this into <200 Bytes, this routine is more like 1K long. Its speed also rather - uhhm - wasted in a BASIC extension, as the surrounding overhead slows down the appearant...
by Mike
Mon Mar 27, 2006 5:34 am
Forum: Programming
Topic: Basic Speedup Tip
Replies: 59
Views: 14446

Something I just ran across in a RUN Magazine. It said that: Z^2 executes slower than Z*Z I can't think of any program I've writen that used an exponent, but faster is faster. Well, they should have better said: Z*Z runs circles around Z^2. That said, in CBM BASIC the expression X^Y internally is c...
by Mike
Mon Mar 27, 2006 1:09 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

Edit: Just had an idea and proved it: After a DATA statement the tokenizer is off until the next colon (or new line). 10 DATAPOKE36876,8:POKE36876,8 will not tokenize the first POKE after DATA, but of course the POKE after the colon. Same is valid for my precious '-'. Now I have an idea how to solv...
by Mike
Fri Mar 24, 2006 6:31 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

Strange. My program works without the space. Maybe your tokeniser doesn't translate the '-' sign correctly. Try re-entering the line within the BASIC editor, without the space. I transferred the program as SEQ file on a *.d64 image, and then ran the following small tool to 'type' it in: 63995 POKE81...
by Mike
Fri Mar 24, 2006 3:39 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

"@"? The reason why the thread runs under 'ML and other programs'. You'll need to run my MINIGRAFIK extension first. This is the DATA loader further up this topic. You can then use the following commands: @ON : initialise 160x192 pixel hires screen @CLR : clear hires screen, and set colour RAM @RET...
by Mike
Fri Mar 24, 2006 2:04 am
Forum: Programming
Topic: Hires Graphics
Replies: 111
Views: 45949

Another example, with 3 useful sub-routines

Time for a bigger program. This example draws a 'minigrafik' logo. First the 'minigrafik' writing is read from DATA statements, and drawn using a line-routine (it's here only used to draw vertical lines). Then two ellipses are drawn. I've assumed a 1.67:1 ratio for a VIC pixel on a TV set, so these ...
by Mike
Thu Mar 23, 2006 2:19 am
Forum: Games
Topic: 20 Line Contest: Air Raid 20
Replies: 6
Views: 1553

First play. I finished with: Score: 4560, Wave: 5, Missiles: 0, Hits: 11 of 14 (at 100% speed in VICE). Nice game!

Greetings,

Michael

Go to advanced search