fixed nametab.B invalid address, and spr_submit with 0 sprites
[mdlife] / src / vdp.S
index 990a3ef..c1cf6a2 100644 (file)
--- a/src/vdp.S
+++ b/src/vdp.S
@@ -70,8 +70,8 @@ def_reg_tab:
        .byte VDP_REG_MODE2, VDP_M2_INIT + VDP_M2_DISP  | 1: mode 2
        .byte VDP_REG_NAMEA, VDP_NA_ADDR(0xc000)        | 2: scroll A nametable addr.
        .byte VDP_REG_NAMEW, 0                          | 3: window nametable addr.
-       .byte VDP_REG_NAMEB, VDP_NB_ADDR(0xd000)        | 4: scroll B nametable addr.
-       .byte VDP_REG_SPR, VDP_SPRTAB_ADDR(0xe000)      | 5: sprite table addr.
+       .byte VDP_REG_NAMEB, VDP_NB_ADDR(0xe000)        | 4: scroll B nametable addr.
+       .byte VDP_REG_SPR, VDP_SPRTAB_ADDR(0xd000)      | 5: sprite table addr.
        .byte VDP_REG_BGCOL, 0                          | 7: bg color
        .byte VDP_REG_HINTR, 0                          | 10: horiz. interrupt interval
        .byte VDP_REG_MODE3, 0                          | 11: mode 3