.text .globl incrementSequence incrementSequence: xor %ecx,%ecx movl 8(%esp),%edx xor %eax,%eax orl 4(%esp),%ecx push %edi movl $1,%edi jz .next .loop: .rept 256 add %edi,%eax .endr sub $1,%ecx jnz .loop .next: sub $1,%ecx sub $1,%edx jnc .loop pop %edi movl 4(%esp), %eax movl 8(%esp), %edx shldl $8, %eax, %edx sall $8, %eax ret