"Jim Leonard" <MobyGamer@[EMAIL PROTECTED]
> wrote in message
news:bc56476f-4066-42f0-b8f3-4873d0c7e77e@[EMAIL PROTECTED]
> I'm not so sure about that, unless it takes your homebrew less than 4
> cycles per memory fetch, which is the original IBM PC's only Achilles
> heel. My 8088 may have been hog-tied with an 8-bit memory bus but
> I've got 16-bit registers and a functional MUL/DIV ;-)
An 8088 takes much more than 4 cycles to load a register on average. A
6809
takes between 2 and 8, but they are *real* numbers, not the pie-in-the-sky
numbers Intel used in their docs. A 6809 also has 16-bit registers, and an
8
* 8 MUL. A call ([L]BSR) takes 7 or 9 cycles, and a ret (RTS) takes 5.
> Okay, my last hurdle is something stupid that I can't find in the BP7
> manuals: I have a field like this in my object:
>
> TPlayer = object
> notesHz[0..maxNotes*IBN] of word; {audible frequency of each note
> plus all IBN intervals}
> ...
>
> ...where IBN is a const outside of the object. (It needs to be, since
> the number of (I)ntervals (B)etween (N)otes is something that both the
> song object needs, so it can validate effect input, and also the
> player object, since it needs to set those intervals in Hz.) However,
> the compiler is stopping on it with "Error 3: Unknown identifier.".
> Why?? I can't add a const inside of an object, so does this mean
> objects can't refer to constants?? I'm baffled by this.
Me too, since this is perfectly legal *if* IBN is a true constant. The
*only* answer I can think of is that IBN is not in scope when you define
your TPlayer - it either hasn't been defined yet, or the unit it's
declared
in is not in your "uses" statement.
One thing's for sure, the error has nothing (directly) to do with it being
used as part of an objects definition.
--
Jay
Jason Burgon - author of Graphic Vision
http://homepage.ntlworld.com/gvision


|