examples: forgot to regenerate
Sync READMEs with example code. Updates #31
This commit is contained in:
10
README.md
10
README.md
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user