Package mars.mips.instructions.syscalls
Class SyscallPrintIntUnsigned
java.lang.Object
mars.mips.instructions.syscalls.AbstractSyscall
mars.mips.instructions.syscalls.SyscallPrintIntUnsigned
- All Implemented Interfaces:
Syscall
Service to display integer stored in $a0 on the console as unsigned decimal.
-
Constructor Summary
ConstructorsConstructorDescriptionBuild an instance of the Print Integer Unsigned syscall. -
Method Summary
Modifier and TypeMethodDescriptionvoid
simulate(ProgramStatement statement)
Performs syscall function to print on the console the integer stored in $a0.Methods inherited from class mars.mips.instructions.syscalls.AbstractSyscall
getName, getNumber, setNumber
-
Constructor Details
-
SyscallPrintIntUnsigned
public SyscallPrintIntUnsigned()Build an instance of the Print Integer Unsigned syscall. Default service number is 36 and name is "PrintIntUnsigned".
-
-
Method Details
-
simulate
Performs syscall function to print on the console the integer stored in $a0. The value is treated as unsigned.- Specified by:
simulate
in interfaceSyscall
- Specified by:
simulate
in classAbstractSyscall
- Parameters:
statement
- ProgramStatement object for this syscall instruction.- Throws:
ProcessingException
-