Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,506 of 4,675    |
|    Bernhard Schornak to Bernhard Schornak    |
|    Re: Fast Fizz Buzz program    |
|    23 Jul 18 11:31:52    |
      From: schornak@nospicedham.web.de              Bernhard Schornak wrote:                      > write_routine:        >        > [align to next multiple of 32]        >        > movq %xmm3, 0x00(%r15)        > movb %bpl, 0x08(%r15)        > movb %sil, 0x09(%r15)        > movb %dil, 0x0A(%r15)        > movb %dl, 0x0B(%r15)        > movb %cl, 0x0C(%r15)        > movb %bl, 0x0D(%r15)        > movb %al, 0x0E(%r15)        > movb $0x0A, 0x0F(%r15)        > addq $0x10, %r15        > incb %al # RAX = 1st digit        > decq %r13        > jne RET        > incb %bl        > movq $0x09, %r13 # R13 = digit counter        > cmpb $0x20, %bl # RBX = 2nd digit              This should be "cmpb $0x21, %bl", of course...               > cmove %r11b, %bl        > je RET        > cmpb $0x09, %bl        > cmova %r12b, %bl        > jne RET        > .        > . # repeat for the remaining digits        > .        >        >        > [align to next multiple of 32]        >        > RET: nop        > ret                     Greetings from Augsburg              Bernhard Schornak              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca