some of it
This commit is contained in:
18
A5/tests/test1.prime
Normal file
18
A5/tests/test1.prime
Normal file
@ -0,0 +1,18 @@
|
||||
test:
|
||||
leaq data,%rsi
|
||||
movq $0,%rax
|
||||
movq $0,%rbp
|
||||
leaq (%rsi, %rax, 8),%r11
|
||||
movq (%r11),%rdx
|
||||
addq $1,%rax
|
||||
addq %rdx,%rbp
|
||||
leaq (%rsi, %rax, 8), %r11
|
||||
movq (%r11), %rdx
|
||||
addq $1, %rax
|
||||
addq %rdx,%rbp
|
||||
stop
|
||||
|
||||
.align 8
|
||||
data:
|
||||
.quad 42
|
||||
.quad 21
|
Reference in New Issue
Block a user