flat assembler
Message board for the users of flat assembler.
Index
> DOS > int 3 breakpoint? |
Author |
|
fonolite 27 Dec 2006, 02:55
dos programming from "format MZ",
FASM generates int 3 into opcode db 0xCD, 0x03 but breakpoint is 0xCC What's wrong with int 3 in FASM? |
|||
27 Dec 2006, 02:55 |
|
LocoDelAssembly 27 Dec 2006, 02:56
You should use int3 instead if you want $CC opcode.
|
|||
27 Dec 2006, 02:56 |
|
fonolite 27 Dec 2006, 04:32
Oh great! Thanks.
int3 works fine. I think int3 looks like a macro defined by db 0xCC. |
|||
27 Dec 2006, 04:32 |
|
LocoDelAssembly 27 Dec 2006, 04:47
But it is an assembler instruction
Quote: int activates the interrupt service routine that corresponds to the number specified as an operand to the instruction, the number should be in range from 0 to 255. The interrupt service routine terminates with an iret instruction that returns control to the instruction that follows int. int3 mnemonic codes the short (one byte) trap that invokes the interrupt 3. into instruction invokes the interrupt 4 if the OF flag is set. Here a good reason to have the ability of generating both ways http://board.flatassembler.net/topic.php?p=32983#32983 |
|||
27 Dec 2006, 04:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.