Author Topic: Why int 3(0xCC) was used for padding?  (Read 16474 times)

nobody

  • Guest
Why int 3(0xCC) was used for padding?
« on: November 01, 2005, 09:53:26 AM »
Could we use other instruction for padding?
Thanks!

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Why int 3(0xCC) was used for padding?
« Reply #1 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

nobody

  • Guest
Re: Why int 3(0xCC) was used for padding?
« Reply #2 on: November 04, 2005, 11:36:20 PM »
A common thing to use for padding is NOP, or 0x90.

- Rick C. Hodign