public void handler(int col, int row) {
            int color, tile_number, attrib, offset;
            UShortPtr source = new UShortPtr(fgvideoram[0]);

            offset = ((row * 64) + (col * 2)) & 0x7ff;

            attrib = source.read(offset);
            tile_number = source.read(offset + 1);
            color = attrib & 0x7f;
            SET_TILE_INFO(0, tile_number, color);
            tile_info.priority = (char) ((attrib & 0x0f00) >> 8);
        }