Package com.zylin.zpu.simulator.exceptions

Examples of com.zylin.zpu.simulator.exceptions.IllegalInstructionException


                        break;
                       
                    case SYSCALL:
                        if (feeble[SYSCALL])
                        {
                            throw new IllegalInstructionException();
                        } else
                        {
                          intSp=0// flush internal stack
                            syscall.syscall(this);
                        }
                        break;
                           
                    default:
                        throw new IllegalInstructionException();
                    }
                }
            }
            if (!touchedPc)
            {
View Full Code Here


           
        if (tracer.onInterrupt()&&!inInterrupt)
        {
          if (!timer)
          {
            throw new IllegalInstructionException();
          }
         
          inInterrupt=true;
          timerPending=true;
          throw new InterruptException();
View Full Code Here

    public void setSp(int sp) throws CPUException
    {
        if ((sp%4)!=0)
        {
            throw new IllegalInstructionException();
        }
       
        if (sp<minStack)
        {
            minStack=sp;
View Full Code Here

TOP

Related Classes of com.zylin.zpu.simulator.exceptions.IllegalInstructionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.