Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!appserv!sun!amdahl!starsoft!david From: david@starsoft.hou.tx.us (Dave Lowrey) Newsgroups: comp.sys.amiga.hardware Subject: Re: Standard for long hex numbers? (Was: Re: Amiga and its memory map) Message-ID: Date: 21 Feb 91 01:02:01 GMT References: <2207@ria.ccs.uwo.ca> <18881@cbmvax.commodore.com> <887@cbmger.UUCP> <1991Feb14.063939.28350@zorch.SF-Bay.ORG> Followup-To: comp.sys.amiga.hardware Organization: Starbound Software Group Lines: 54 In article <1991Feb14.063939.28350@zorch.SF-Bay.ORG> xanthian@zorch.SF-Bay.ORG (Kent Paul Dolan) writes: > > > daveh@cbmvax.commodore.com (Dave Haynie) writes: > > >Cheap-ass A3000 memory map: > > > >$ff010000-$ffffffff Reserved > > peterk@cbmger.UUCP (Peter Kittel GERMANY) writes: > > > I always have big difficulties reading such big hex numbers. Couldn't > > there be developed a standard to insert delimiters as in long decimal > > numbers (there all 3 digits) all 4 digits? > > > How about $ff01'0000 (or comma or hyphen instead of "'")? > > > We only would have to avoid the colon so that it couldn't be mixed up > > with Intel-like segment addressing. > > > (And I myself would like to avoid comma and dot, because their use in > > decimal numbers is already reverse in USA and Germany. That produces > > big trouble enough, and I wouldn't like to cause such crap again with > > hex numbers.) > > > Or is there already existing such a standard, only I don't know it and > > nobody uses it? > > Yes, there does exist a very nice international standard for this > purpose, and I suggest we adopt it posthaste! The ANSI/ISO standard for > the Ada programming language defines numeric literals (in any base) to > include underscore characters at arbitrary locations, which are only for > human readability in source code, and are ignored by the compiler. Used > every four hex characters, this makes Dave's table much more readable, > and a lot easier to type from error free: > > > Cheap-ass A3000 memory map: > > $_ff01_0000 - $_ffff_ffff Reserved Yuck! Why not use spaces? Many debuggers and such allow them. I understand that underscores are easier to parse, but it looks awfull. ff01 0000 ff ab cc e1 ..... ---------------------------------------------------------------------------- These words be mine. The company doesn't care, because I am the company! :-) Dave Lowrey | david@starsoft.hou.tx.us Starbound Software Group | Houston, TX | "Dare to be stupid!" -- Weird Al Yankovic