похоже автор забил на "Ожидание сброса Command bit"
похоже автор забил на "Ожидание сброса Command bit"
Так есть возможность как-то профиксить эти неприятные моменты?
Не можешь поступить разумно - поступай правильно!
да, конечно.
если я прав получается что эти адаптации сделаны под эмулем и на реальных картах old/new вообще неработоспособны.
wuauuuuu, we maybe won)))) There is a sequence in the start address 25022 ( I speak about REX 1 GS from Tron z):
ld a,244
out (187),a
ld a,48
out (187),a
ld a,209
out (187),a
And I removed the first OUT, which is command #F4= cold restart, and the music played in the start perfectly. But sounds effects were corrupted. At least some progress. Thanks goodboy for a hint. Maybe some GS coder here would help us. There is a remark about #F4 command in the manual, but I do not understand it very well. The manual says:
ВНИМАНИЕ! Настройки команд #6A и #6B сбрасываются только аппаратным RESET или командой #F4 (командой #F3 не сбрасываются!).
Последний раз редактировалось hood; 23.03.2017 в 00:05.
hood, ты меня неправильно понял.
надо дождаться выполнения команды перед подачей следующей
исправил только загрузчик, музыка заиграла (unreal, gs=#z80)Код:ld a,command out (#bb),a change to call gs #command gs pop hl ld a,(hl) out (#bb),a inc hl push hl loop in a,(#bb); rrca ; jr c,loop ret
http://dropmefiles.com/shRPa
Последний раз редактировалось goodboy; 23.03.2017 в 00:08.
Последний раз редактировалось hood; 23.03.2017 в 09:44.
пофиксил вывод звуков, на unreal под gs=z80 работает, но с хрипотцой.
как будет на реале незнаю, проверяйте
http://dropmefiles.com/BW7V3
Код:ld a,command / call gs out (#BB),a / #command gs pop hl ; ex (sp),hl ; in certain cases value of HL should be kept ld a,(hl) out (#bb),a inc hl push hl ; ex (sp),hl loop in a,(#bb); rrca ; jr c,loop ret
Последний раз редактировалось goodboy; 23.03.2017 в 19:03.
Goodboy Привет, я должен пройти через "loop" после каждого байта или только в момент записи команды?
Это означает, что запись данных нет необходимости следовать через LOOP?
Последний раз редактировалось hood; 23.03.2017 в 23:20.
look at this http://zxdn.narod.ru/coding/zf6gsprg.txt
wc=wait command ; expectation of command execution
example
#2A Set Module Master Volume
SD Module_Master_Volume [#00.. #40]
SC #2A
WC
wait only after send command
and I by the way didn't program for GS earlier, just try to help
Последний раз редактировалось goodboy; 23.03.2017 в 23:50.
Ok, many thanks for help of course. I have the GS programming manual and I start to understand the structure of commands, etc.
So, in REX, I successfully make the music work. But with sound effects no way. Same as Chronos= lots of noise during FX. I just tried to change the sign in sample (command #3E) from 0 to 1 and it seems to work. No more noise in sound effects. And the loading FX routine needs also some improvements.
So, if you like, try it also in CHronos sound effects.
In REX, I skipped the music loading and then I clearly heard sound effects without music. I think the sign in #3E command was the reason for bad sound effects.
Hood
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)