ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/main_amiga.cpp
(Generate patch)

Comparing BasiliskII/src/AmigaOS/main_amiga.cpp (file contents):
Revision 1.18 by cebix, 2001-07-03T15:59:45Z vs.
Revision 1.19 by cebix, 2001-10-07T19:50:19Z

# Line 598 | Line 598 | static __saveds void tick_func(void)
598  
599   static __saveds void xpram_func(void)
600   {
601 <        uint8 last_xpram[256];
602 <        memcpy(last_xpram, XPRAM, 256);
601 >        uint8 last_xpram[XPRAM_SIZE];
602 >        memcpy(last_xpram, XPRAM, XPRAM_SIZE);
603  
604          while (xpram_proc_active) {
605                  for (int i=0; i<60 && xpram_proc_active; i++)
606                          Delay(50);              // Only wait 1 second so we quit promptly when xpram_proc_active becomes false
607 <                if (memcmp(last_xpram, XPRAM, 256)) {
608 <                        memcpy(last_xpram, XPRAM, 256);
607 >                if (memcmp(last_xpram, XPRAM, XPRAM_SIZE)) {
608 >                        memcpy(last_xpram, XPRAM, XPRAM_SIZE);
609                          SaveXPRAM();
610                  }
611          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines