Added a rudimentary FizzBuzz example
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user