Ejemplo n.º 1
0
 /// <summary>
 /// Encodes the format J instruction into a word and stores it in memory
 /// as the first instruction.
 /// </summary>
 private void PushFormatJ(uint address, bool link)
 {
     target.Memory.StoreWord(0, OperationEncoder.EncodeFormatJ(address, link));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Encodes the format I instruction into a word and stores it in memory
 /// as the first instruction.
 /// </summary>
 private void PushFormatI(uint opcode, int rs, int rt, uint value)
 {
     target.Memory.StoreWord(0, OperationEncoder.EncodeFormatI(opcode, rs, rt, value));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Encodes the format R instruction into a word and stores it in memory
 /// as the first instruction.
 /// </summary>
 private void PushFormatR(int rs, int rt, int rd, int shamt, uint function)
 {
     target.Memory.StoreWord(0, OperationEncoder.EncodeFormatR(rs, rt, rd, shamt, function));
 }