Commit ec192f18 authored by Caesar Chad's avatar Caesar Chad Committed by Péter Szilágyi

core/asm: correct comments typo (#16974)

* core/asm/compiler: correct comments typo

core/asm/compiler: correct comments typo

* Correct comments typo
parent aa34173f
...@@ -51,7 +51,7 @@ func NewCompiler(debug bool) *Compiler { ...@@ -51,7 +51,7 @@ func NewCompiler(debug bool) *Compiler {
// the compiler. // the compiler.
// //
// feed is the first pass in the compile stage as it // feed is the first pass in the compile stage as it
// collect the used labels in the program and keeps a // collects the used labels in the program and keeps a
// program counter which is used to determine the locations // program counter which is used to determine the locations
// of the jump dests. The labels can than be used in the // of the jump dests. The labels can than be used in the
// second stage to push labels and determine the right // second stage to push labels and determine the right
...@@ -120,7 +120,7 @@ func (c *Compiler) next() token { ...@@ -120,7 +120,7 @@ func (c *Compiler) next() token {
return token return token
} }
// compile line compiles a single line instruction e.g. // compileLine compiles a single line instruction e.g.
// "push 1", "jump @label". // "push 1", "jump @label".
func (c *Compiler) compileLine() error { func (c *Compiler) compileLine() error {
n := c.next() n := c.next()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment