+ if(!pageflipflop && !pageploop)
+ modexCopyPageRegion(mv[id].page, mv[0].page, 0, y, 0, y, mv[id].map->tiles->tileWidth*(mv[0].page->tw+2), mv[id].map->tiles->tileHeight);
+ mv[0].video->r=1;
+}
+
+
+//TODO finish this wwww
+void near ScrollRight(map_view_t *mv, player_t *player, word id, word plid)
+{
+ /* increment the pixel position and update the page */
+ mv[id].page->dx += player[plid].speed;
+
+ /* check to see if this changes the tile */
+ if(mv[id].page->dx >= mv[0].dxThresh )
+ {
+// vga_setup_wm1_block_copy();
+// _fmemmove(mv[id].page->data+4, mv[id].page->data, mv[id].page->pagesize);
+// vga_restore_rm0wm0();
+ /* Snap the origin forward */
+ mv[id].page->data += 4;
+ mv[id].page->dx = mv[0].map->tiles->tileWidth;
+ }
+}
+
+void near ScrollLeft(map_view_t *mv, player_t *player, word id, word plid)
+{
+ /* decrement the pixel position and update the page */
+ mv[id].page->dx -= player[plid].speed;
+
+ /* check to see if this changes the tile */
+ if(mv[id].page->dx == 0)
+ {
+// vga_setup_wm1_block_copy();
+// _fmemmove(mv[id].page->data-4, mv[id].page->data, mv[id].page->pagesize);
+// vga_restore_rm0wm0();
+ /* Snap the origin backward */
+ mv[id].page->data -= 4;
+ mv[id].page->dx = mv[0].map->tiles->tileWidth;
+ }
+}
+
+void near ScrollUp(map_view_t *mv, player_t *player, word id, word plid)
+{
+ /* decrement the pixel position and update the page */
+ mv[id].page->dy -= player[plid].speed;
+
+ /* check to see if this changes the tile */
+ if(mv[id].page->dy == 0)
+ {
+// vga_setup_wm1_block_copy();
+// _fmemmove(mv[id].page->data-mv[id].page->pi, mv[id].page->data, mv[id].page->pagesize);
+// vga_restore_rm0wm0();
+ /* Snap the origin backward */
+ mv[id].page->data -= mv[id].page->pi;
+ mv[id].page->dy = mv[0].map->tiles->tileWidth;
+ }
+}
+
+void near ScrollDown(map_view_t *mv, player_t *player, word id, word plid)
+{
+ /* increment the pixel position and update the page */
+ mv[id].page->dy += player[plid].speed;
+
+ /* check to see if this changes the tile */
+ if(mv[id].page->dy >= mv[0].dxThresh )
+ {
+// vga_setup_wm1_block_copy();
+// _fmemmove(mv[id].page->data+mv[id].page->pi, mv[id].page->data, mv[id].page->pagesize);
+// vga_restore_rm0wm0();
+ /* Snap the origin forward */
+ mv[id].page->data += mv[id].page->pi;
+ mv[id].page->dy = mv[0].map->tiles->tileWidth;
+ }