Package mars.mips.instructions.syscalls
Class SyscallReadFloat
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallReadFloat
- All Implemented Interfaces:
Syscall
Service to read the bits of input float into $f0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate(ProgramStatement statement)
Performs syscall function to read the bits of input float into $f0Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
-
Constructor Details
-
SyscallReadFloat
public SyscallReadFloat()Build an instance of the Read Float syscall. Default service number is 6 and name is "ReadFloat".
-
-
Method Details
-
simulate
Performs syscall function to read the bits of input float into $f0- Specified by:
simulate
in interfaceSyscall
- Specified by:
simulate
in classAbstractSyscall
- Parameters:
statement
- ProgramStatement object for this syscall instruction.- Throws:
ProcessingException
-