bug-texinfo
[Top][All Lists]
Advanced

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

Re: describing bitfields


From: Eli Zaretskii
Subject: Re: describing bitfields
Date: Sun, 26 Nov 2000 08:13:38 +0200 (IST)

On Fri, 24 Nov 2000, Johan Rydberg wrote:

> How can I in the simplest way describe a bitfield using texinfo?

This is not something that should have been posted to bug-texinfo.  
Please in the future use address@hidden

> For example, describe a nopcode for an ISA or something similar.

Here's one example I used, to document the bits in the x87 status 
register:

@example
---- ---- ---- ---X = SW_INVALID - invalid operation
---- ---- ---- --X- = SW_DENORMAL - denormalized operand
---- ---- ---- -X-- = SW_ZERODIVIDE - division by zero
---- ---- ---- X--- = SW_OVERFLOW - overflow
---- ---- ---X ---- = SW_UNDERFLOW - underflow
---- ---- --X- ---- = SW_INEXACT - loss of precision
---- ---- -X-- ---- = SW_STACKFAULT - stack over/under flow
---- ---- X--- ---- = SW_ERRORSUMMARY - set if any errors
-X-- -XXX ---- ---- = SW_COND - condition code
---- ---X ---- ---- = SW_C0
---- --X- ---- ---- = SW_C1
---- -X-- ---- ---- = SW_C2
-X-- ---- ---- ---- = SW_C3
--XX X--- ---- ---- = SW_TOP - top of stack (use SW_TOP_SHIFT to shift it)
X--- ---- ---- ---- = SW_BUSY - fpu is busy
@end example




reply via email to

[Prev in Thread] Current Thread [Next in Thread]