Skip to content

Commit

Permalink
Removed Windows make script, fixed RISC-V calling convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Donn committed Sep 16, 2018
1 parent dca277e commit cc2b577
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Scripts/oak.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Scripts/oakui.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Sources/RISCV.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1934,10 +1934,10 @@ class RISCVCore //: Core

constructor(memorySize: number, ecall: () => void, instructionCallback: (data: string) => void)
{
this.defaultEcallRegType = 17;
this.defaultEcallRegArg = 10;
this.defaultEcallRegType = 10;
this.defaultEcallRegArg = 11;
this.aceStyle = "ace/mode/riscv";
this.defaultCode = " la a0, str\n li a7, 4 #4 is the string print service number...\n ecall\n li a7, 10 #...and 10 is the program termination service number!\n ecall\n.data\nstr:\ .string \"Hello, World!\"";
this.defaultCode = " la a1, str\n li a0, 4 #4 is the string print service number...\n ecall\n li a0, 10 #...and 10 is the program termination service number!\n ecall\n.data\nstr:\ .string \"Hello, World!\"";
this.defaultMachineCode = "13 05 40 01 93 08 40 00 73 00 00 00 93 08 A0 00 73 00 00 00 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 00 ";
this.instructionSet = RISCV;
this.pc = 0 >>> 0;
Expand Down
8 changes: 0 additions & 8 deletions make_win.bat

This file was deleted.

4 changes: 2 additions & 2 deletions manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ <h4>Environment Calls</h4>
The calling convention is as follows:
</p>
<p>
a7<sup>RISC-V</sup>/v0<sup>MIPS</sup> - Service Number <br />
a0-a3 - Arguments
a0<sup>RISC-V</sup>/v0<sup>MIPS</sup> - Service Number <br />
a1-a7<sup>RISC-V</sup>/a0-a3<sup>MIPS</sup>- Arguments
</p>
<p>
The return value will be placed in the same register as the service number.
Expand Down
6 changes: 0 additions & 6 deletions tsconfig.json

This file was deleted.

0 comments on commit cc2b577

Please sign in to comment.