TMF Hg

More bus error fixes for FreeBee

  • Mon, 14 Jan 2013 09:22:12 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 14 Jan 2013 09:22:12 +0000] rev 118
  • More bus error fixes for FreeBee

    I have fixed two more bus error handling bugs in FreeBee. First, the CPU core was executing the instruction regardless of whether a bus error occurs when fetching the opcode (which caused it to execute a bogus instruction in such cases). The other one was related to one of my previous fixes - the jump to the bus error vector was at the beginning of the main loop, so it wouldn't be called immediately after the bus error occurred if the timeslot expired, causing the return address to be off.

    With these fixes, Unix now runs enough to get into userspace and run the install script (it is also possible to break out and get a shell prompt). However, many commands segfault semi-randomly (or more specifically, it seems that some child processes forked by the shell might be segfaulting before they can exec the command program), so installing the system isn't possible yet. I am not sure exactly what the bug is, but it seems to be related to some function in the shell returning null when the code calling it is assuming that it won't. What the function is, or why it is returning null, I'm not sure (the shell is built without the shared libc and is stripped, making identifying the function harder). I suspect that the function might be in libc, but that is hard to tell.

    Author: Andrew Warkentin <andreww591 gmail com>

show LED state change only if SHOW_LEDS is defined

  • Tue, 20 Nov 2012 23:31:03 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 20 Nov 2012 23:31:03 +0000] rev 117
  • show LED state change only if SHOW_LEDS is defined

Add support for MSR2, partial reads from GENSTAT

  • Sat, 17 Nov 2012 22:26:53 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sat, 17 Nov 2012 22:26:53 +0000] rev 116
  • Add support for MSR2, partial reads from GENSTAT

    * GENSTAT is sometimes read in 8bit mode. Handle this properly.

    * Add support for the MSR2 register (additional HDD head select bit only at
    the moment)

wd2010: use LOGS when logging unformatted strings

  • Sat, 17 Nov 2012 22:15:23 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sat, 17 Nov 2012 22:15:23 +0000] rev 115
  • wd2010: use LOGS when logging unformatted strings

Fix bit masking logic in 'dead bus' return

  • Sat, 17 Nov 2012 22:14:09 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sat, 17 Nov 2012 22:14:09 +0000] rev 114
  • Fix bit masking logic in 'dead bus' return

    In some cases (e.g. 16bit reads) a bad 'idle bus' return may be provided.
    Promote the '1' to unsigned long prior to left-shifting it.

ACCESS_CHECK_RD should return the right number of bits!

  • Sat, 17 Nov 2012 21:28:48 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sat, 17 Nov 2012 21:28:48 +0000] rev 113
  • ACCESS_CHECK_RD should return the right number of bits!

    If the ACCESS_CHECK_RD() macro detects a page fault, it always returns a
    32-bit error response ("all bus pins high"). Musashi really doesn't like it
    when we pass in a 32-bit value when it expects a 16-bit one!

add HDD support + fixes

  • Sat, 17 Nov 2012 19:18:29 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sat, 17 Nov 2012 19:18:29 +0000] rev 112
  • add HDD support + fixes

    Patch-Author: Andrew Warkentin <andreww591!gmail>
    Patch-Message-ID: <50A772FC.8020009@gmail.com>

    I have added floppy write support, full hard disk emulation, and proper handling of DMA page faults to FreeBee. I also fixed the floppy step commands, changed the "force interrupt" floppy command to generate a type 1 status, and changed the DMA address counter to reset to 3fff when a transfer completes (which is what Unix seems to expect - without it, the kernel says that the floppy isn't ready). The floppy, hard disk, and DMA page fault tests all pass. Initializing hard disks and floppies also works (the geometry for both is still fixed by the size of the image, though, and format commands only appear to succeed, but they don't modify the image). Unix still doesn't run, though (it hangs after reading some sectors from the floppy).

Improve floppy disc support

  • Sat, 17 Nov 2012 19:13:08 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sat, 17 Nov 2012 19:13:08 +0000] rev 111
  • Improve floppy disc support

    Patch-Author: Andrew Warkentin <andreww591!gmail>
    Patch-Message-ID: <50A772FC.8020009@gmail.com>

[musashi] fix stackframe type for bus errors

  • Thu, 08 Dec 2011 23:44:19 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 08 Dec 2011 23:44:19 +0000] rev 110
  • [musashi] fix stackframe type for bus errors

    Bus errors incorrectly pushed a Type 0000 stackframe, when they should have pushed a Type 1000 (Type $8) stackframe.
    Also, type 1000 frames were not handled for 68010 CPUs. They are now, but code must later be added to handle them for 68020s. FIXME!

    Reported-By: Armin Diehl <ad ardiehl.de>

[musashi] Fix handling of bus errors

  • Tue, 15 Nov 2011 10:12:37 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 15 Nov 2011 10:12:37 +0000] rev 109
  • [musashi] Fix handling of bus errors

    Patch-Author: Andrew Warkentin <andreww591!gmail>
    Patch-MessageID: <4EC200CE.2020304@gmail.com>

    I have fixed the first page fault test failure in FreeBee (the page fault test now hangs rather than errors out, because it is trying to read from the hard drive to test DMA page faults).

    There were actually two bugs (the first bug was masking the second one).

    First, the ancient version of Musashi that you used is unable to properly resume from bus errors that happen in the middle of certain instructions (some instructions are fetched in stages, with the PC being advanced to each part of the instruction, so basically what happens is the CPU core attempts to read the memory location referenced by the first operand, the bus error occurs, causing the PC to jump to the exception vector, but the faulting instruction is still in the middle of being fetched, so the PC is then advanced past the beginning of the exception handler). I fixed this by delaying the jump to the bus error vector until after the faulting instruction finishes.

    The second bug is simpler - you had the UDS and LDS bits in BSR0 inverted (they are supposed to be active low).

Fix BSR0 UDS/LDS bit polarity

  • Tue, 15 Nov 2011 09:30:57 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 15 Nov 2011 09:30:57 +0000] rev 108
  • Fix BSR0 UDS/LDS bit polarity

    Patch-Author: Andrew Warkentin <andreww591!gmail>
    Patch-MessageID: <4EC200CE.2020304@gmail.com>

    ... "The second bug is simpler - you had the UDS and LDS bits in BSR0 inverted (they are supposed to be active low)."

only strobe BUSERR if dma access caused a pagefault, and don't send IRQ0s (musashi auto-clears IRQs)!

  • Fri, 04 Mar 2011 02:12:25 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 02:12:25 +0000] rev 107
  • only strobe BUSERR if dma access caused a pagefault, and don't send IRQ0s (musashi auto-clears IRQs)!

More verbose logging of page faults and bus errors

  • Fri, 04 Mar 2011 01:38:39 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 01:38:39 +0000] rev 106
  • More verbose logging of page faults and bus errors

fix small typos in WriteMem32

  • Fri, 04 Mar 2011 01:37:42 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 01:37:42 +0000] rev 105
  • fix small typos in WriteMem32

    WriteMem32 warnings for writes to MapRAM and VRAM mirrors were incorrectly declaring themselves as read operations.

fix issue with WE+ bit becoming unset, fix pagefault:not-mapped-in logic

  • Fri, 04 Mar 2011 01:36:30 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 01:36:30 +0000] rev 104
  • fix issue with WE+ bit becoming unset, fix pagefault:not-mapped-in logic

    - The WE+ (page write enable) bit was becoming unset when the Page Status bits were being set.
    A stupid mistake in an AND expression was unsetting the write-enable, thus making S4TEST 12,2 and 12,3 fail spectacularly.

    - Pagefaults were not being generated correctly for pages which were not mapped in. Even Supervisor code accessing unmapped pages should get a PF.

more verbose bus error logging

  • Fri, 04 Mar 2011 00:44:36 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 00:44:36 +0000] rev 103
  • more verbose bus error logging

add Error Enable bit to gcr write handler

  • Fri, 04 Mar 2011 00:44:06 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 00:44:06 +0000] rev 102
  • add Error Enable bit to gcr write handler

add Error Enable bit to system state

  • Fri, 04 Mar 2011 00:41:52 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 04 Mar 2011 00:41:52 +0000] rev 101
  • add Error Enable bit to system state

Fix broken pagebit update code (was failing S4TEST 19 Map Translation test)

  • Thu, 03 Mar 2011 13:05:21 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 03 Mar 2011 13:05:21 +0000] rev 100
  • Fix broken pagebit update code (was failing S4TEST 19 Map Translation test)

use LOG functions for kbc debugging, make KBC debugging optional

  • Thu, 03 Mar 2011 08:18:57 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 03 Mar 2011 08:18:57 +0000] rev 99
  • use LOG functions for kbc debugging, make KBC debugging optional

add single-string logging functions to work around gcc warning

  • Thu, 03 Mar 2011 08:15:09 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 03 Mar 2011 08:15:09 +0000] rev 98
  • add single-string logging functions to work around gcc warning

Add 60Hz timer tick patch from Andrew Warkentin <andreww591 gmail com>

  • Wed, 02 Mar 2011 07:16:32 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 02 Mar 2011 07:16:32 +0000] rev 97
  • Add 60Hz timer tick patch from Andrew Warkentin <andreww591 gmail com>

    ... I have also attached a patch that adds the 60Hz timer interrupt (I'm not sure if it's totally correct, though, since the cursor blinks rather slowly).

    Received-From: Andrew Warkentin <andreww591 gmail com>
    Signed-Off-By: Philip Pemberton <philpem@philpem.me.uk>

Add keyboard patch from Andrew Warkentin <andreww591 gmail com>

  • Tue, 01 Mar 2011 21:33:32 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 01 Mar 2011 21:33:32 +0000] rev 96
  • Add keyboard patch from Andrew Warkentin <andreww591 gmail com>

    I fixed the keyboard in FreeBee. I looked at the keyboard driver source available on a few sites, and it appears that BEGKBD/KEY_BEGIN_KEYBOARD is only supposed to be sent after the end of mouse data, and that KLAST/KEY_LIST_END is not a separate code, but a flag that is set on the last non-KALLUP/KEY_ALL_UP code in a list. I have attached a patch that implements these changes. I have also attached a patch that adds the 60Hz timer interrupt (I'm not sure if it's totally correct, though, since the cursor blinks rather slowly).

    Received-From: Andrew Warkentin <andreww591 gmail com>
    Signed-Off-By: Philip Pemberton <philpem@philpem.me.uk>

make it possible to eject the floppy disc (use F11!)

  • Thu, 10 Feb 2011 01:09:42 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 10 Feb 2011 01:09:42 +0000] rev 95
  • make it possible to eject the floppy disc (use F11!)

fix keyboard update-flag handler to only set flag when a mapped key has been pressed

  • Thu, 10 Feb 2011 01:09:04 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 10 Feb 2011 01:09:04 +0000] rev 94
  • fix keyboard update-flag handler to only set flag when a mapped key has been pressed

properly handle 8 and 16 bit KBC writes

  • Thu, 10 Feb 2011 01:08:32 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 10 Feb 2011 01:08:32 +0000] rev 93
  • properly handle 8 and 16 bit KBC writes

remove edge-sensive kbc intr handler, was breaking the keyboard stuff. also made kbd refresh at same rate as 60Hz tick.

  • Thu, 10 Feb 2011 00:07:59 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 10 Feb 2011 00:07:59 +0000] rev 92
  • remove edge-sensive kbc intr handler, was breaking the keyboard stuff. also made kbd refresh at same rate as 60Hz tick.

only send kb state when the state changes, use kb command constants

  • Wed, 09 Feb 2011 23:45:55 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 23:45:55 +0000] rev 91
  • only send kb state when the state changes, use kb command constants

merge heads

  • Wed, 09 Feb 2011 22:05:42 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 22:05:42 +0000] rev 90
  • merge heads

make utils.h include stdio (for LOG functions)

  • Thu, 30 Dec 2010 00:45:13 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 30 Dec 2010 00:45:13 +0000] rev 89
  • make utils.h include stdio (for LOG functions)

add NELEMS macro to utils.h

  • Thu, 30 Dec 2010 00:44:25 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 30 Dec 2010 00:44:25 +0000] rev 88
  • add NELEMS macro to utils.h

fix fdc irq handling (but irqs still disabled for now until the arbiter is sorted out)

  • Thu, 30 Dec 2010 00:41:48 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 30 Dec 2010 00:41:48 +0000] rev 87
  • fix fdc irq handling (but irqs still disabled for now until the arbiter is sorted out)

add keyboard event handler; need to do register r/w next.

  • Thu, 30 Dec 2010 00:37:03 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 30 Dec 2010 00:37:03 +0000] rev 86
  • add keyboard event handler; need to do register r/w next.

more keyboard fixes... interrupt logic needs fixing... grrrrr...

  • Wed, 09 Feb 2011 17:11:48 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 17:11:48 +0000] rev 85
  • more keyboard fixes... interrupt logic needs fixing... grrrrr...

major work on keyboard driver

  • Wed, 09 Feb 2011 16:35:49 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 16:35:49 +0000] rev 84
  • major work on keyboard driver

fix stupid mistakes in keyboard code (i broke the build, w00t...)

  • Wed, 09 Feb 2011 15:43:48 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 15:43:48 +0000] rev 83
  • fix stupid mistakes in keyboard code (i broke the build, w00t...)

fix DELETE mapping and add keyboard evt handler

  • Wed, 09 Feb 2011 15:40:05 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 15:40:05 +0000] rev 82
  • fix DELETE mapping and add keyboard evt handler

ignore discs dir

  • Wed, 09 Feb 2011 15:39:16 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 15:39:16 +0000] rev 81
  • ignore discs dir

implement some more of the keyboard controller

  • Wed, 09 Feb 2011 15:03:31 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 09 Feb 2011 15:03:31 +0000] rev 80
  • implement some more of the keyboard controller

eliminate redundant head

  • Wed, 29 Dec 2010 09:06:17 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 29 Dec 2010 09:06:17 +0000] rev 79
  • eliminate redundant head

merge heads (properly this time)

  • Wed, 29 Dec 2010 09:04:43 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 29 Dec 2010 09:04:43 +0000] rev 78
  • merge heads (properly this time)

discard head, need to merge some stuff back in later

  • Wed, 29 Dec 2010 03:27:35 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 29 Dec 2010 03:27:35 +0000] rev 77
  • discard head, need to merge some stuff back in later

move edge-sensitive FDC IRQ to main()

  • Mon, 06 Dec 2010 08:27:21 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 06 Dec 2010 08:27:21 +0000] rev 76
  • move edge-sensitive FDC IRQ to main()

init state variables properly

  • Mon, 06 Dec 2010 08:27:05 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 06 Dec 2010 08:27:05 +0000] rev 75
  • init state variables properly

add first cut keyboard driver

  • Wed, 29 Dec 2010 01:38:54 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 29 Dec 2010 01:38:54 +0000] rev 74
  • add first cut keyboard driver

small amt of wd279x tidying

  • Tue, 28 Dec 2010 22:37:21 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 22:37:21 +0000] rev 73
  • small amt of wd279x tidying

Only print LED state if it has changed

  • Tue, 28 Dec 2010 21:47:43 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 21:47:43 +0000] rev 72
  • Only print LED state if it has changed

add LOG macro and convert WD279x printfs to LOG() calls

  • Tue, 28 Dec 2010 19:55:13 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 19:55:13 +0000] rev 71
  • add LOG macro and convert WD279x printfs to LOG() calls

tidy up WR_nn macros

  • Tue, 28 Dec 2010 19:23:57 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 19:23:57 +0000] rev 70
  • tidy up WR_nn macros

add page fault handling for DMA controller

  • Tue, 28 Dec 2010 19:11:46 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 19:11:46 +0000] rev 69
  • add page fault handling for DMA controller

fix UDS/LDS in bus error handling for 16/32-bit accesses

  • Tue, 28 Dec 2010 19:10:36 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 19:10:36 +0000] rev 68
  • fix UDS/LDS in bus error handling for 16/32-bit accesses

DMA: remove a few debug messages and rewrite memory error handling

  • Tue, 28 Dec 2010 18:59:15 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 18:59:15 +0000] rev 67
  • DMA: remove a few debug messages and rewrite memory error handling

fix ENFORCE_SIZE to print "read from" / "write to"

  • Tue, 28 Dec 2010 18:58:51 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 18:58:51 +0000] rev 66
  • fix ENFORCE_SIZE to print "read from" / "write to"

fix expansion RAM handling and Unhandled Read From Expansion Space alerts

  • Tue, 28 Dec 2010 18:36:39 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 18:36:39 +0000] rev 65
  • fix expansion RAM handling and Unhandled Read From Expansion Space alerts

turn logging of unhandled I/O R/W ops back on

  • Tue, 28 Dec 2010 18:19:48 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 18:19:48 +0000] rev 64
  • turn logging of unhandled I/O R/W ops back on

finish expansion memory emulation

  • Tue, 28 Dec 2010 17:47:01 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 17:47:01 +0000] rev 63
  • finish expansion memory emulation

add state initialisation for expansion RAM

  • Tue, 28 Dec 2010 17:31:28 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 17:31:28 +0000] rev 62
  • add state initialisation for expansion RAM

fixed expansion ram addressing, now detects base/expansion RAM counts correctly

  • Tue, 28 Dec 2010 17:25:46 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 17:25:46 +0000] rev 61
  • fixed expansion ram addressing, now detects base/expansion RAM counts correctly

fixes to Base RAM addressing -- 512K detected OK now, still need to deal with Expansion RAM detect issues

  • Tue, 28 Dec 2010 17:23:04 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 17:23:04 +0000] rev 60
  • fixes to Base RAM addressing -- 512K detected OK now, still need to deal with Expansion RAM detect issues

partial rewrite of memory / I/O handling code to reduce repetition

  • Tue, 28 Dec 2010 16:59:40 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 28 Dec 2010 16:59:40 +0000] rev 59
  • partial rewrite of memory / I/O handling code to reduce repetition

update hgignore

  • Wed, 15 Dec 2010 01:20:57 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 15 Dec 2010 01:20:57 +0000] rev 58
  • update hgignore

add CHS param checking (FDC), fix DMA address setting (DMA_XFER)

  • Tue, 14 Dec 2010 02:41:40 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 14 Dec 2010 02:41:40 +0000] rev 57
  • add CHS param checking (FDC), fix DMA address setting (DMA_XFER)

    * Floppy controller wasn't checking CHS values. Fixed.
    * DMA ADDRESS COUNT register was implemented completely wrong -- shifts and ANDmasks were wrong. Fixed.

    Boot PROM and Loader now run to the point of booting the kernel!

disable floppy interrupts (to CPU), force HDD int flag on (i.e. command always complete)

  • Mon, 13 Dec 2010 03:00:43 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 13 Dec 2010 03:00:43 +0000] rev 56
  • disable floppy interrupts (to CPU), force HDD int flag on (i.e. command always complete)

improve error and DMA handling

  • Sun, 12 Dec 2010 23:47:35 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 12 Dec 2010 23:47:35 +0000] rev 55
  • improve error and DMA handling

fix side-select bug in WDC FDC driver, was causing all reads to occur on side0... now the Loader boots!

  • Mon, 06 Dec 2010 01:43:04 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 06 Dec 2010 01:43:04 +0000] rev 54
  • fix side-select bug in WDC FDC driver, was causing all reads to occur on side0... now the Loader boots!

    Loader will boot, but immediately gives up on the floppy drive... Not sure why.

disc dma seems to work, but still no boot ;(

  • Mon, 06 Dec 2010 01:26:37 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 06 Dec 2010 01:26:37 +0000] rev 53
  • disc dma seems to work, but still no boot ;(

add preliminary WD279x emulation to core

  • Sun, 05 Dec 2010 16:20:00 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 05 Dec 2010 16:20:00 +0000] rev 52
  • add preliminary WD279x emulation to core

fix CHS => LBA calculation for multisector reads

  • Sun, 05 Dec 2010 16:18:50 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 05 Dec 2010 16:18:50 +0000] rev 51
  • fix CHS => LBA calculation for multisector reads

    Wrapping was not taken into account...

remove redundant sdl_quit()

  • Sun, 05 Dec 2010 10:22:23 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 05 Dec 2010 10:22:23 +0000] rev 50
  • remove redundant sdl_quit()

more floppy controller stuff

  • Sun, 05 Dec 2010 10:17:38 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 05 Dec 2010 10:17:38 +0000] rev 49
  • more floppy controller stuff

add preliminary WD2797 FDC emulator

  • Sun, 05 Dec 2010 03:55:46 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 05 Dec 2010 03:55:46 +0000] rev 48
  • add preliminary WD2797 FDC emulator

add SDL event handler -- now we can quit the emulator without using kill -9! :)

  • Fri, 03 Dec 2010 14:21:19 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 03 Dec 2010 14:21:19 +0000] rev 47
  • add SDL event handler -- now we can quit the emulator without using kill -9! :)

add comments for some write-only regs, fix LOG_NOT_HANDLED_R(32) in read16, basic LED reg decoding

  • Fri, 03 Dec 2010 01:43:57 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 03 Dec 2010 01:43:57 +0000] rev 46
  • add comments for some write-only regs, fix LOG_NOT_HANDLED_R(32) in read16, basic LED reg decoding

fix missing shift-right in video output code

  • Fri, 03 Dec 2010 00:20:36 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 03 Dec 2010 00:20:36 +0000] rev 45
  • fix missing shift-right in video output code

fix state/status transposition, add GENCON.PIE handling

  • Fri, 03 Dec 2010 00:12:53 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 03 Dec 2010 00:12:53 +0000] rev 44
  • fix state/status transposition, add GENCON.PIE handling

add basic handling for Clear Status Register and fix mem access checks to provide PIE status

  • Fri, 03 Dec 2010 00:04:01 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Fri, 03 Dec 2010 00:04:01 +0000] rev 43
  • add basic handling for Clear Status Register and fix mem access checks to provide PIE status

add a few colour variants

  • Thu, 02 Dec 2010 23:37:49 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 23:37:49 +0000] rev 42
  • add a few colour variants

add video emulation

  • Thu, 02 Dec 2010 23:30:13 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 23:30:13 +0000] rev 41
  • add video emulation

move memory access and mapping functions into memory.[ch]

  • Thu, 02 Dec 2010 23:03:13 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 23:03:13 +0000] rev 40
  • move memory access and mapping functions into memory.[ch]

    This is to tidy up main.c...

remove redundant debug printf

  • Thu, 02 Dec 2010 22:40:13 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 22:40:13 +0000] rev 39
  • remove redundant debug printf

add proper tracking of unhandled R/W operations

  • Thu, 02 Dec 2010 22:27:43 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 22:27:43 +0000] rev 38
  • add proper tracking of unhandled R/W operations

rework address-check logic

  • Thu, 02 Dec 2010 20:58:12 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 20:58:12 +0000] rev 37
  • rework address-check logic

disable redundant R/W logging

  • Thu, 02 Dec 2010 20:42:30 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 20:42:30 +0000] rev 36
  • disable redundant R/W logging

fix ROMLMAP handling

  • Thu, 02 Dec 2010 20:19:20 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 20:19:20 +0000] rev 35
  • fix ROMLMAP handling

rewrite memory access routines

  • Thu, 02 Dec 2010 19:30:46 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 19:30:46 +0000] rev 34
  • rewrite memory access routines

Fix mallocing issue with ram array

  • Thu, 02 Dec 2010 17:12:28 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 17:12:28 +0000] rev 33
  • Fix mallocing issue with ram array

    RAM storage array was not being correctly allocated at startup. This caused memory access issues... Spotted with Valgrind, fixed.

Implement memory mapping and access checking

  • Thu, 02 Dec 2010 17:01:34 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 17:01:34 +0000] rev 32
  • Implement memory mapping and access checking

[musashi] fix mis-named pulse_bus_error func

  • Thu, 02 Dec 2010 16:37:55 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 16:37:55 +0000] rev 31
  • [musashi] fix mis-named pulse_bus_error func

add routines for memory access checking

  • Thu, 02 Dec 2010 02:43:49 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 02:43:49 +0000] rev 30
  • add routines for memory access checking

indicate supervisor state in unknown reg printfs

  • Thu, 02 Dec 2010 01:31:05 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 01:31:05 +0000] rev 29
  • indicate supervisor state in unknown reg printfs

add SDL video mode set code

  • Thu, 02 Dec 2010 01:03:46 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Thu, 02 Dec 2010 01:03:46 +0000] rev 28
  • add SDL video mode set code

add Map RAM emulation

  • Wed, 01 Dec 2010 22:43:52 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 22:43:52 +0000] rev 27
  • add Map RAM emulation

    The emulator is now capable of booting up to the point where the BootPROM accesses the floppy and hard drive controllers.

    Still TODO:
    Lots of I/O registers
    Memory mapping, banking and protection
    Supervisor R/W restrictions (only SV mode code should be able to R/W I/O regs, user RAM is fair game)

move repeated R/W bit-shifting stuff into macros and fix RAM addressing issue

  • Wed, 01 Dec 2010 22:34:15 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 22:34:15 +0000] rev 26
  • move repeated R/W bit-shifting stuff into macros and fix RAM addressing issue

add LED decode [debug]

  • Wed, 01 Dec 2010 22:15:41 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 22:15:41 +0000] rev 25
  • add LED decode [debug]

add VRAM emulation

  • Wed, 01 Dec 2010 22:11:06 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 22:11:06 +0000] rev 24
  • add VRAM emulation

remove annoying 'timeslot' debug-log printf

  • Wed, 01 Dec 2010 22:01:58 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 22:01:58 +0000] rev 23
  • remove annoying 'timeslot' debug-log printf

fix unknown-register logging

  • Wed, 01 Dec 2010 22:01:23 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 22:01:23 +0000] rev 22
  • fix unknown-register logging

Edit I/O routines so R/Ws only log if the register is unknown

  • Wed, 01 Dec 2010 21:55:09 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 21:55:09 +0000] rev 21
  • Edit I/O routines so R/Ws only log if the register is unknown

add main emulation loop with preliminary timing

  • Wed, 01 Dec 2010 21:29:44 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Wed, 01 Dec 2010 21:29:44 +0000] rev 20
  • add main emulation loop with preliminary timing

[musashi] add preliminary bus error exception triggering

  • Tue, 30 Nov 2010 01:51:22 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Tue, 30 Nov 2010 01:51:22 +0000] rev 19
  • [musashi] add preliminary bus error exception triggering

split state handling into state.[ch]

  • Mon, 29 Nov 2010 00:20:40 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Mon, 29 Nov 2010 00:20:40 +0000] rev 18
  • split state handling into state.[ch]

add license clarification to boot banner

  • Sun, 28 Nov 2010 23:29:00 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 23:29:00 +0000] rev 17
  • add license clarification to boot banner

add preliminary main loop

  • Sun, 28 Nov 2010 23:08:06 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 23:08:06 +0000] rev 16
  • add preliminary main loop

update hgignore

  • Sun, 28 Nov 2010 23:07:49 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 23:07:49 +0000] rev 15
  • update hgignore

sync Makefile with MakefileTemplate v1.9

  • Sun, 28 Nov 2010 23:07:17 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 23:07:17 +0000] rev 14
  • sync Makefile with MakefileTemplate v1.9

[makefile] fix SDL config (cflags and liblnk), fix date formats, fix for cflags with slashes

  • Sun, 28 Nov 2010 23:05:31 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 23:05:31 +0000] rev 13
  • [makefile] fix SDL config (cflags and liblnk), fix date formats, fix for cflags with slashes

    - Fixed SDL configuration pull-in to use $(shell ...) instead of backticks
    - Fix date formats, add DATETIME string
    - Fix sed bailout when CFLAGS contains slashes (e.g. paths)

remove debug fluff

  • Sun, 28 Nov 2010 22:05:07 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 22:05:07 +0000] rev 12
  • remove debug fluff

enforce RAM size requirements

  • Sun, 28 Nov 2010 22:04:14 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 22:04:14 +0000] rev 11
  • enforce RAM size requirements

rework to use byte arrays to store ROM and RAM

  • Sun, 28 Nov 2010 22:01:45 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 22:01:45 +0000] rev 10
  • rework to use byte arrays to store ROM and RAM

fix memory read stuff, now need to deal with memory write

  • Sun, 28 Nov 2010 20:52:53 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 20:52:53 +0000] rev 9
  • fix memory read stuff, now need to deal with memory write

remove debug fluff

  • Sun, 28 Nov 2010 20:02:45 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 20:02:45 +0000] rev 8
  • remove debug fluff

set up ROM loader and state storage, add basic emulator core

  • Sun, 28 Nov 2010 19:53:53 +0000
  • by Philip Pemberton <philpem@philpem.me.uk> [Sun, 28 Nov 2010 19:53:53 +0000] rev 7
  • set up ROM loader and state storage, add basic emulator core