Search found 4675 matches

by Mike
Wed Jun 01, 2005 3:13 am
Forum: Programming
Topic: Tip - Get a calculator that can use HEX, BIN etc!
Replies: 24
Views: 6195

First of all: 3735928559=57005*65536+48879

And they are useful values to indicate uninitialised memory, when read in Hex. ;)
by Mike
Tue May 31, 2005 9:34 am
Forum: Programming
Topic: Tip - Get a calculator that can use HEX, BIN etc!
Replies: 24
Views: 6195

Octal numbers are used in the chmod command in Un*x. In former times there were machines with 6-bit bytes (as the CDC's), where 2-digit octal numbers "naturally" fit into. And, to get back to: [...]decimal equivalence of $7CBA?[...] I just could ask, what is the hexadecimal equivalence of ...
by Mike
Tue May 31, 2005 1:03 am
Forum: Programming
Topic: Tip - Get a calculator that can use HEX, BIN etc!
Replies: 24
Views: 6195

aneurysm wrote:I just wonder why they still put OCTAL on calculators. Do they force people to practice that numeric system somewhere?
In Duckburg perhaps? Count the fingers of my avatar... ;)

And do you know why programmers can't tell Helloween from Christmas?

Michael
by Mike
Mon Apr 25, 2005 3:11 am
Forum: General Topics
Topic: Continuous Music: Good or Bad?
Replies: 11
Views: 4796

Game music

For me, background music can add lots to the atmosphere of a game. I'm currently into 'Metroid: Zero Mission' (Gameboy Advance), and here each level, and all cut scenes are accompanied by their own theme. When you finish the game, a triumphal fanfare is played... well let's not get carried away. ;) ...
by Mike
Tue Apr 19, 2005 7:11 am
Forum: Games
Topic: Diamond Hunt
Replies: 26
Views: 8174

Hi, Robert, I gave Diamond Hunt a try. :) Nice game! Some suggestions: 1. Sound! A little tune in the title screen, blips for each step the monsters are moving, a 'wwwuuuiiip' when you are caught by a monster. You can make the sounds dependent of TI, so they run the same speed regardless whether the...
by Mike
Mon Apr 11, 2005 3:13 am
Forum: General Topics
Topic: DD vs. HD 5.25" Disks for a 1541
Replies: 24
Views: 13379

You really need DD disks. [...] DD - soft mud, big stick. HD - thick mud, pointy stick. [...] Lee. Ah, yes. ;) I always use the picture of a row of water buckets: DD: big diameter, not very tall, low volume HD: small diameter, tall, high volume and this is, what happens when writing the wrong media...
by Mike
Wed Mar 16, 2005 2:43 am
Forum: Programming
Topic: Calculated GOTO
Replies: 6
Views: 2069

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: 2069

@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: 10119

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: 1338

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: 5076

{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: 5076

[...] 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: 5076

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: 5581

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...