MSX-O-Mizer question

بواسطة pitpan

Prophet (3155)

صورة pitpan

19-09-2011, 08:27

Hi!

I tested MSX-O-Mizer yesterday and it works great, but I have a question for you, guys: the depacker code (ROM version) includes the following:

; -------------------------------------------------------
; MSX-O-Mizer v1.5f datas depacker    *ROM based version*
; Improved from Metalbrain's z80 version.
; -------------------------------------------------------
; source in hl
; dest in de

; 328 bytes which must be aligned on 8 bits boundary
mom_map_bits_rom    =       0xe000
; 26 bytes located in ram
mom_offset_table    =       0xe000 + 328

So, how many RAM bytes does this code use? Does it use from E000h to E000h+328+26? Or does it just use 26 bytes? Why is there an offset then?

My main concern is if I can have data from E000h to E000h+328 without being modified.

Anyone out there knows the right answer?

Just in case: MSX-O-Mizer does a great job. The packing ratio is impressive!

Login أوregister لوضع تعليقاتك

بواسطة ARTRAG

Enlighted (6923)

صورة ARTRAG

19-09-2011, 09:06

It uses 328+26 bytes
the first buffer of 328bytes has to be 8 bit aligned in ram
the second buffer of 26 bytes can be where you like

Naturally the room in ram is needed only while unpacking

بواسطة pitpan

Prophet (3155)

صورة pitpan

19-09-2011, 09:08

Thanks for your answer, Arturo. I'll have to move a bit my RAM addressing, but the difference is worth it!