simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] Whats to do on execution of "illegal instruction"


From: Joerg Wunsch
Subject: Re: [Simulavr-devel] Whats to do on execution of "illegal instruction"
Date: Sat, 13 Feb 2016 08:55:59 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

As Petr Hluzín wrote:

> It *sometimes* works because simulavr code does not initialize the
> bytes in ALU registers (actually objects of RAM class).

Just like in the real CPU.

CPU registers and RAM contents are random, only IO registers
get well-defined state after a reset or power-on.

If someone is ambitious, every bit could be tracked whether it is
still in "X" state when being examined.  ISTR VMLAB does it that
way:

http://www.amctools.com/

Also, the usual HDL simulations track "X" bits.
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



reply via email to

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