Hi All, currently we are trying to get pattern mode running (for g9k) for SymbOS but we are facing an issue on real hardware. It is about scrolling. We have a back layer, a front- layer and a sprite layer. As soon we build the project everything works fine in openMSX (It scrolls like this: Example how it should work)
But as soon we run it on real hardware (CPC or MSX) the only thing you get is a scrolling background layer. The other 2 layers (front layer and sprite layer) are not visible anymore. If we disable the scrolling for the background layer the other 2 layers are visible again and the background layer is static behind but visible. But as soon we enable the background layer again for scrolling we are getting this issue.
So we think it is in this part of the code:
Does anybody facing the same issues and have a suggestion? Many thanks!
;LIBRARY QUIG.G9K.SCROLL.A ;************************** ;DE=X ;HL=Y .Quig_G9K_SCROLL_A ;Y ld a,g9k_SCROLL_LOW_Y ld bc,CG9K_REG_SELECT out (c),a ld a,l ld bc,CG9K_REG_DATA out (c),a ld a,2 rrca rrca or h out (c),a ;x ex de,hl ld a,g9k_SCROLL_LOW_X ld bc,CG9K_REG_SELECT out (c),a ld a,l and 7 ld bc,CG9K_REG_DATA out (c),a ld a,l srl h rra srl h rra srl h rra out (c),a ret ;LIBRARY QUIG.G9K.SCROLL.B ;************************** ;DE=X ;HL=Y .Quig_G9k_Scroll_B ;Y ld a,g9k_SCROLL_LOW_Y_B ld bc,CG9K_REG_SELECT out (c),a ld a,l ld bc,CG9K_REG_DATA out (c),a ld a,2 rrca rrca or h out (c),a ;x ex de,hl ld a,g9k_SCROLL_LOW_X_B ld bc,CG9K_REG_SELECT out (c),a ld a,l and 7 ld bc,CG9K_REG_DATA out (c),a ld a,l srl h rra srl h rra srl h rra out (c),a ret