ZX-Next core para ZX-Uno

vtrucco
Mensajes: 7
Registrado: 20 May 2017, 15:16

Re: ZX-Next core para ZX-Uno

Mensaje por vtrucco » 21 May 2017, 12:32

mcleod_ideafix escribió:Cool1 How can I get more DMP files? Can I convert a SID file or something? The siddump utility I found doesn't generate the same kind of file the example DMP files use.
I believe Jim Bagley use this one, with some changes to output as DMP (he provides this DMP for tests)

https://github.com/munshkr/siddump

DMP is just a sequence of the bytes going to the 25 SID registers, like
0 1 2 ... 24 0 1 2 ... 24 0 1 2 ... 24

SIDPLAY read 25 bytes from SD, wait for the next interrupt, wirte to the SID and them repeat the process
(code attached)
Adjuntos
SIDPlay.txt
(1.46 KiB) Descargado 256 veces

Avatar de Usuario
mcleod_ideafix
Mensajes: 831
Registrado: 27 Sep 2015, 00:14
Ubicación: Jerez de la Frontera
Contactar:

Re: ZX-Next core para ZX-Uno

Mensaje por mcleod_ideafix » 22 May 2017, 01:29

Thanks! I think I got it! Here's the siddump utility modified to create dump files (parameter -b)
Adjuntos
siddump.zip
(19.55 KiB) Descargado 238 veces
http://www.zxuno.com
ZX-Uno · Clon de ordenador ZX Spectrum basado en FPGA

vtrucco
Mensajes: 7
Registrado: 20 May 2017, 15:16

Re: ZX-Next core para ZX-Uno

Mensaje por vtrucco » 22 May 2017, 11:31

Thanks! Can I add this EXE in the tools section of the Next website?

Avatar de Usuario
mcleod_ideafix
Mensajes: 831
Registrado: 27 Sep 2015, 00:14
Ubicación: Jerez de la Frontera
Contactar:

Re: ZX-Next core para ZX-Uno

Mensaje por mcleod_ideafix » 22 May 2017, 14:42

Of course, go ahead. Include the source code so people on Linux or Mac can compile it themselves.
http://www.zxuno.com
ZX-Uno · Clon de ordenador ZX Spectrum basado en FPGA

Avatar de Usuario
Uto
Mensajes: 1394
Registrado: 17 Dic 2015, 16:39

Re: ZX-Next core para ZX-Uno

Mensaje por Uto » 22 May 2017, 15:27

Hi Victor,

After having a look to the .sidplay source code I see you - or whoever coded that command - are not using ESXDOS error codes, I mean, ESXDOS returns error code on A register and carry flag set when a ESXDOS call fails (i.e. "fopen" fails to find file), so checking for file open is easier than

Código: Seleccionar todo

LD A, (handle)
or a
ret z
You just have to add "ret c" to your "fopen" code and on ESXDOS will show "file not found" message on failure:

Código: Seleccionar todo

rst $08
db $9a
ret c
ld (handle),a
Also, ESXDOS will provide a proper error message when exiting after a function call, the code is the one in A register but it's set by ESXDOS itself, that is, if after a failed fopen you add "ret c", ESXDOS will exit and print "File not found" or similar on screen. That is really very handy as it saves a lot of code and memory needed for messages (I see this code just exists silently when file is not found). ESXDOS will provice a proper message for every case (disk nor ready, file not found, disk full, etc.)

Sorry if you already know that, just trying to help :-)

Avatar de Usuario
Higgy
Mensajes: 63
Registrado: 30 Dic 2016, 23:57
Ubicación: Oxfordshire, England
Contactar:

Re: ZX-Next core para ZX-Uno

Mensaje por Higgy » 22 May 2017, 20:57

I was having a few problems with siddump, so just in case other have issues running the program:

siddump test.sid -btest.dmp

Don't put a space between -b and the output file ;)

Avatar de Usuario
Higgy
Mensajes: 63
Registrado: 30 Dic 2016, 23:57
Ubicación: Oxfordshire, England
Contactar:

Re: ZX-Next core para ZX-Uno

Mensaje por Higgy » 23 May 2017, 09:13

Is there a way of running a .bat (batch command) to process a whole directory of .sid files?

I tried but I am having problems. I don't know if it is because the output file is written straight after the option command:

siddump input.sid -boutput.dmp

Avatar de Usuario
Bone
Mensajes: 66
Registrado: 06 Oct 2015, 15:46

Re: RE: Re: ZX-Next core para ZX-Uno

Mensaje por Bone » 23 May 2017, 12:34

fbelavenuto escribió:Hi Guys,

I've compiled version 1.08 with 3 AYs and SID (only), for anyone who wants to try out:

https://drive.google.com/drive/folders/ ... sp=sharing

Cheers.
Hi.
Thanx for the update. [emoji1]

I have been testing this compilation and I have realized that Arkanoid, Cobra, etc do not work ...
Could it be that there is a problem in the implementation of the $ FF port?

The SID implementation it's awesome [emoji12]

Regards!!.

Enviado desde mi SM-G930F mediante Tapatalk

Avatar de Usuario
jsj
Mensajes: 336
Registrado: 21 Nov 2015, 12:48

Re: ZX-Next core para ZX-Uno

Mensaje por jsj » 23 May 2017, 13:18

Higgy escribió:Is there a way of running a .bat (batch command) to process a whole directory of .sid files?

I tried but I am having problems. I don't know if it is because the output file is written straight after the option command:

siddump input.sid -boutput.dmp
Have you tried something like this?

Código: Seleccionar todo

@echo off

for /r "C:\MySIDFiles" %%f in (*.sid) do siddump %%f -b"%%~nf.dmp"

fbelavenuto
Mensajes: 100
Registrado: 08 Sep 2016, 13:10

Re: RE: Re: ZX-Next core para ZX-Uno

Mensaje por fbelavenuto » 23 May 2017, 13:28

Sorry, miss a information: Uses the new TBBLUE.FW and CONFIG.INI files from SD_Card.zip file.

Timex port is configurable now.
Bone escribió:
fbelavenuto escribió:Hi Guys,

I've compiled version 1.08 with 3 AYs and SID (only), for anyone who wants to try out:

https://drive.google.com/drive/folders/ ... sp=sharing

Cheers.
Hi.
Thanx for the update. [emoji1]

I have been testing this compilation and I have realized that Arkanoid, Cobra, etc do not work ...
Could it be that there is a problem in the implementation of the $ FF port?

The SID implementation it's awesome [emoji12]

Regards!!.

Enviado desde mi SM-G930F mediante Tapatalk

Responder