> > > + mov eax,[byte rsp+0xFF]
> > > + mov eax,[byte rsp-0xFF]
> >
> > Since the displacement byte is sign-extended
> > these two should at least warn (if not fail).
>
> As indeed they do:
>
> test.asm:35: warning: signed byte value exceeds bounds
> test.asm:36: warning: signed byte value exceeds bounds
Not for me:
>cat z.asm
bits 64
mov eax,[byte rsp+0xFF]
mov eax,[byte rsp-0xFF]
>./nasm -v
NASM version 0.99.05 compiled on Oct 29 2007
>./nasm z.asm -l z.lst
>cat z.lst
1 bits 64
2 00000000 8B4424FF mov eax,[byte
rsp+0xFF]
3 00000004 8B442401 mov eax,[byte
rsp-0xFF]
Mmh. Odd.
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nasm-devel mailing list
Nasm-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nasm-devel
a>
|