Permalink
Browse files

Fixes some minor bugs.

  • Loading branch information...
1 parent a34c3dc commit 955d4a69de887f6742dcb090a98d1123d20771a1 @jteeuwen committed Jun 1, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 cpu/cpu.go
  2. +2 −2 parser/lexrules.go
View
@@ -426,7 +426,7 @@ func (c *CPU) Step() error {
// decodeOperand interprets the given instruction operand and returns a pointer
// to the appropriate storage bit along with its address.
//
-// isTarget deterines if this operand is the write target.
+// isTarget deterines if this operand is the write target.
// This is necessary to properly decode the PUSH/POP operands (0x18).
func (c *CPU) decodeOperand(w Word, isTarget bool) *Word {
// literal value 0xffff-0x1e (-1..30)
View
@@ -7,7 +7,7 @@ import (
"unicode"
)
-// Refer to SPEC.md for an overview of the grammar these rules handles.
+// Refer to LANGUAGE.md for an overview of the grammar these rules handles.
// document := pkg imports* [constants | label | instruction | function]*
func (l *lexer) document() bool {
@@ -468,7 +468,7 @@ func (l *lexer) identifier() bool {
}
if l.literal(".") && !l.name() {
- l.error("Invalid token %q. Expected name.")
+ l.error("Invalid token %q. Expected name.", l.next())
return false
}

0 comments on commit 955d4a6

Please sign in to comment.