Search found 195 matches

by Richard James
Tue Mar 25, 2008 2:20 am
Forum: Programming
Topic: Solving Survo puzzles
Replies: 18
Views: 5265

Did some more reading especially the PDF document http://www.survo.fi/papers/puzzles.pdf It appears that the quick way to prune down the number of combinations is to work out partitions or sequences of numbers that fit in specific spaces in the puzzle. I am still rewriting my program but it doesn't ...
by Richard James
Mon Mar 24, 2008 8:51 pm
Forum: Programming
Topic: Solving Survo puzzles
Replies: 18
Views: 5265

I wrote a quick program but it doesn't work as in it never solves the problem. It just swaps what it thinks is best or randomly and that does not work. But it is a start and you can see how I tried to do it. 10 rem note I am ignoring array beginning 0 to make things look simpler 20 dim a(4,4):rem th...
by Richard James
Mon Mar 24, 2008 4:12 am
Forum: Emulation and Cross Development
Topic: BASIC conversion into and out of VICE in UNIX
Replies: 19
Views: 8332

HOWTO get BASIC programs out of VICE Type in your program or load it. In the VICE menu select the monitor type m 2b 2e This will print out the start and end address of the BASIC program remember the VIC stores 16bit addresses as low byte high byte e.g. >C:002b 01 10 03 10 start is the first two numb...
by Richard James
Sun Mar 23, 2008 8:17 pm
Forum: Emulation and Cross Development
Topic: BASIC conversion into and out of VICE in UNIX
Replies: 19
Views: 8332

Or, when you reference to an expression like "INT(RND(0)*500)" it has to dig in the hell of nested parenthesis, and so on. I have a book about implementing BASIC on my bookshelf. I had forgotten about the time it takes to un-nest formulas. in the example above it saves time if you make R ...
by Richard James
Sun Mar 23, 2008 7:55 pm
Forum: Emulation and Cross Development
Topic: BASIC conversion into and out of VICE in UNIX
Replies: 19
Views: 8332

Now my only problem is remembering the different codes and what they produce. As a side note, you can write things such as {10 DOWN} in your listing. It is the same syntax as used by COMPUTE! if I recall correctly. I meant the codes for the special symbols like lines, blocks and circles. My other o...
by Richard James
Sun Mar 23, 2008 5:21 am
Forum: Emulation and Cross Development
Topic: BASIC conversion into and out of VICE in UNIX
Replies: 19
Views: 8332

Why is BASIC so slow? is there no optimisation written into it? is there any way to speed up the interpretation? I wonder if we could rewrite BASIC to take some advantage of modern Virtual Machine techniques to speed up commonly used code? Or is there not enough memory in the VIC20 to do that?
by Richard James
Sat Mar 22, 2008 4:05 am
Forum: Emulation and Cross Development
Topic: BASIC conversion into and out of VICE in UNIX
Replies: 19
Views: 8332

got petcat to work. Important NOTE: make sure your listing is all in lower case. I did not have that and could not work out why all my letters got tokenised. so I have a file like such 10 print"A"; 20 for x=0to21 30 for y=0to22 40 rem seed random number generator 50 a=rnd(-(x*13+y*43)) 60 ...
by Richard James
Fri Mar 21, 2008 5:36 pm
Forum: Emulation and Cross Development
Topic: BASIC conversion into and out of VICE in UNIX
Replies: 19
Views: 8332

BASIC conversion into and out of VICE in UNIX

Before I waste time writing a tool that already exists. I want to know if anyone can get BASIC programs into or out of VICE under UNIX. I use Linux and to put BASIC into VICE I have to type it in which can be hard since the PC keyboard does not map well to the VIC one. I cannot get programs out of V...
by Richard James
Fri Mar 21, 2008 3:01 am
Forum: Programming
Topic: Algorithmic world generation
Replies: 8
Views: 2906

Example in BASIC in random terrain generation. 10 PRINT"<shift><home>"; 20 FOR X=0TO21 30 FOR Y=0TO22 40 REM SEED RANDOM NUMBER GENERATOR 50 A=RND(-(X*13+Y*43)) 60 OF=X+Y*22 70 POKE7680+OF,160 80 R%=RND(1)*4+2 90 POKE 38400+OF,R% 100 NEXT Y 110 NEXT X I haven't yet worked out how to do goo...
by Richard James
Fri Mar 21, 2008 12:54 am
Forum: Programming
Topic: Algorithmic world generation
Replies: 8
Views: 2906

That article was written by the same Guy W. Lecky-Thompson that wrote the book I mentioned above :) How Bizarre. Anyway in that article he mentions using a frequency table for making up names. Earlier this year I tried the same thing but without the table. Just make names in the following fashion P...
by Richard James
Thu Mar 20, 2008 10:50 pm
Forum: Programming
Topic: Algorithmic world generation
Replies: 8
Views: 2906

I saw this on Gamasutra a while back and it kinda explains how to do the Elite number generation to create things like names of planets and terrain. It is designed for more modern computers, they use 32bit integers. But I'm sure you can downscale to 16bit. http://gamasutra.com/features/19990917/infi...
by Richard James
Thu Mar 20, 2008 10:32 pm
Forum: Emulation and Cross Development
Topic: What OS do you use for VIC-20 developing?
Replies: 19
Views: 6164

I have removed the C64 and C128 and monitor from storage. The C64 I will probably trade to get a VIC20 the C128 is a D version and has internal Floppy Drive and PSU, so I will keep it. I'm not so sure about the monitor. I would prefer to use a LCD and if I really have to buy an LCD/PLASMA TV and use...
by Richard James
Mon Feb 25, 2008 9:26 pm
Forum: Programming
Topic: Multi-Part Loader - Yes or No
Replies: 25
Views: 7128

What happened was that I mis-typed it. But you are right the reason why the code below doesn't work is purely academic. 110 PRINT"{2 DOWN}LOAD"CHR$(34)"PART2"CHR$(34)",PEEK(186)" That reads as PRINT "{2 DOWN}LOAD" PRINT CHR$(34) PRINT "PART2" PRINT ...
by Richard James
Mon Feb 25, 2008 9:14 pm
Forum: Emulation and Cross Development
Topic: What OS do you use for VIC-20 developing?
Replies: 19
Views: 6164

I would love to develop on a real Vic-20 but my old one bit the dust due to heat death (and it had missing keys), I think it got thrown out too. I tried looking for it the other day in my parents shed but all I could find was a C64 a C128D and a Commodore Monitor. I could not even find a cassette dr...
by Richard James
Tue Feb 19, 2008 3:48 pm
Forum: Emulation and Cross Development
Topic: Tommy Gun a game editor!!!
Replies: 82
Views: 22649

I too use the Text-Editor -> DASM -> VICE route. But I use a makefile for DASM. As for the "sprites" in DASM you can draw stuff in binary but it is not really a good graphics editor. You can't really design multi colour that way. Also you can make screen mock ups. Most of those I still hav...