Welcome, Guest. Please login or register.


Author Topic: Q&A (Read 56394 times)

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14710
  • Country: hu
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #75 on: 2015.November.30. 13:22:49 »
Yes, great to see one!
There is it.
It is make a standard 48K Spectrum memory map. Allocate memory on proper way, and can exit back to the EXOS.
Also can allocate 48K memory when only 32K available :-) Do a trick: combine the Zero Page and System segments for free up the Zero Page Segment for additional 16K memory. It is reversed on Exit, then no any system data damaged.

It is load two files, one screen files, and one program file which contain the main program.
Also support compressed mode with Epcompress from IstvanV.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #76 on: 2015.November.30. 13:26:06 »
how good is ecompress?
Exomizer and zx7 gives good compress ratio.(zx7 for ZX screens)

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14710
  • Country: hu
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #77 on: 2015.November.30. 13:42:10 »
how good is ecompress?
Some examples:
Spindizzy SCR 6912 -> 912, PRG 34112 -> 23437
New Zealand Story SCR 6912 -> 3106, PRG 41036 -> 20612, music 5120 -> 3534
Heartland SCR 6912 -> 3295, PRG 33432 -> 22190

It is with the -m3 mode of the Epcompress. It is have many another options. I used this because good compromise with the size and decompress speed.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: Q&A
« Reply #78 on: 2015.November.30. 15:10:28 »
epcompress -m2 is a similar format to Exomizer, with some tweaks.
epcompress -m3 has a few percents worse compression ratio, but the decompressor is simple, fast, and only requires a small amount of memory (it does not use any tables)
epcompress -m0 is the most complex format, it may compress better than the -m2 mode, but it is not worth it most of the time because of the large and slow decompressor

epcompress allows for creating .com files that uncompress to greater than 47.75 KB size, as long as the compressed version of the program does not exceed that limit. With the -m3 method, it is possible to use all memory from 100H to FFFFH, the others reduce the upper limit because of the extra space required by the decompressor code and data.

'dtf' can also be used for creating packed files that are easy to load with RST 28H calls (these work similarly to EXOS 6, except the channel number is always 1, and the block size is determined at compression, so BC is ignored). It supports the same algorithms as epcompress, use '-lz' for the -m3 method, and '-lz2 -9' for -m2.

With 'dtf', the pack file is already opened on channel 1 when the original loader is started, and each compressed data block can be read with RST 28H (DE is the start address). The decompressor code uses the area under 100H.

dtf -cp -lz PACKFILE LOADER.COM DATA1 DATA2 ...
dtf -cl -lz LOADER2.COM PACKFILE

These commands pack a program and its data using the simplest and fastest algorithm, and create a new loader for the packed file.
« Last Edit: 2015.November.30. 17:53:32 by IstvanV »

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: Q&A
« Reply #79 on: 2015.December.01. 11:37:24 »
Here is a comparison of the compression ratios with a few files (all available at ep128.hu):
[ Guests cannot view attachments ]
All files have been compressed in "raw" mode as a single data block (decompressor code is not included).

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #80 on: 2015.December.01. 12:36:43 »
some guys said what HRUST is better, but i didn't test.

Offline IstvanV

  • EP addict
  • *
  • Posts: 4822
Re: Q&A
« Reply #81 on: 2015.December.03. 08:05:37 »
These file sizes are with "mhmt -hst", using this program for the compression (not sure if there is a better version):

ARIZONA.RAW - 44706
BATMAN.APL - 30368
BATMAN.COM - 3480
EXOLON.PRG - 21684
EXOLON.SCR - 2236

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #82 on: 2015.December.03. 08:29:48 »
These file sizes are with "mhmt -hst", using this program for the compression (not sure if there is a better version):

ARIZONA.RAW - 44706
BATMAN.APL - 30368
BATMAN.COM - 3480
EXOLON.PRG - 21684
EXOLON.SCR - 2236

mhm- lamers;) mhmt works unstable.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #83 on: 2015.December.06. 12:29:40 »
how to compile pt3 player?

LD HL,SPCCOMS+#FF20-#2000
sjasm says "Bytes lost".

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 7070
  • Country: hu
    • Támogató Támogató
Re: Q&A
« Reply #84 on: 2015.December.06. 12:33:06 »
how to compile pt3 player?

LD HL,SPCCOMS+#FF20-#2000
sjasm says "Bytes lost".
I think you can ignore this error message, the byte lost means in this case 01xxxx, 01 is lost, but you can try with other order it may work:
LD HL,SPCCOMS-#2000+#FF20
or just
LD HL,SPCCOMS+#DF20

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #85 on: 2015.December.06. 12:34:38 »
well, pt3play works with tune, but code from player - not.

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 7070
  • Country: hu
    • Támogató Támogató
Re: Q&A
« Reply #86 on: 2015.December.06. 12:37:20 »
please attach the binary, and the source, i would check it.

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14710
  • Country: hu
    • http://enterprise.iko.hu/
Re: Q&A
« Reply #87 on: 2015.December.06. 12:49:56 »
how to compile pt3 player?

LD HL,SPCCOMS+#FF20-#2000
sjasm says "Bytes lost".
With Sjasm 0.39 no problem.

Offline g0blinish

  • EP fan
  • *
  • Posts: 110
Re: Q&A
« Reply #88 on: 2015.December.06. 12:54:14 »
oh, yes. my mistake:

missed it:
Code: [Select]
LD A,30H
OUT (0B4H),A

thank you for help.

Offline geco

  • Moderator
  • EP addict
  • *
  • Posts: 7070
  • Country: hu
    • Támogató Támogató
Re: Q&A
« Reply #89 on: 2015.December.06. 13:00:10 »
Yw, if you have any problem, please attach the bin and the source , we can check it.