flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > invoke bug? |
Author |
|
decard 22 Aug 2005, 21:38
Nothing is wrong with that, opcode 0x6a is "push byte constant" opcode, but it actually pushes a dword (substracts 4 from esp).
Hey, if it was a bug then almost no win32 app would work: Code: invoke MessageBox, 0, text, title, 0 |
|||
22 Aug 2005, 21:38 |
|
madmatt 22 Aug 2005, 22:17
Hmmm, didn't know that . Thanks for clearing that up . Looked from the disassembly that something was wrong. Oh well, back to programming, false alarm
|
|||
22 Aug 2005, 22:17 |
|
Reverend 22 Aug 2005, 22:22
Push opcode always moves dword value on the stack. It's just a feature in x86 that when the value is between -128 and 127 it is stored as a byte. You can always manually do like this: 'db 68h, 00h, 00h, 00h, 00h'
|
|||
22 Aug 2005, 22:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.