Creates a new code writer for generating MIPS machine code
written directly to memory at codeAddress
.
Memory address to write generated code to.
Optional
options: MipsWriterOptionsOptions for customizing code generation.
Memory location of the first byte of output.
Memory location of the next byte of output.
Current offset in bytes.
Program counter at the next byte of output.
Puts an ADDI instruction.
Puts an ADDI instruction.
Puts an ADDU instruction.
Puts a BEQ instruction referencing labelId
, defined by a past
or future putLabel()
.
Puts raw data.
Puts code needed for calling a C function with the specified args
.
Puts code needed for calling a C function with the specified args
.
Puts a DSLL instruction.
Puts a J instruction.
Puts a J WITHOUT NOP instruction.
Puts a JALR instruction.
Puts a JR instruction.
Puts a LA instruction.
Puts an LD instruction.
Puts a LUI instruction.
Puts a LW instruction.
Puts a MFHI instruction.
Puts a MFLO instruction.
Puts a MOVE instruction.
Puts a MTHI instruction.
Puts a MTLO instruction.
Puts an ORI instruction.
Puts a POP instruction.
Puts a minimal sized trampoline for vectoring to the given address.
Puts a PUSH instruction.
Puts a SUB instruction.
Puts a SW instruction.
Recycles instance.
Optional
options: MipsWriterOptionsGenerated using TypeDoc
Generates machine code for mips.