mars.mips.instructions.syscalls
Class SyscallReadDouble

java.lang.Object
  extended by mars.mips.instructions.syscalls.AbstractSyscall
      extended by mars.mips.instructions.syscalls.SyscallReadDouble
All Implemented Interfaces:
Syscall

public class SyscallReadDouble
extends AbstractSyscall

Service to read the bits of console input double into $f0 and $f1. $f1 contains high order word of the double.


Constructor Summary
SyscallReadDouble()
          Build an instance of the Read Double syscall.
 
Method Summary
 void simulate(ProgramStatement statement)
          Performs syscall function to read the bits of input double into $f0 and $f1.
 
Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyscallReadDouble

public SyscallReadDouble()
Build an instance of the Read Double syscall. Default service number is 7 and name is "ReadDouble".

Method Detail

simulate

public void simulate(ProgramStatement statement)
              throws ProcessingException
Performs syscall function to read the bits of input double into $f0 and $f1.

Specified by:
simulate in interface Syscall
Specified by:
simulate in class AbstractSyscall
Parameters:
statement - ProgramStatement object for this syscall instruction.
Throws:
ProcessingException