AYe AYe...

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: AYe AYe...

Post by Andy Rea »

Thats an option, but i believe SirMorris was not intending to use another Crystal.

I'm just pondering things, to me they sound just fine, only when you have the 2 playing side by side can you really notice the difference (well to my tone deaf ears anyway).

I've really been attacking the assembler for the player, the first working version which had nasty bodges to get it working has been refined a little 470 bytes shorter !

^^^ OK i lied i wasn't counting the space used by the VARIABLES :twisted:

I'll keep plugging away till i either get bored or start to dream Z80 assembler !

Andy
what's that Smell.... smells like fresh flux and solder fumes...
Moggy
Posts: 3496
Joined: Wed Jun 18, 2008 2:00 pm

Re: AYe AYe...

Post by Moggy »

A couple of semi tones difference if that, not worth bothering with really I wouldn't have thought.
???????????????????????????PIINKEY$?????RND????????????????????????????????????????????????????????PI????????
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: AYe AYe...

Post by Andy Rea »

Well I'm just about done with the tweaking of the PT3 player i don't think i can make it much smaller...

SO how do you guys want it ? raw source code to assemble where ever you want, seperate or intgrated handler ? use 8-10K or 14-16K, in a rem statment, compiled for hi-mem...30-32K (obviously you have to lower ramtop) ect...

all combinations can be catered for :-) (well maybe not all)

Andy
what's that Smell.... smells like fresh flux and solder fumes...
sirmorris
Posts: 2812
Joined: Thu May 08, 2008 5:45 pm

Re: AYe AYe...

Post by sirmorris »

Too much choice! <head explodes>

With ZXpand:
RAM at 16-48K, RAMTOP lowered as far as it will go. That will give the largest contiguous block for music data.

Without ZXpand:
Err... :lol:
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: AYe AYe...

Post by Andy Rea »

sirmorris wrote: With ZXpand:
RAM at 16-48K, RAMTOP lowered as far as it will go. That will give the largest contiguous block for music data.
Thats probably the best with ZXpand, the Var block can go above $8000 thats 448 bytes alone !

Andy
what's that Smell.... smells like fresh flux and solder fumes...
Moggy
Posts: 3496
Joined: Wed Jun 18, 2008 2:00 pm

Re: AYe AYe...

Post by Moggy »

As long as non Techies like Myself can just load and go not bothered how it comes, the player as it stands, Andy,is superb. :D

Ps Tried adding those lines You mentioned Didn't work for Me I'm afraid, just carried on in endless loop. :(

Regards
Moggy
???????????????????????????PIINKEY$?????RND????????????????????????????????????????????????????????PI????????
User avatar
siggi
Posts: 1043
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: AYe AYe...

Post by siggi »

I would prefer 2 solutions:
1) integrated player and interrupt routine in a REM line 0 (for those who want to run only the player)
2) integrated player and interrupt routine above RAMTOP and <=32K (for those who want to run also a BASIC program)

Both versions should have a table (at the beginning of the code?), where a pointer (16 Bit) to the sound data address could be changed by POKE (for those who don't have high ram from 32K .. 48K, but from 48K to 64K). The default should be set for 32K.

Stefano (one of the Z88DK developers) made also a loader for the HIRES integration into Z88DK for the Zeddy, which loweres ramtop and moves the stack and and copies a M/C from a REM line above the new ramtop.
Maybe you could also use such a loader? Then normal users (who load from tape and cannot load directly to a given address) could LOAD the loader and then RUN that program to install the m/c above ramtop.

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: AYe AYe...

Post by Andy Rea »

Right here is combined handler and player in LINE 0 REM statement.

instructions (i hope they are clear enough) in txt file. Any problems please let me know and i'll try my best to fix it.

EnJoy

Adny
pt3play.zip
pt3player and handler in LINE 0 rem statement.
(20.05 KiB) Downloaded 253 times
P.s Ramtop version to follow....
what's that Smell.... smells like fresh flux and solder fumes...
User avatar
siggi
Posts: 1043
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: AYe AYe...

Post by siggi »

Great!
Will play this weekend ...

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: AYe AYe...

Post by Andy Rea »

Here are 3 more versions, same code (just assembled to different memory locations).

@siggi not sure about the value of a basic program that lowers ramtop and relocates code automatically, you still nedd to get the PT3 files in the memory somehow.

anyway the versions all packed together in a single zip for convience are :-

pt3rt.zip ramtop version, interrupt handler and player set ramtop to 30440 and then load PT3RT.BIN at 30440, instructions in TXT file.

pt3rtva.zip ramtop version with var block moved, interrupt handler and player set ramtop to 30980 and then load PT3RTVA.BIN at 30980, instructions in TXT file, var block starts at 48611 (requires memory at 32-48K)

pt3rtva2.zip ramtop version with var block moved, interrupt handler and player set ramtop to 30980 and then load PT3RTVA.BIN at 30980, instructions in TXT file, var block starts at 64995 (requires memory at 48-64K), please note this version is untested.

Andy
pt3players.zip
3 slightly different versions of the player
(59.23 KiB) Downloaded 299 times
what's that Smell.... smells like fresh flux and solder fumes...
Post Reply