Added a rudimentary FizzBuzz example
This commit is contained in:
parent
08d5f38072
commit
178d543f8f
7 changed files with 48 additions and 6 deletions
|
@ -3,6 +3,7 @@ package asm
|
|||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build/arch/x64"
|
||||
"git.akyoto.dev/cli/q/src/build/config"
|
||||
|
@ -287,6 +288,10 @@ restart:
|
|||
}
|
||||
|
||||
for key, address := range labels {
|
||||
if strings.HasPrefix(key, "data_") {
|
||||
continue
|
||||
}
|
||||
|
||||
if address > pointer.Position {
|
||||
labels[key] += offset
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue