ZX-328N, will PlaySound command work ?

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
shrdlu
Posts: 2
Joined: 09 August 2010, 12:50 PM

ZX-328N, will PlaySound command work ?

Post by shrdlu »

Does the PlaySound command work on the ZX-328n ?

Normally the SPI EEPROM is not used with this CPU but if it was connected to the SPI bus as is typical for the VM ZX's will it function ?
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: ZX-328N, will PlaySound command work ?

Post by dkinzer »

shrdlu wrote:Does the PlaySound command work on the ZX-328n ?
Yes, but perhaps not in the way you were hoping. On all ZX devices, the PlaySound() routine reads the data for the sound from Program Memory beginning at the address specified. Some VM devices use an external SPI EEPROM for Program Memory while others (and all native mode devices) use internal Flash for Program Memory.

Upon reviewing it, I see that the manual page describing PlaySound needs to be modified to make this clear.
- Don Kinzer
shrdlu
Posts: 2
Joined: 09 August 2010, 12:50 PM

Re: ZX-328N, will PlaySound command work ?

Post by shrdlu »

dkinzer wrote:
shrdlu wrote:Does the PlaySound command work on the ZX-328n ?
Yes, but perhaps not in the way you were hoping. On all ZX devices, the PlaySound() routine reads the data for the sound from Program Memory beginning at the address specified. Some VM devices use an external SPI EEPROM for Program Memory while others (and all native mode devices) use internal Flash for Program Memory.

Upon reviewing it, I see that the manual page describing PlaySound needs to be modified to make this clear.
I get it, so PlaySound works from the internal flash instead of needing an external eeprom. That's actually not bad (no eeprom required), just would not do to much with the 328n because it only has 32k of flash for program but the 1284n based stuff like has 120k flash, makes more sense for us there.

Thanks Don
Post Reply