Skip to content

Commit

Permalink
Update environment calls based on wiki edits
Browse files Browse the repository at this point in the history
  • Loading branch information
TheThirdOne committed Nov 12, 2020
1 parent 5f747b9 commit 345c17b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/rars/extras/Documentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
public class Documentation {

public static void main(String[] args){
Globals.instructionSet = new InstructionSet();
Globals.instructionSet.populate();
Globals.initialize(false);
System.out.println(createDirectiveMarkdown());
System.out.println(createSyscallMarkdown());
System.out.println(createInstructionMarkdown(BasicInstruction.class));
Expand Down
6 changes: 5 additions & 1 deletion src/rars/riscv/syscalls/SyscallInputDialogString.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ a copy of this software and associated documentation files (the

public class SyscallInputDialogString extends AbstractSyscall {
public SyscallInputDialogString() {
super("InputDialogString");
super("InputDialogString","Service to display a message to a user and request a string input",
"a0 = address of null-terminated string that is the message to user<br>a1 = address of input buffer<br>"+
"a2 = maximum number of characters to read (including the terminating null)",
"a1 contains status value.<br> 0: OK status. Buffer contains the input string.<br>-2: Cancel was chosen. No change to buffer.<br>"+
"-3: OK was chosen but no data had been input into field. No change to buffer.<br>-4: length of the input string exceeded the specified maximum. Buffer contains the maximum allowable input string terminated with null.");
}

public void simulate(ProgramStatement statement) throws ExitingException {
Expand Down
4 changes: 2 additions & 2 deletions src/rars/riscv/syscalls/SyscallMessageDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public class SyscallMessageDialog extends AbstractSyscall {
public SyscallMessageDialog() {
super("MessageDialog", "Service to display a message to user",
"a0 = address of null-terminated string that is the message to user <br>" +
"a1 = the type of the message to the user, which is one of:<br>1: error message <br>" +
"2: information message <br>3: warning message <br>4: question message <br>other: plain message", "N/A");
"a1 = the type of the message to the user, which is one of:<br>"+
"0: error message <br>1: information message <br>2: warning message <br>3: question message <br>other: plain message", "N/A");
}

public void simulate(ProgramStatement statement) throws ExitingException {
Expand Down
2 changes: 1 addition & 1 deletion src/rars/riscv/syscalls/SyscallPrintFloat.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ a copy of this software and associated documentation files (the

public class SyscallPrintFloat extends AbstractSyscall {
public SyscallPrintFloat() {
super("PrintFloat", "Prints an floating point number", "fa0 = float to print", "N/A");
super("PrintFloat", "Prints a floating point number", "fa0 = float to print", "N/A");
}

public void simulate(ProgramStatement statement) {
Expand Down
2 changes: 1 addition & 1 deletion src/rars/riscv/syscalls/SyscallReadChar.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ a copy of this software and associated documentation files (the

public class SyscallReadChar extends AbstractSyscall {
public SyscallReadChar() {
super("ReadChar", "Read a character from input console", "N/A", "a0 = the character");
super("ReadChar", "Reads a character from input console", "N/A", "a0 = the character");
}

public void simulate(ProgramStatement statement) throws ExitingException {
Expand Down
2 changes: 1 addition & 1 deletion src/rars/riscv/syscalls/SyscallReadFloat.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ a copy of this software and associated documentation files (the

public class SyscallReadFloat extends AbstractSyscall {
public SyscallReadFloat() {
super("ReadFloat", "Read a float from input console", "N/A", "fa0 = the float");
super("ReadFloat", "Reads a float from input console", "N/A", "fa0 = the float");
}

public void simulate(ProgramStatement statement) throws ExitingException {
Expand Down
2 changes: 1 addition & 1 deletion src/rars/riscv/syscalls/SyscallReadInt.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ a copy of this software and associated documentation files (the

public class SyscallReadInt extends AbstractSyscall {
public SyscallReadInt() {
super("ReadInt", "Read an int from input console", "N/A", "a0 = the int");
super("ReadInt", "Reads an int from input console", "N/A", "a0 = the int");
}

public void simulate(ProgramStatement statement) throws ExitingException {
Expand Down

0 comments on commit 345c17b

Please sign in to comment.