public static void cps1_render_scroll2_bitmap(osd_bitmap bitmap) {//not sure...
        int sx, sy;
        int ny = (scroll2y >> 4);	  /* Rough Y */

        int base = cps1_game_config.bank_scroll2 * 0x04000;
        int startcode = cps1_game_config.start_scroll2;
        int endcode = cps1_game_config.end_scroll2;
        int kludge = cps1_game_config.kludge;

        for (sx = CPS1_SCROLL2_WIDTH - 1; sx >= 0; sx--) {
            int n = ny;
            for (sy = 0x09 * 2 - 1; sy >= 0; sy--) {
                long newvalue;
                int offsy, offsx, offs, colour, code;

                n &= 0x3f;
                offsy = ((n & 0x0f) * 4 | ((n & 0x30) * 0x100)) & 0x3fff;
                offsx = (sx * 0x040) & 0xfff;
                offs = offsy + offsx;

                colour = cps1_scroll2.READ_WORD(offs + 2);

                //newvalue=*(long*)(&cps1_scroll2[offs]);
                newvalue = readint(cps1_scroll2.memory, cps1_scroll2.offset, offs);
                //if ( newvalue != *(long*)(&cps1_scroll2_old[offs]) )
                if (newvalue != readint(cps1_scroll2_old, 0, offs)) {
                    //* (long *)(&cps1_scroll2_old[offs])=newvalue;
                    writeint(cps1_scroll2_old, offs, newvalue);
                    code = cps1_scroll2.READ_WORD(offs);
                    if (code >= startcode && code <= endcode
                            /*
                             MERCS has an gap in the scroll 2 layout
                             (bad tiles at start of level 2)*/
                            && !(kludge == 4 && (code >= 0x1e00 && code < 0x5400))) {
                        code += base;
                        cps1_draw_tile16_bmp(bitmap,
                                Machine.gfx[2],
                                code,
                                colour & 0x1f,
                                colour & 0x20, colour & 0x40,
                                16 * sx, 16 * n);
                    } else {
                        cps1_draw_blank16(bitmap, 16 * sx, 16 * n);
                    }
                    //cps1_print_debug_tile_info(bitmap, 16*sx, 16*n, colour,1);
                }
                n++;
            }
        }
    }