narrowed down the problem area [naked asm]

Walter Bright newshound1 at digitalmars.com
Tue Oct 28 12:27:56 PDT 2008


Don wrote:
> Why use 'naked' at all, then?
> (1) so that you can use the EBP register;
> (2) because non-naked asm doesn't work properly, either. If you pass an 
> array into an asm function, you can't get the ".ptr" part of it, because 
> the "ptr" conflicts with the asm "ptr" keyword. This is a big problem, 
> since almost all asm functions that I write work on arrays.

(3) you want to write the entire function in assembler.



More information about the Digitalmars-d mailing list