flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
fonolite
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? |
|||
![]() |
|
LocoDelAssembly
You should use int3 instead if you want $CC opcode.
|
|||
![]() |
|
fonolite
Oh great! Thanks.
int3 works fine. I think int3 looks like a macro defined by db 0xCC. |
|||
![]() |
|
LocoDelAssembly
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 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.