doc: README for data example

Updates #14
This commit is contained in:
Michael McLoughlin
2019-01-01 16:33:30 -08:00
parent 49c795704d
commit 85a72997aa
3 changed files with 36 additions and 2 deletions

View File

@@ -5,13 +5,13 @@ package main
import (
"math"
"github.com/mmcloughlin/avo"
. "github.com/mmcloughlin/avo"
. "github.com/mmcloughlin/avo/build"
. "github.com/mmcloughlin/avo/operand"
)
func main() {
bytes := GLOBL("bytes", avo.RODATA|avo.NOPTR)
bytes := GLOBL("bytes", RODATA|NOPTR)
DATA(0, U64(0x0011223344556677))
DATA(8, String("strconst"))
DATA(16, F32(math.Pi))