NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on November 01, 2005, 09:53:26 AM

Title: Why int 3(0xCC) was used for padding?
Post by: nobody on November 01, 2005, 09:53:26 AM
Could we use other instruction for padding?
Thanks!
Title: Re: Why int 3(0xCC) was used for padding?
Post by: Frank Kotler on November 01, 2005, 11:17:25 AM
Sure you can use another instruction for padding, but it won't do the same thing. For 0xCC, you want "int3" (no space) not "int 3" (with a space... this forum software is apt to butcher spaces) - not quite the same thing. What is it you want to do?

Best,
Frank
Title: Re: Why int 3(0xCC) was used for padding?
Post by: nobody on November 04, 2005, 11:36:20 PM
A common thing to use for padding is NOP, or 0x90.

- Rick C. Hodign