Jens Nerche wrote:

> I'm unhapping with hand over data via context.event_info in such way.
> Perhaps has anybody a better idea.

Why are you unhappy with it ?  Looks OK to me, any other information
can be gotten directly from the registers...


> diff -urN freemware/CVS/Entries freemware-jens/CVS/Entries
> --- freemware/CVS/Entries       Wed Jan 12 11:46:02 2000
> +++ freemware-jens/CVS/Entries  Wed Jan 12 15:58:22 2000

What a messy patch... what did you do to your CVS dirs ????


> +         case EMU_INSTR_IN_IMM8:
> +           fprintf(stderr,"Please insert call to emulation code for \"in\" 
>here.\n");
> +           /* what does bochs code need?
> +           io_plugin_emulate(EMU_INSTR_IN,                                       
>//instruction
> +                             (u16)((context.event_info >> 24) & 0xff),           
>//port
> +                             operand_size);                                      
>//op_size (al|ax|eax)
> +                             */
> +           break;

I suggest putting calls like this in a separate file, plugin.c.
I'll work on it coming weekend (together with interrupt
intercepting) if nobody has implemented them by then.

PS, we all have very different coding styles... during my
previous cleanup I ran GNU indent over several
files (including user.c) with the following options:

      -bad -bap -bli0 -nce -sc -di6 -nbc -lp -i4

The results were more or less pleasing (to me, anyway ;)).
If nobody objects, I'll keep doing this once in a while; it'll
keep the code cleaner.  Unfortunately, indent doesn't appear
to support C++ :-/

-- Ramon




Reply via email to