Sorry, I cannot explain(
trick was in changix X and Y coordinates, so snowflakes fly on screen(both bit 9)
Sorry, I cannot explain(
trick was in changix X and Y coordinates, so snowflakes fly on screen(both bit 9)
Well I'm considering a 9-bit number for X coordinate, so values are from 0...511
Because the pixel resolution is not as long as 511, I consider that X position 511 is at the right-end and not visible zone on the screen, so if you consider a video mode with 320 pixels width, you will only see sprites with pixel position between 0..319, and 320 to 511 are not visible.
But If you think the 9-bit number can have sign, you have values from -256 to 255, a value of 511 for me it's -1 for you, and if you consider -1 position as at the left part on the screen (or at the right-end of the screen), it's the same position as I'm considering, so it doesn't matter if you consider always positive or a number with sign
Looking at the demo, there are two snowflakes fixed at the top or at the bottom, the X coordinate is fixed, so I think the bug comes from another side... I will talk with g0blinish (the author of the demo) and ask about it
Thanks
- - - Добавлено - - -
Just fixed the snowflakes bug
I had a bug which made it impossible to write on fmaps position 200h or 400h...that's why the Y position was always 0 or 256...
Последний раз редактировалось chernandezba; 14.03.2018 в 17:23.
lol.
there are a lot of demos to test emulation: Raster, Fast, etc.
Yes, curiously, I haven't noticed any Y-coordinate bug on other demos/games, but I will have to test all of them
- - - Добавлено - - -
For those who are curious, the bug is: (in diff format)
diff --git a/src/tsconf.c b/src/tsconf.c
index 1f762dc..48db19e 100644
--- a/src/tsconf.c
+++ b/src/tsconf.c
@@ -69,12 +69,12 @@ void tsconf_write_fmaps(int tsconf_fmaps_offset,z80_byte valor) {
tsconf_fmaps[tsconf_fmaps_offset]=valor;
}
- if (tsconf_fmaps_offset>0x200 && tsconf_fmaps_offset<0x400) {
+ if (tsconf_fmaps_offset>=0x200 && tsconf_fmaps_offset<0x400) {
//printf ("Zona tsconf sprites\n");
tsconf_fmaps[tsconf_fmaps_offset]=valor;
}
- if (tsconf_fmaps_offset>0x400 && tsconf_fmaps_offset<0x500) {
+ if (tsconf_fmaps_offset>=0x400 && tsconf_fmaps_offset<0x500) {
//printf ("Zona tsconf registers\n");
//Solo escribe en regustro tsconf. no en ram fmaps
tsconf_write_af_port(tsconf_fmaps_offset-0x400,valor);
Rasters - there are no raster effect on background
Fast - twister effect with lack of tile layer (with flipY flag)
TSLbrains - no picture on screen
- - - Добавлено - - -
and last one: Merhaba without scroller (letters is sprites too)
chernandezba, can you make deb-package for 32 and 64bit Linux (Mint, 18.3)?
I'm beginner in linux world and can't make deb, but want try your emultor.
С любовью к вам, Yandex.Direct
Размещение рекламы на форуме способствует его дальнейшему развитию
Thanks. That twister effect is almost killing me :P My first tsconf render routine does show the entire twister, but that routine was clearly wrong (lots of features not emulated). Some day will run perfect (I hope!)
- - - Добавлено - - -
Will I only make executable Linux versions for stable versions, not beta, and they are compatible with Linux debian 9 (the one I have) , but I don't know if they run on Mint
It's very easy to compile it... take a look at the INSTALL file
- - - Добавлено - - -
Just go to https://github.com/chernandezba/zesa.../v6.1-13032018
I have added a debian 9 binary version
Just uncompress it, enter to directory ZEsarUX-6.1 and run ./zesarux
well, maybe it helps debugging(
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)