Topic: 1-bit music on Hector

octode2k16 has been ported on Hector (another French computer system : http://hectorvictor.free.fr/ ) :
http://forum.system-cfg.com/viewtopic.p … 06#p119073

Re: 1-bit music on Hector

Excellent news, thanks for sharing. And of course, my respects to the author!
I'll have to see if I can get emulation going somehow, very curious how this sounds. I'm afraid adapting the code to memory-mapped IO might not have had the best impact on those tight timings.

3 (edited by garvalf 2016-06-28 20:44:56)

Re: 1-bit music on Hector

I think there is a mp3 in his zip. If you wish, I can send it to you, in the case the forum doesn't allow to download when you're not registered. But you can also register there because it's a cool forum wink

Re: 1-bit music on Hector

Ah yes, found the mp3. It does indeed sound quite noisy hmm Some of that might be from the emulator, though.
But I do see room for optimizations.

   ld (Save_RegA),a
   ld a,_LOW
   ld ($1800),a         ;du son à Hector !
   ld ($1800),a         ;du son à Hector !
   ld a,(Save_RegA) 

should at least be

   ld (Save_RegA),a
   ld a,_LOW
   ld ($1800),a         ;du son à Hector ! - why twice? once should be enough?
Save_RegA equ $+1
   ld a,0

and since BC is unused, in most cases even

   ld c,_LOW         ;outside of sound loop
   ;...
   ld b,a
   ld a,c
   ld ($1800),a         ;du son à Hector ! - why twice? once should be enough?
Save_RegA equ $+1
   ld a,b

should do.

system-cfg.com seems like a nice place, I'll think about signing up. Though my French is really too crap for holding a proper conversation.

5 (edited by garvalf 2016-07-01 12:51:39)

Re: 1-bit music on Hector

Though my French is really too crap for holding a proper conversation.

what? Are you joking? As far as I've seen, you have a very decent French.

There are talented programmers on system-cfg.com, you'll see wink

He loaded it twice because the hector is faster than zx spectrum: "Comme Hector est plus rapide que le ZX Spectrum ( de 3,5 Mhz on passe à 5 !) cela suffit à descendre le tempo (c'est pour ça qu'il y a 2 fois le même ld)."
It was also a "quick and dirty" conversion, he said he hasn't optimised the cycles used in your engine for getting a correct timing, hence the noise.