examples: forgot to regenerate

Sync READMEs with example code.

Updates #31
This commit is contained in:
Michael McLoughlin
2019-01-05 17:44:10 -08:00
parent 1cdd4b912b
commit 87ffa6823a
3 changed files with 17 additions and 17 deletions

View File

@@ -106,12 +106,12 @@ func main() {
s := GP64()
XORQ(s, s)
LABEL("loop")
CMPQ(n, operand.Imm(0))
JE(operand.LabelRef("done"))
ADDQ(operand.Mem{Base: ptr}, s)
ADDQ(operand.Imm(8), ptr)
CMPQ(n, Imm(0))
JE(LabelRef("done"))
ADDQ(Mem{Base: ptr}, s)
ADDQ(Imm(8), ptr)
DECQ(n)
JMP(operand.LabelRef("loop"))
JMP(LabelRef("loop"))
LABEL("done")
Store(s, ReturnIndex(0))
RET()