From: Andreas Tscharner Newsgroups: comp.os.msdos.djgpp Subject: Re: Aligning in NASM Date: Mon, 1 Dec 1997 03:56:31 -0800 Organization: Swiss Federal Institute of Technology (ETHZ) Lines: 40 Message-ID: References: <65kbnk$qs6 AT news DOT xgw DOT fi> NNTP-Posting-Host: neelix.iiic.ethz.ch Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <65kbnk$qs6@news.xgw.fi> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk -----BEGIN PGP SIGNED MESSAGE----- On 27 Nov 1997, Sampo Niskanen wrote: > Isn't there any good way to align assembler functions to start on a 32 > byte boundary with DJGPP+NASM? You can align the segments with [SEGMENT .data ALIGN=4] A function can be aligned with times ($$-$) & 3 nop but only, if the segment is aligned It would be a good idea to define it as macro > Thanks. No problem ("`-''-/").___..--''"`-._ `o_ o ) `-. ( ).`-.__.`) (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' .' (il).-'' (li).' ((!.-' Andreas Tscharner andy AT vis DOT inf DOT ethz DOT ch http://www.vis.inf.ethz.ch/students/atscharn/Welcome.html -----BEGIN PGP SIGNATURE----- Version: 2.6.3i Charset: next iQCVAwUBNIKl/zYDAVm6SGDZAQGrkQP/SiVD48Q/TFOh+4TTJhAC0y0CqYvAuLlo TWwe2LrUeHL98q23nHOjebj8JEeRFzDEz8z4Uw8QPk1vYsp0nPOWBn4pGTKmCEMn m+BCB3p35kz+PY4S9hyigZ2SJ3JfspaloD74yEnyl3L9jWlBQy/AjIoDAanuGqn1 JH++ExvM8+g= =2ADR -----END PGP SIGNATURE-----