9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Digby Tarvin <digbyt@acm.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] A shot in the dark
Date: Wed, 28 May 2008 16:49:08 +0100	[thread overview]
Message-ID: <20080528154908.GB7907@skaro.cthulhu.dircon.co.uk> (raw)
In-Reply-To: <775b8d190805280031x17e2f483s1f82640bacd4851f@mail.gmail.com>

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 <plalonde@telus.net> 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



  reply	other threads:[~2008-05-28 15:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-27 22:02 ron minnich
2008-05-27 22:54 ` Pietro Gagliardi
2008-05-27 23:00   ` ron minnich
2008-05-28  0:06   ` Digby Tarvin
2008-05-28  2:54     ` Paul Lalonde
2008-05-28  7:31       ` Bruce Ellis
2008-05-28 15:49         ` Digby Tarvin [this message]
2008-05-28 18:34         ` [9fans] OT: supporting multiple VGA cards (was "A shot in the dark") Digby Tarvin
2008-05-28 19:07           ` ron minnich
2008-05-28  0:16 ` [9fans] A shot in the dark Bakul Shah
2008-05-28  0:30   ` ron minnich
2008-05-28  7:17     ` Bruce Ellis
2008-05-28 15:53       ` Digby Tarvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080528154908.GB7907@skaro.cthulhu.dircon.co.uk \
    --to=digbyt@acm.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).