14 lines
288 B
Go
14 lines
288 B
Go
package core
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// AddBytes adds a sequence of bytes and returns its address as a label.
|
|
func (f *Function) AddBytes(value []byte) string {
|
|
f.count.data++
|
|
label := fmt.Sprintf("data_%s_%d", f.UniqueName, f.count.data)
|
|
f.Assembler.SetData(label, value)
|
|
return label
|
|
}
|