Search found 4684 matches

by Mike
Wed Mar 16, 2005 2:43 am
Forum: Programming
Topic: Calculated GOTO
Replies: 6
Views: 2090

I've found a way to avoid the problematic POKEGL,PEEK(GL) combination. Furthermore, it allows the line number to be passed as argument with the USR function. We need 6 bytes for a small ML routine, which fits nicely behind the screen memory... :) 100 S=8186:REM S=4602 for +8K RAM expansion, or more ...
by Mike
Wed Mar 16, 2005 1:55 am
Forum: Programming
Topic: Calculated GOTO
Replies: 6
Views: 2090

@Jeff: Calculated GOTOs are useful, if you have a LOT of jump targets, whose line-numbers follow a regular pattern, say, 300, 400, 500, ..., 1800, 1900,..., and you couldn't put all these in one ON GOTO command. @Rob: This surely won't work directly on a VIC, as the routine alters the USR vector to ...
by Mike
Fri Mar 11, 2005 2:02 am
Forum: General Topics
Topic: How to run cartridge dumps in PRG format
Replies: 23
Views: 10180

SYS57809

Here's the loader for Donkey Kong: 1 ONAGOTO20,30 10 A=1:FORI=0TO5:POKE7680+I,PEEK(45+I):NEXT 15 LOAD"DONK2000",8,1 20 A=2:FORI=0TO5:POKE45+I,PEEK(7680+I):NEXT 25 LOAD"DONKA000",8,1 30 SYS64802 Time to pop out SYS57809 off the hat... 10 POKE55,0:POKE56,32:CLR 20 READN$:IFN$=&quo...
by Mike
Wed Mar 09, 2005 4:57 am
Forum: Programming
Topic: Intergers
Replies: 2
Views: 1339

I am not a math whiz. That isn't necessary here, anyway. :) You must tell the "savings" in programm space apart from those in variable space. Same applies to execution time. All references to an integer variable need the extra byte for the % sign within the BASIC program. As long as you u...
by Mike
Mon Jan 31, 2005 2:45 pm
Forum: Emulation and Cross Development
Topic: .PRG to .TXT and .HTM conversion
Replies: 12
Views: 5108

{RUN} can be embedded in double quotes likewise as in my {CTRL-N} example above: "{RUN}" := ""{DEL,RVS ON,SHIFT-C,RVS OFF}""{DEL} so that, for example GETA$:IFA$="{RUN}"THEN do_something and GETA$:IFA$=CHR$(131)THEN do_something are equivalent. If you want to ...
by Mike
Mon Jan 31, 2005 6:58 am
Forum: Emulation and Cross Development
Topic: .PRG to .TXT and .HTM conversion
Replies: 12
Views: 5108

[...] I've also added some specials that you wouldn't usually see such as {ENA} and {DIS} for enable and disable case [...] Additionally you could refer to CHR$(3) as {STOP}, and CHR$(131) as {RUN}. The first can be entered directly in quote/insert mode, the second is available as "artificial&...
by Mike
Sun Jan 30, 2005 7:21 pm
Forum: Emulation and Cross Development
Topic: .PRG to .TXT and .HTM conversion
Replies: 12
Views: 5108

Lee, I checked the *.zip file, and couldn't find any obvious errors. However, I found the strings somehow difficult to read, as green on white doesn't have a good contrast on the CRT I use. I do use an own program similar to TEXTPORT, but written in C, that checks for repeated runs, and adjacent quo...
by Mike
Thu Jan 27, 2005 9:40 am
Forum: Emulation and Cross Development
Topic: How to start programming in ML
Replies: 15
Views: 5637

Logic errors

Yup. It is really progress. Logic errors however, I have not found any remedy for. I've found quite a simple remedy. I try to refrain from non-obvious code. As I write a piece of code, I always think about what would happen if I were about to extend its functionality. One simple example (this is in...
by Mike
Sat Jan 22, 2005 1:43 pm
Forum: Programming
Topic: SEQ2PRG
Replies: 5
Views: 2133

Of course Boray's solution still makes sense, if I were about to extract certain parts of a file. But apart from Carlsson's one-liner for the whole-file copy, I'd also like to point out, that zero-valued bytes are read as empty strings by GET#! Thus, line 40 should be replaced by: 40 PRINT#3,LEFT$(A...
by Mike
Tue Jan 18, 2005 6:48 am
Forum: General Topics
Topic: I had a dream (again!)
Replies: 2
Views: 2493

One obsessed more! You remind me of South Party by Hybris/Nemesis . In the middle, they show a C= 64 demo, that looks quite believable at first, but then ... I once was co-author of a SF novel, that a friend of mine wrote in school time (about '84-'85). There we mentioned a VIC as control computer f...
by Mike
Sat Jan 15, 2005 1:03 pm
Forum: Programming
Topic: HTML Walker
Replies: 7
Views: 2618

Re: HTML Walker

Hi, Boray! From your web-page: [...]HTML codes are stated withing "greater and less than" brackets. I can't write them here as HTML Walker (as well as any web browser) would think that it's a HTML command. So look at this text in a text editor for examples. In the rest of this document, I ...
by Mike
Mon Jan 10, 2005 10:31 am
Forum: Programming
Topic: VIC Life
Replies: 7
Views: 5567

Memory requirements down to +8K!

I rewrote the engine. It's also a little bit faster now. Colour scheme is now as usual - blue on white background, cyan border. As I write this, the old version hosted is already replaced by the new one. You can use the same link above.

Maybe +8K RAM expansions are more abundant. ;)

Michael
by Mike
Fri Jan 07, 2005 5:03 pm
Forum: Other Systems
Topic: Top 10 games you have ever played
Replies: 24
Views: 7787

So far my favorites, after second thoughts: 1. Elite - Acorn Archimedes As the box art says: "Good games come and go, and great ones last much longer, but only one can claim to be Elite." 2. Paradroid - C=64 A classic by Andrew Braybrook. Cool: The logic-based mini-game inside. 3. The Last...
by Mike
Thu Jan 06, 2005 10:55 am
Forum: General Topics
Topic: Easy1541 - SEQ file problem.
Replies: 5
Views: 3123

I know there is some difference between SEQ and USR, but I never understood exactly what, even after reading the disk drive manual. On the other side, I think I never saw an USR file. USR files could be loaded directly in the RAM of the disc drive, and executed there. I once saw a program *) for th...
by Mike
Wed Jan 05, 2005 10:37 am
Forum: Programming
Topic: VIC Life
Replies: 7
Views: 5567

VIC Life

This is an implementation of John H. Conway's Game of Life for the VIC. https://dateipfa.de/.Public/denial/images/minigrafik/life_2.png It runs on a 160x192 grid. 8) Requires +8K RAM expansion. Runs on either PAL or NTSC machines. Instructions: [0] / [1] / [{CRSR}] / [CLR HOME]: (re)set cell, cursor...