Тема закрыта 
 
Рейтинг темы:
  • Голосов: 2 - Средняя оценка: 5
  • 1
  • 2
  • 3
  • 4
  • 5
ISO Loader 0.6.x Beta
Автор Сообщение
fafadou Не на форуме
Опытный
****

Сообщений: 857
Зарегистрирован: 07.03.2017
Рейтинг: 1
Сказал спасибо: 1128
Поблагодарили 89 раз(а) в 82 сообщ.
Сообщение: #381
RE: ISO Loader 0.6.x Beta
Each time i try to boot with ide loader 0.6.11_se i have the message "track03.iso failed".
Don't know what I have to do...

[Édit] thanks to @dragoncity everything is now good :-)

I confirm there is a sound shift around 5seconds during skies of Arcadia intro but no issue anymore.
Run well with other loaders until usual crash.
(Последний раз сообщение было отредактировано 27.11.2020 в 00:30, отредактировал пользователь fafadou.)
26.11.2020 03:22
Найти все сообщения
SWAT Не на форуме
Администратор
*******

Сообщений: 7125
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1168 раз(а) в 726 сообщ.
Сообщение: #382
RE: ISO Loader 0.6.x Beta
(25.11.2020 12:48)sundance2 писал(а):  
(25.11.2020 07:18)SWAT писал(а):  But note that full loaders (sd_cso.bin and sd_cso_alt.bin) are already using too much memory to be placed in the default address (0x8c004000). Only sd_cso_se.bin can be placed there.
For full loaders with cso you should use 0x8c000100 or high memory.

Is there a place where the reasoning behind memory address selection is explained ?
For example, is it generally better for the loader to start at a lower address, while it's generally better for the software being run that the loader be placed at a rather higher address ?

This part is nebulous to me, the ISO loader proposes a lot of addresses, but without explanation, I tend to blindly follows config lists like the dragoncity one,
yet I see other people/video suggesting different address, and after testing, many of them work, so it's really not satisfying to understand why select one rather than the other.

@swat post states that one parameter for this choice is the binary size of the loader, suggesting that the "right" address depends on the loader and its version. Maybe on other parameters? or even the image being loaded too.

As a data point, `sd_cso.bin` is 30.5 KB,
compared to previous betas of `sd.bin` :
v0.6.11 => 28.6 KB
v0.6.10 => 27.6 KB
v0.6.9 => 27.3 KB
v0.6.8 => 26.9 KB
So it seems to be slowly growing overtime (even without cso support).
And presumably, it could have an impact on address selection.

Loader memory usage:
params (1KB) + loader code (nKB) + buffer (32KB - params - loader). Max 32KB.

In best case, for buffer need 2KB (one sector). This buffer uses only for non-optimized images and little for CDDA (track name). So the loader should be less than 29KB.
In future this buffer I will made as *dynamic* too, but it's working not in all games yet.

Also loader uses additional memory (up to 32KB) for CDDA and/or CISO buffers.
For CDDA now supported dynamic, for CISO still not, it uses only hardcoded addresses.
And CDDA can use hardcoded addresses if dynamic disabled (not supported).
You can see here:
https://github.com/DC-SWAT/DreamShell/bl...?ts=4#L220

Application (KATANA game) memory usage:
Params: 0x8c000000 - 0x8c000100 (also here vectors for syscalls)
Syscalls: 0x8c000100 - 0x8c004000
Stack: 0x8c004000 - 0x8c00f400 (in some cases at 0x8d000000)
VBR: 0x8c00f400 - 0x8c010000 (in some cases in heap)
App binary: 0x8c010000 - ???
Heap: ??? - 0x8d000000

So we can place loader (and buffers) in the heap (carefully with stack if it's at the end) or at 0x8c000100 - 0x8c004000 because loader can emulate all syscalls.
Best choice it's a 0x8c004000, we don't touch original syscalls (just change some vectors) and don't conflict with game, because stack here is usually does not grow much and VBR code block is 3KB, so we should have ~ 32KB for free.
But some games can write in this memory area some "loaders" or stack grow so much and do damage loader code. So we should move loader at high memory (heap) and hopes we are lucky Smile

[Изображение: barbers.png]
(Последний раз сообщение было отредактировано 27.11.2020 в 14:46, отредактировал пользователь SWAT.)
27.11.2020 07:42
Вебсайт Найти все сообщения
 Сказали спасибо: fafadou , sundance2
kof888 Не на форуме
Продвинутый
***

Сообщений: 189
Зарегистрирован: 29.06.2009
Рейтинг: 5
Сказал спасибо: 8
Поблагодарили 61 раз(а) в 27 сообщ.
Сообщение: #383
RE: ISO Loader 0.6.x Beta
So, at this time, what a wonderful thing we have dc with 32M of memory, 16M is free to useBig GrinBig GrinBig GrinBig Grin
27.11.2020 10:15
Найти все сообщения
fafadou Не на форуме
Опытный
****

Сообщений: 857
Зарегистрирован: 07.03.2017
Рейтинг: 1
Сказал спасибо: 1128
Поблагодарили 89 раз(а) в 82 сообщ.
Сообщение: #384
RE: ISO Loader 0.6.x Beta
Almost 1300 lines ! the program is quiet massive Smile
27.11.2020 12:10
Найти все сообщения
SWAT Не на форуме
Администратор
*******

Сообщений: 7125
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1168 раз(а) в 726 сообщ.
Сообщение: #385
RE: ISO Loader 0.6.x Beta
(27.11.2020 10:15)kof888 писал(а):  So, at this time, what a wonderful thing we have dc with 32M of memory, 16M is free to useBig GrinBig GrinBig GrinBig Grin

Yeah, can use big loaders with no problem Smile
Can enable write support for fs (for saving screenshots for example or VMU emulation), CDDA/CSIO buffers, data cache and etc.

(27.11.2020 12:10)fafadou писал(а):  Almost 1300 lines ! the program is quiet massive Smile

And this only for CDDA emulation Smile
The whole loader is much, much bigger. It has according ~150 files...
Not all are that big, but also there are bigger.

[Изображение: barbers.png]
(Последний раз сообщение было отредактировано 27.11.2020 в 12:44, отредактировал пользователь SWAT.)
27.11.2020 12:30
Вебсайт Найти все сообщения
 Сказали спасибо: fafadou
fafadou Не на форуме
Опытный
****

Сообщений: 857
Зарегистрирован: 07.03.2017
Рейтинг: 1
Сказал спасибо: 1128
Поблагодарили 89 раз(а) в 82 сообщ.
Сообщение: #386
RE: ISO Loader 0.6.x Beta
The code is well written too, I almost understand all of it, when I'm reading it Smile
27.11.2020 13:53
Найти все сообщения
K470r Не на форуме
Пользователь
**

Сообщений: 30
Зарегистрирован: 02.02.2020
Рейтинг: 0
Сказал спасибо: 50
Поблагодарили 8 раз(а) в 7 сообщ.
Сообщение: #387
RE: ISO Loader 0.6.x Beta
(26.11.2020 03:22)fafadou писал(а):  Each time i try to boot with ide loader 0.6.11_se i have the message "track03.iso failed".
Don't know what I have to do...

[Édit] thanks to @dragoncity everything is now good :-)

I confirm there is a sound shift around 5seconds during skies of Arcadia intro but no issue anymore.
Run well with other loaders until usual crash.


Hi, I have the same problem with resident evil code veronica. Can you tell me how did you make it work for you?
27.11.2020 19:41
Найти все сообщения
fafadou Не на форуме
Опытный
****

Сообщений: 857
Зарегистрирован: 07.03.2017
Рейтинг: 1
Сказал спасибо: 1128
Поблагодарили 89 раз(а) в 82 сообщ.
Сообщение: #388
RE: ISO Loader 0.6.x Beta
Use same DS folder than @dragoncity.
Else 0.6.11 dev.bin
Dma Sync 16 default memory.
Optimise your gdi.

You avoid tiger issue with this config.
@dragoncity you can update your list for recv and recvx.
28.11.2020 02:43
Найти все сообщения
 Сказали спасибо: K470r
MetalliC Не на форуме
Продвинутый
***

Сообщений: 185
Зарегистрирован: 31.07.2013
Рейтинг: 2
Сказал спасибо: 15
Поблагодарили 33 раз(а) в 15 сообщ.
Сообщение: #389
RE: ISO Loader 0.6.x Beta
(27.11.2020 07:42)SWAT писал(а):  Application (KATANA game) memory usage:
Params: 0x8c000000 - 0x8c000100 (also here vectors for syscalls)
Syscalls: 0x8c000100 - 0x8c004000
Stack: 0x8c004000 - 0x8c00f400 (in some cases at 0x8d000000)
VBR: 0x8c00f400 - 0x8c010000 (in some cases in heap)
App binary: 0x8c010000 - ???
Heap: ??? - 0x8d000000
немножко не в тему, но есть ли где-то подобное но про биос ? т.е. задокументированное описание "блоков" всего биоса - какие куски зачем и чего делают итп. я сам на досуге разбирал немножко, но думаю вдруг уже есть доки и я занимаюсь изобретательством велосипедов.
28.11.2020 08:39
Найти все сообщения
kof888 Не на форуме
Продвинутый
***

Сообщений: 189
Зарегистрирован: 29.06.2009
Рейтинг: 5
Сказал спасибо: 8
Поблагодарили 61 раз(а) в 27 сообщ.
Сообщение: #390
RE: ISO Loader 0.6.x Beta
(27.11.2020 12:30)SWAT писал(а):  
(27.11.2020 10:15)kof888 писал(а):  So, at this time, what a wonderful thing we have dc with 32M of memory, 16M is free to useBig GrinBig GrinBig GrinBig Grin

Yeah, can use big loaders with no problem Smile
Can enable write support for fs (for saving screenshots for example or VMU emulation), CDDA/CSIO buffers, data cache and etc.


This attention is great note.Big Grin

If a 32M version is to be released in the future, I would be happy to test itBig Grin
(Последний раз сообщение было отредактировано 28.11.2020 в 14:47, отредактировал пользователь kof888.)
28.11.2020 14:46
Найти все сообщения
pcwzrd13 Не на форуме
Продвинутый
***

Сообщений: 441
Зарегистрирован: 04.05.2017
Рейтинг: 2
Сказал спасибо: 145
Поблагодарили 206 раз(а) в 155 сообщ.
Сообщение: #391
RE: ISO Loader 0.6.x Beta
I found a bug with the music in Toy Commander and Toy Racer. Once a music track ends, it doesn't start again. Not a big deal for shorter levels and tracks but on longer ones you just have silence after the music ends.

Dreamcast Live | YouTube Channel | DreamShell IDE Compatibility List
28.11.2020 20:48
Найти все сообщения
 Сказали спасибо: chth96
fabio14789 Не на форуме
Пользователь
**

Сообщений: 30
Зарегистрирован: 22.12.2014
Рейтинг: 0
Сказал спасибо: 25
Поблагодарили 1 раз(а) в 1 сообщ.
Сообщение: #392
RE: ISO Loader 0.6.x Beta
will release a 32 MB version of RAM?
29.11.2020 03:27
Найти все сообщения
SWAT Не на форуме
Администратор
*******

Сообщений: 7125
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1168 раз(а) в 726 сообщ.
Сообщение: #393
RE: ISO Loader 0.6.x Beta
(28.11.2020 08:39)MetalliC писал(а):  немножко не в тему, но есть ли где-то подобное но про биос ? т.е. задокументированное описание "блоков" всего биоса - какие куски зачем и чего делают итп. я сам на досуге разбирал немножко, но думаю вдруг уже есть доки и я занимаюсь изобретательством велосипедов.

Не встречал подробного описания, его не существует скорее всего. Информация как бы есть по большей части, но она разрозненная очень, а что-то есть лишь в головах у людей и никогда не фиксировалось нигде Smile Так что собранная в едином месте информация о структуре биоса будет весьма полезной для всех.

(28.11.2020 14:46)kof888 писал(а):  This attention is great note.Big Grin

If a 32M version is to be released in the future, I would be happy to test itBig Grin

You can place any loader in this memory area right now, it's should works I guess.
The address used is patched on the fly, it can be anything. But it's not support this area for buffers etc.

(28.11.2020 20:48)pcwzrd13 писал(а):  I found a bug with the music in Toy Commander and Toy Racer. Once a music track ends, it doesn't start again. Not a big deal for shorter levels and tracks but on longer ones you just have silence after the music ends.

Thanks for report.

[Изображение: barbers.png]
(Последний раз сообщение было отредактировано 29.11.2020 в 10:11, отредактировал пользователь SWAT.)
29.11.2020 09:51
Вебсайт Найти все сообщения
megavolt85 Не на форуме
Супермодератор
******

Сообщений: 3065
Зарегистрирован: 24.03.2012
Рейтинг: 37
Сказал спасибо: 179
Поблагодарили 1510 раз(а) в 893 сообщ.
Сообщение: #394
RE: ISO Loader 0.6.x Beta
(28.11.2020 08:39)MetalliC писал(а):  немножко не в тему, но есть ли где-то подобное но про биос ? т.е. задокументированное описание "блоков" всего биоса - какие куски зачем и чего делают итп. я сам на досуге разбирал немножко, но думаю вдруг уже есть доки и я занимаюсь изобретательством велосипедов.

я только сисколы дизасмил
за основу был взят чей то не полный дизасм и дополнен, а местами и исправлен
большую часть биоса занимают текстуры шрифта и VMU иконок

HKT-3030, Bios mod, SD mod, VGA internal mod, G1ATA mod, Region changer mod, PSU mod
29.11.2020 23:25
Найти все сообщения
SWAT Не на форуме
Администратор
*******

Сообщений: 7125
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1168 раз(а) в 726 сообщ.
Сообщение: #395
RE: ISO Loader 0.6.x Beta
(29.11.2020 23:25)megavolt85 писал(а):  
(28.11.2020 08:39)MetalliC писал(а):  немножко не в тему, но есть ли где-то подобное но про биос ? т.е. задокументированное описание "блоков" всего биоса - какие куски зачем и чего делают итп. я сам на досуге разбирал немножко, но думаю вдруг уже есть доки и я занимаюсь изобретательством велосипедов.

я только сисколы дизасмил
за основу был взят чей то не полный дизасм и дополнен, а местами и исправлен
большую часть биоса занимают текстуры шрифта и VMU иконок

Ну там еще текстуры для меню, которые я помню извлекал своим Universal PVR Extractor'ом, 3D модели вероятно и сама программа меню (а может и не одна?).
На сколько я знаю не все шрифты изучены (там вроде как даже русский есть), про VMU иконки я что-то видел недавно в KOS кажется, но на счет полноты этого ничего сказать не могу.
Мы с megavolt85 в общем-то только сисколы мучили у биоса, а что там дальше в целом хз. Какая-то информация явно есть в голове japanese-сake и еще кого нибудь. В общем я и говорю что разрозненная, в едином месте нету ничего подобного.
Если MetalliC сделает нормальную доку по структуре BIOS, станет проще делать кастомные версии Smile

[Изображение: barbers.png]
(Последний раз сообщение было отредактировано 30.11.2020 в 07:19, отредактировал пользователь SWAT.)
30.11.2020 07:13
Вебсайт Найти все сообщения
pcwzrd13 Не на форуме
Продвинутый
***

Сообщений: 441
Зарегистрирован: 04.05.2017
Рейтинг: 2
Сказал спасибо: 145
Поблагодарили 206 раз(а) в 155 сообщ.
Сообщение: #396
RE: ISO Loader 0.6.x Beta
@SWAT Any idea how you might be able to fix CDDA music that gets distorted / starts crackling after playing for a while? A lot of games seem to have this issue. KAO the Kangaroo might give you a clue on how to fix it. If you pause the game after the music starts to distort, it will fix it. Whatever happens when you pause the game, I wonder if you could do it in code?

Dreamcast Live | YouTube Channel | DreamShell IDE Compatibility List
13.12.2020 08:27
Найти все сообщения
SWAT Не на форуме
Администратор
*******

Сообщений: 7125
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1168 раз(а) в 726 сообщ.
Сообщение: #397
RE: ISO Loader 0.6.x Beta
(13.12.2020 08:27)pcwzrd13 писал(а):  @SWAT Any idea how you might be able to fix CDDA music that gets distorted / starts crackling after playing for a while? A lot of games seem to have this issue. KAO the Kangaroo might give you a clue on how to fix it. If you pause the game after the music starts to distort, it will fix it. Whatever happens when you pause the game, I wonder if you could do it in code?

It's simple to fix, but hard to detect.
It's easy to hear with your own ears, but in the code I can't do that Smile
I am aware of the problem but haven't found a solution yet.

[Изображение: barbers.png]
13.12.2020 14:34
Вебсайт Найти все сообщения
 Сказали спасибо: fafadou , pcwzrd13
aldair Не на форуме
Опытный
****

Сообщений: 723
Зарегистрирован: 03.02.2012
Рейтинг: 7
Сказал спасибо: 81
Поблагодарили 247 раз(а) в 182 сообщ.
Сообщение: #398
RE: ISO Loader 0.6.x Beta
PSO R 18 compared to the official versions pso v1 and v2 has many differences, one of which is that the save R18 cannot be used in any of the versions of v1 and v2 and the save can only be used in a single Dreamcast.
R18 has automatic save, this does not exist on the original pso v1 and v2.
pso v1 and v2 in the ruins you always start in the same place and how much in the R18 it starts in different places.
On pso r18 intens that can only be obtained online on it you find offline.
As the R18 does not connect online, it may have an option vs. Cable Link.
Could Dreamshell run that game?
My gdemu had an error now on the pso:


(Последний раз сообщение было отредактировано 13.12.2020 в 15:24, отредактировал пользователь aldair.)
13.12.2020 15:22
Найти все сообщения
pcwzrd13 Не на форуме
Продвинутый
***

Сообщений: 441
Зарегистрирован: 04.05.2017
Рейтинг: 2
Сказал спасибо: 145
Поблагодарили 206 раз(а) в 155 сообщ.
Сообщение: #399
RE: ISO Loader 0.6.x Beta
(13.12.2020 14:34)SWAT писал(а):  It's simple to fix, but hard to detect.
It's easy to hear with your own ears, but in the code I can't do that Smile

I'm fairly certain the issue always occurs when one track ends and another one begins if that helps.

Dreamcast Live | YouTube Channel | DreamShell IDE Compatibility List
14.12.2020 04:55
Найти все сообщения
SWAT Не на форуме
Администратор
*******

Сообщений: 7125
Зарегистрирован: 04.01.2005
Рейтинг: 30
Сказал спасибо: 130
Поблагодарили 1168 раз(а) в 726 сообщ.
Сообщение: #400
RE: ISO Loader 0.6.x Beta
(14.12.2020 04:55)pcwzrd13 писал(а):  
(13.12.2020 14:34)SWAT писал(а):  It's simple to fix, but hard to detect.
It's easy to hear with your own ears, but in the code I can't do that Smile

I'm fairly certain the issue always occurs when one track ends and another one begins if that helps.

I'll try to fix this behavior.

[Изображение: barbers.png]
14.12.2020 14:32
Вебсайт Найти все сообщения
 Сказали спасибо: pcwzrd13 , fafadou
Тема закрыта 


Похожие темы
Тема: Автор Ответов: Просмотров: Посл. сообщение
Баг ISO Loader 0.8.x Beta + preview of DreamShell v4.0 RC 5 SWAT 918 513728 01.02.2024 13:22
Посл. сообщение: SWAT
  ISO Loader 0.7.x Beta megavolt85 1195 1278180 04.12.2023 19:10
Посл. сообщение: Ro Magnus Larsson
  ISO LOADER does not boot anymore in my IDE HDD. HELP! Ro Magnus Larsson 3 6896 18.03.2021 06:30
Посл. сообщение: Ro Magnus Larsson
  Loader automation MilkeyWilkey 7 13494 27.05.2020 10:07
Посл. сообщение: MilkeyWilkey
  ISO Loader: can't display my folders/iso simonrobic 1 10068 14.08.2016 15:52
Посл. сообщение: megavolt85
  DreamShell 4.0 Beta 4 SWAT 173 514581 07.10.2013 18:48
Посл. сообщение: kof888
  Snes4all DS loader app alex 4 22818 26.06.2011 19:41
Посл. сообщение: alex
  DreamShell 4.0.0 Beta 3 SWAT 61 180154 24.12.2009 17:46
Посл. сообщение: SWAT
  DreamShell 4.0.0 Beta 2 SWAT 17 51993 18.06.2009 07:49
Посл. сообщение: SWAT
  DreamShell on PC Loader SWAT 4 24076 03.12.2007 02:43
Посл. сообщение: zaero

Переход:


Пользователи просматривают эту тему: 5 Гость(ей)