Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: How to hand...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 20 of 21 Topic 1085 of 1118
Post > Topic >>

Re: How to handle this OOP/inheritance problem?

by "Jason Burgon" <jaynews@[EMAIL PROTECTED] > Feb 11, 2008 at 08:37 PM

"Jim Leonard" <MobyGamer@[EMAIL PROTECTED]
> wrote in message
news:a54126c4-0a66-4105-8a85-a4711bf74965@[EMAIL PROTECTED]
> On Feb 11, 6:04 am, "Jason Burgon" <jayn...@[EMAIL PROTECTED]
> wrote:
> > 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.
>
> I (or Intel) never claimed that loading a register took 4 cycles; I
> said that reading a byte (any byte) takes 4 cycles.

Yes, my mistake. The 6809 takes 1 cycle for an 8-bit data fetch or store,
2
cycles for a 16-bit one.

> MOV ac***,mem (10 cycles, 3 bytes)
>
> ...takes more than 10 cycles if it's not prefetched, it takes 10 +
> (3*4)= 22 cycles.

Yes - absolutely horrendous! ;-)

> > 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.
>
> Well, I've got a 16*16 MUL and a 32/16 DIV, so there ;-P

:-)

> Throw me a bone here -- is there anything 8088 can do better (other
> than DIV) than 6809?  I'm asking seriously.

How long does each loop of a rep stos[b|w] take on an 8088? The 6809
doesn't
have any "machine gun" instructions (corrected a little later by Hitachi's
6309), so it might be quicker at memory <-> memory copies.

> Everything is in one program for now (I usually split stuff into units
> as soon as the source gets unwieldy) so it's definitely in scope.  I
> think that, to get around it, instead of this:
>
> TPlayer = object
>   notesHz[0..maxNotes*IBN] of word;
>
> ...I may have to do this:
>
> type
>   noteIntervals=array[0..maxNotes*IBN] of word;
>   TPlayer = object
>     notesHz:noteIntervals;
>
> That way the array type is defined outside of the object and the
> compiler shouldn't complain.

That's not such a bad idea anyway. I personally dislike the defining of
one
type inside the definition of another.

--
Jay

Jason Burgon - author of Graphic Vision
http://homepage.ntlworld.com/gvision
 




 21 Posts in Topic:
How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-04 17:18:17 
Re: How to handle this OOP/inheritance problem?
"Jason Burgon"   2008-02-05 19:17:21 
Re: How to handle this OOP/inheritance problem?
Femme Verbeek <fv2006@  2008-02-05 22:01:32 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-06 09:50:02 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-06 12:07:29 
Re: How to handle this OOP/inheritance problem?
Femme Verbeek <fv2006@  2008-02-07 02:02:07 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-06 21:04:50 
Re: How to handle this OOP/inheritance problem?
dik <quagga5@[EMAIL PR  2008-02-07 05:10:52 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-07 07:39:09 
Re: How to handle this OOP/inheritance problem?
dik <quagga5@[EMAIL PR  2008-02-07 11:01:54 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-08 08:49:39 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-09 19:45:14 
Re: How to handle this OOP/inheritance problem?
Marco van de Voort <ma  2008-02-10 11:31:10 
Re: How to handle this OOP/inheritance problem?
"Jason Burgon"   2008-02-10 11:56:57 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-10 10:42:20 
Re: How to handle this OOP/inheritance problem?
"Jason Burgon"   2008-02-11 01:54:58 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-10 21:31:25 
Re: How to handle this OOP/inheritance problem?
"Jason Burgon"   2008-02-11 12:04:54 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-11 09:06:30 
Re: How to handle this OOP/inheritance problem?
"Jason Burgon"   2008-02-11 20:37:17 
Re: How to handle this OOP/inheritance problem?
Jim Leonard <MobyGamer  2008-02-11 13:41:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 0:11:59 CDT 2008.