[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] snapshot QDCPOC+YGASM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Thu, 2 Aug 2001, Yann Guidon wrote:

> > > ie : loadcons uses 4 bits that overlap the opcode.
> > Huh?  That should not be a problem at all in C.
 
> it's not a problem with C. I realized that with the current syntax,
> i would have to bit-reverse every field to make then senseful.
> for example, when the opcode is encoded/decoded in the least significant
> byte, i found that the LSB of the opcode (see the #defines) became the MSB
> of the byte. something was clearly wrong.

But that's only a problem in building a compiler or assembler, not in
coding assembler for f-cpu, is not it?

> people are/were not used to having the opcode at the last position,
> hence the bit-reversing. if we re-reverse the bits, we have to
> change the endianness too, which is not a huge problem in itself,
> after all.

I think we could not detect all places in documentation for changing.
The better way IMHO is to write a better assembler instead...

Or I missunderstood the problem?

Bye Andreas

PS.: Can we use qdcpoc to testing GCC-stuff? Or were it successfully
tested?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7aa3qClxplZklbgERAg9OAKCI5tcAxs7sFREFkivKGdnqG9M6RACfT+st
2g+kzYAf0TU0kqgYVaoeJas=
=/J0x
-----END PGP SIGNATURE-----

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/