Search found 92 matches

by dfzx
Tue Oct 09, 2018 7:26 pm
Forum: Hardware
Topic: Bug Fixed ROM
Replies: 12
Views: 323

Re: Bug Fixed ROM

PaddyC13 wrote:
Tue Oct 09, 2018 7:03 pm
Strange, the line ‘IF 1/2<>0.5 THEN PRINT “Bug”’ works in Basinc i.e. it does not print Bug?
Is there actually a bug there? Comparing floating point numbers for equality is generally a bad idea on any computer. Is that what it's doing?
by dfzx
Tue Oct 09, 2018 5:06 pm
Forum: Programming
Topic: unsigned to ascii
Replies: 18
Views: 543

Re: unsigned to ascii

I had a look at some of these options. My Z80 assembly language isn't much above beginner's level so I stuck with Z88DK/C, which works for me because that's what my game is written in. :) I implemented the unsigned int to ACSII conversion several times and put each one in a loop 9999 times so I coul...
by dfzx
Mon Oct 08, 2018 6:53 am
Forum: Programming
Topic: unsigned to ascii
Replies: 18
Views: 543

Re: unsigned to ascii

Ah, thanks AA, that all makes sense. I saw everything you describe in the Z88DK library sources but either couldn't figure out what it was or couldn't figure out how to use it. :) I wrote a bunch of test cases over the weekend, timing some of the ideas offered here. I was going to post the results h...
by dfzx
Fri Oct 05, 2018 12:37 pm
Forum: Programming
Topic: unsigned to ascii
Replies: 18
Views: 543

Re: unsigned to ascii

Thanks for the input guys. I think it's dawned on me why so many games have non-numerical countdown or scoring systems. Numbers are tricky to deal with, as well as dull to look at. Gauges, sliders and half eaten turkeys have been deployed for more than one reason. The BCD thing rang all sorts of 30 ...
by dfzx
Thu Oct 04, 2018 7:07 pm
Forum: Programming
Topic: unsigned to ascii
Replies: 18
Views: 543

unsigned to ascii

I'm slowly learning Z88DK C and writing a game using it. I've recently added a score to the game which basically involves keeping a 16 bit value which is decremented on an interrupt. (i.e. the score goes down as you play, meaning the quicker you complete the level the better the score.) This score i...
by dfzx
Sat Sep 29, 2018 6:49 pm
Forum: Emulators
Topic: "Step out" in a debugger
Replies: 2
Views: 151

"Step out" in a debugger

The Fuse debugger has a "finish" feature which is sort of like the "step out" feature of other debuggers. The idea is that it runs to the end of the current subroutine. Only in Fuse it's implemented by placing a temporary breakpoint at the address at SP, which really isn't ideal. If the subroutine h...
by dfzx
Tue Aug 28, 2018 9:50 am
Forum: Programming
Topic: Z88DK and Fuse, list level debugging
Replies: 5
Views: 664

Re: Z88DK and Fuse, list level debugging

I can't help a great deal with your travails, Bob, but it was somehow comforting to know I'm not the only with these problems. :) You're clearly further forward than I am; I've not written any Spectrum program of use as yet, and certainly not a finished game. I've used exactly the same trick with bo...
by dfzx
Mon Aug 27, 2018 8:47 am
Forum: Programming
Topic: Z88DK and Fuse, list level debugging
Replies: 5
Views: 664

Z88DK and Fuse, list level debugging

I posted this to the Z88DK list which is probably where it belongs, but that's a low traffic environment and one or two people here might also find it interesting. So with apologies for the cross post: Since I started with Z88DK it's become apparent that I've been a bit spoilt over the years with so...
by dfzx
Mon Jul 23, 2018 7:37 am
Forum: Programming
Topic: An impressive way to crash the Speccy?
Replies: 8
Views: 400

Re: An impressive way to crash the Speccy?

The first year that I got my hands on a Speccy, when I had got my head around the normal BASIC commands and functions, I started playing with POKE and USR. I tried many combinations in the search for useful or interesting effects. I used to do the same thing. I still have "RANDOMISE USR 2272" commi...
by dfzx
Thu Jul 05, 2018 8:04 am
Forum: Games/Software
Topic: Games for Spectrum+
Replies: 8
Views: 325

Re: Games for Spectrum+

The Spectrum+ was released about 2 years after the original rubber key model. Internally it's the same machine as the 48K, only with a "better" case and keyboard, so any software you find for a 48K will work on your Spectrum+. The 128K, +2 and +3 models came later and are very different to the 48K. ...