Re: A challenge for RosAsm



" wolfgang taught us"

> while MASM may have got a Procedure styled library function for it,

In MASM you would inline the two instructions without the overhead of a
procedure call.

mov eax, 8 ; assumes you don't need to calculate.

To the question you posed about guessing the answer,

mov eax, 64
shr eax, 3

Produces the answer you needed.

Since I know you code in hex, it was a courtesy to provide it for you
in that form.

Regards,

hutch at movsd dot com

.



Relevant Pages

  • Re: optimization possibilities...
    ... I am going to move this from inline _asm to pure assembly files that can be assembled with MASM and GAS. ... Do you have any tips on how to produce a "portable" register based calling convention? ... If I can't reliably use register-based calling convention in the object files, then, well I guess the code is good enough as-is... ...
    (comp.lang.asm.x86)
  • Re: Benchmarking RosAsm vs. FASM
    ... But if RosAsm can't do *these* statements faster than FASM, then given the fact that mov instructions are probably the most commonly used instruction in a typical assembly language program, you're going to have a hard time justifying your claims about RosAsm speed applies to other programs but not to this one. ... back to the drawing board for Rene so that he'll waste a few months trying to 'speed' up his assembler again to substantiate his absurd claims. ... at least he did manage to beat MASM after the first bout of optimizations. ...
    (alt.lang.asm)
  • Re: Kind of new: function implementation questions, MASM
    ... Ross? ... >> Charles Crayne is the moderator of this newsgroup. ... I don't know about that "free" MASM 7 and its output. ... instructions for MASM 6.1 to use the P6 instructions of the Pentium Pro/II/III ...
    (comp.lang.asm.x86)
  • Re: Teaching Assembly Language Programming
    ... performance string operations, would use those instructions. ... might say about multithreaded programming in assembly language. ... FASM, and, possibly, NASM. ... NASM and MASM helpful. ...
    (alt.lang.asm)
  • Re: Teaching Assembly Language Programming
    ... performance string operations, would use those instructions. ... might say about multithreaded programming in assembly language. ... FASM, and, possibly, NASM. ... NASM and MASM helpful. ...
    (alt.lang.asm)