TMF Hg

fixed timing on OSes that set a minimum time for sleeps (previously the main loop code assumed no minimum sleep time; the new version uses longer sleeps less frequently) default tip

  • Sat, 19 Apr 2014 02:19:39 -0600
  • by andrew@localhost [Sat, 19 Apr 2014 02:19:39 -0600] rev 152
  • fixed timing on OSes that set a minimum time for sleeps (previously the main loop code assumed no minimum sleep time; the new version uses longer sleeps less frequently)

added RTC emulation (attempts to set the date are ignored, and the year is currently hardcoded to 1987 because UNIX PC SysV has a few Y2K bugs)

  • Fri, 18 Apr 2014 01:34:20 -0600
  • by andrew@localhost [Fri, 18 Apr 2014 01:34:20 -0600] rev 151
  • added RTC emulation (attempts to set the date are ignored, and the year is currently hardcoded to 1987 because UNIX PC SysV has a few Y2K bugs)

treat all DMA reads/writes as kernel mode (previously it would depend on whether the processor happens to be in user mode or kernel mode when the DMA completes, which is totally incorrect); handle 32-bit accesses that straddle page boundaries properly (all 32-bit accesses are now split into two 16-bit accesses); allow reads to the entire zero page, rather than just address 0

  • Fri, 18 Apr 2014 01:26:01 -0600
  • by andrew@localhost [Fri, 18 Apr 2014 01:26:01 -0600] rev 150
  • treat all DMA reads/writes as kernel mode (previously it would depend on whether the processor happens to be in user mode or kernel mode when the DMA completes, which is totally incorrect); handle 32-bit accesses that straddle page boundaries properly (all 32-bit accesses are now split into two 16-bit accesses); allow reads to the entire zero page, rather than just address 0

disabled seek delay on WD2010 (Unix seems to work fine without it)

  • Thu, 17 Apr 2014 01:58:05 -0600
  • by andrew@localhost [Thu, 17 Apr 2014 01:58:05 -0600] rev 149
  • disabled seek delay on WD2010 (Unix seems to work fine without it)

ignore out-of-range addresses on low-level format commands (s4diag formats once sector past the end of each track)

  • Thu, 17 Apr 2014 01:50:41 -0600
  • by andrew@localhost [Thu, 17 Apr 2014 01:50:41 -0600] rev 148
  • ignore out-of-range addresses on low-level format commands (s4diag formats once sector past the end of each track)

fixed bus error handling for real this time (save registers before every instruction and push the saved registers if a bus error occurs, since the instruction may have changed registers before the bus error, and also stop the instruction immediately with longjmp so it won't change memory after the bus error)

  • Wed, 16 Apr 2014 02:20:43 -0600
  • by andrew@localhost [Wed, 16 Apr 2014 02:20:43 -0600] rev 147
  • fixed bus error handling for real this time (save registers before every instruction and push the saved registers if a bus error occurs, since the instruction may have changed registers before the bus error, and also stop the instruction immediately with longjmp so it won't change memory after the bus error)

    This isn't actually what a real 68k does, but it is a good enough approximation. A real 68k will jump back into the middle of the faulted instruction and resume it from the memory access that faulted as opposed to restarting from the beginning like this CPU emulation does. It would be a lot harder to do that with the way this CPU library is designed. Newer versions of MESS basically do the same thing (they use a newer version of this library).

added keyboard mappings for ENTER, CANCL, and EXIT

  • Wed, 16 Apr 2014 02:07:24 -0600
  • by andrew@localhost [Wed, 16 Apr 2014 02:07:24 -0600] rev 146
  • added keyboard mappings for ENTER, CANCL, and EXIT

Code clean up experimental_memory_mapper_v2

  • Tue, 21 May 2013 22:48:32 +0100
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 21 May 2013 22:48:32 +0100] rev 145
  • Code clean up

    * Tighten optimisation and warning options to find more potential issues
    * Remove unused variable in keyboard code
    * Display error message if ROMs fail to load
    * Fix format string bugs in WD2010

Don't set PS1 if there is a level-7 interrupt or bus error experimental_memory_mapper_v2

  • Fri, 12 Apr 2013 16:26:25 +0100
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 12 Apr 2013 16:26:25 +0100] rev 144
  • Don't set PS1 if there is a level-7 interrupt or bus error

    PS1 should only be set if the page was originally present (PS1 or PS0 set). If
    PS0 and PS1 are clear (page not present) then do NOT set PS1.

    Once again the TRM is blatantly and spectacularly wrong...

Flush stderr after printing debug messages experimental_memory_mapper_v2

  • Fri, 12 Apr 2013 12:37:34 +0100
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 12 Apr 2013 12:37:34 +0100] rev 143
  • Flush stderr after printing debug messages