From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 28 May 2008 16:49:08 +0100 From: Digby Tarvin To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20080528154908.GB7907@skaro.cthulhu.dircon.co.uk> References: <13426df10805271502s7e78ba0dw826dd2f6d982304c@mail.gmail.com> <20080528000641.GA2649@skaro.cthulhu.dircon.co.uk> <775b8d190805280031x17e2f483s1f82640bacd4851f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <775b8d190805280031x17e2f483s1f82640bacd4851f@mail.gmail.com> User-Agent: Mutt/1.4.1i Subject: Re: [9fans] A shot in the dark Topicbox-Message-UUID: adf73a12-ead3-11e9-9d60-3106f5b1d025 Way back in the dim distant pre-IBMPC days of Z80 PCs, my favourite debugging technique was to use the screen memory. My original Exidy Sorcerer had 1920 bytes of character oriented screen memory (this was when 8K was a respectable amount of main memory). Each byte displayed a 8x8 character defined by 8 bytes of the character generator memory, to top half of which (the non-ascii characters) was writeable memory. Not only could diagnostics be written to the display with a single assembly language instruction, but it was even possible to just run the entire program on the screen, which was entertaining as well as often quite informative. I had no assembler, so with hand assembly 1920 bytes seemed like quite a large piece of code. Running the firmware monitor memory test routines on the screen ram was also an endless source of entertainment. I have recently been tinkering with using the memory on PC text mode VGA adapters to provide a realtime visual display of what is going on inside the Linux kernel, but it seems to be one of the less well documented areas of the software and hardware, so there has been a lot of trial and error and reverse engineering involved.. If anyone knows of any good resources please let me know... Regards, DigbyT On Wed, May 28, 2008 at 05:31:27PM +1000, Bruce Ellis wrote: > When I did the port to the PS2 there wasn't even a light to blink. To > get thru l.s I discovered a register I could write that resets the > video. > > Only a hundred lines (most innocent) to binary chop. > > Ken has a better tale of a device that only had a speaker and > debugging by tones. > > brucee > > On 5/28/08, Paul Lalonde wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > FWIW, we used a similar technique just last summer debugging some PS3 -- Digby R. S. Tarvin digbyt(at)digbyt.com http://www.digbyt.com