Skip to content
Snippets Groups Projects
  • Geo Ster's avatar
    e2559bb5
    Implement MADD1/MTC0/JALR/SD and rewrite COP0 decoding · e2559bb5
    Geo Ster authored
    * COP0 instructions sadly have way too many encoding to use a single template one them,
    so rewrite the decoder to manually extract the required bits for each instruction. This
    fixes a bug where the MTC0 instruction was mistaken for MFC0.
    
    * Implement more instructions so we can execute more of the BIOS. In addition fix
    an oopsie in the ORI instruction which fixes some bugged memory writes. As of now the
    BIOS tries to write address 0x70003fe0 which maps to the scratchpad memory (assuming no further
    logic errors are present). Need to investigate why this is and how to emulate it before
    continuing...
    e2559bb5
    History
    Implement MADD1/MTC0/JALR/SD and rewrite COP0 decoding
    Geo Ster authored
    * COP0 instructions sadly have way too many encoding to use a single template one them,
    so rewrite the decoder to manually extract the required bits for each instruction. This
    fixes a bug where the MTC0 instruction was mistaken for MFC0.
    
    * Implement more instructions so we can execute more of the BIOS. In addition fix
    an oopsie in the ORI instruction which fixes some bugged memory writes. As of now the
    BIOS tries to write address 0x70003fe0 which maps to the scratchpad memory (assuming no further
    logic errors are present). Need to investigate why this is and how to emulate it before
    continuing...