diff --git a/src/rars/extras/Documentation.java b/src/rars/extras/Documentation.java index c62a9868..2b0dc8a9 100644 --- a/src/rars/extras/Documentation.java +++ b/src/rars/extras/Documentation.java @@ -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)); diff --git a/src/rars/riscv/syscalls/SyscallInputDialogString.java b/src/rars/riscv/syscalls/SyscallInputDialogString.java index 04a9ae91..209e0c7a 100644 --- a/src/rars/riscv/syscalls/SyscallInputDialogString.java +++ b/src/rars/riscv/syscalls/SyscallInputDialogString.java @@ -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
a1 = address of input buffer
"+ + "a2 = maximum number of characters to read (including the terminating null)", + "a1 contains status value.
0: OK status. Buffer contains the input string.
-2: Cancel was chosen. No change to buffer.
"+ + "-3: OK was chosen but no data had been input into field. No change to buffer.
-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 { diff --git a/src/rars/riscv/syscalls/SyscallMessageDialog.java b/src/rars/riscv/syscalls/SyscallMessageDialog.java index 29d3171e..db2c60bd 100644 --- a/src/rars/riscv/syscalls/SyscallMessageDialog.java +++ b/src/rars/riscv/syscalls/SyscallMessageDialog.java @@ -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
" + - "a1 = the type of the message to the user, which is one of:
1: error message
" + - "2: information message
3: warning message
4: question message
other: plain message", "N/A"); + "a1 = the type of the message to the user, which is one of:
"+ + "0: error message
1: information message
2: warning message
3: question message
other: plain message", "N/A"); } public void simulate(ProgramStatement statement) throws ExitingException { diff --git a/src/rars/riscv/syscalls/SyscallPrintFloat.java b/src/rars/riscv/syscalls/SyscallPrintFloat.java index 25566e5b..51102270 100644 --- a/src/rars/riscv/syscalls/SyscallPrintFloat.java +++ b/src/rars/riscv/syscalls/SyscallPrintFloat.java @@ -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) { diff --git a/src/rars/riscv/syscalls/SyscallReadChar.java b/src/rars/riscv/syscalls/SyscallReadChar.java index 5d346626..6e7bdd39 100644 --- a/src/rars/riscv/syscalls/SyscallReadChar.java +++ b/src/rars/riscv/syscalls/SyscallReadChar.java @@ -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 { diff --git a/src/rars/riscv/syscalls/SyscallReadFloat.java b/src/rars/riscv/syscalls/SyscallReadFloat.java index abb1049d..b73f022b 100644 --- a/src/rars/riscv/syscalls/SyscallReadFloat.java +++ b/src/rars/riscv/syscalls/SyscallReadFloat.java @@ -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 { diff --git a/src/rars/riscv/syscalls/SyscallReadInt.java b/src/rars/riscv/syscalls/SyscallReadInt.java index 28b79ccb..576533b6 100644 --- a/src/rars/riscv/syscalls/SyscallReadInt.java +++ b/src/rars/riscv/syscalls/SyscallReadInt.java @@ -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 {