We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd1d14 commit 753cca7Copy full SHA for 753cca7
Memory/InstructionMemory.go
@@ -232,7 +232,7 @@ func (instructionMemory *InstructionMemory) ValidateAndExecuteInstruction() erro
232
233
} else {
234
235
- err = errors.New("Invalid instruction type on line number " + string(instructionMemory.PC+1))
+ err = errors.New("Invalid instruction type in " + currentInstruction)
236
237
}
238
arm.go
@@ -56,7 +56,7 @@ func main() {
56
fmt.Println("Error while reading file : ", err)
57
return
58
59
- line = strings.TrimSpace(line)
+ line = strings.TrimSpace(strings.TrimRight(line, ";"))
60
Memory.InstructionMem.Instructions = append(Memory.InstructionMem.Instructions, line)
61
62
0 commit comments