flat assembler
Message board for the users of flat assembler.
Index
> Windows > Hang on windows startup |
Author |
|
revolution 18 Mar 2015, 08:17
Is that you entire code? If so then there are some problems.
1) No "format ..." is specified so you get 16-bit code as a raw binary file (similar to a .com file). 2) No entry point is specficed so it starts executing the "dwThread rd 1" as the first instruction. 3) No call to ExitProcess (a "ret" does not always do what you might expect, and a 16-bit com program should use "int 0x20" or other DOS exit function). If that is not your whole code then we can't test what you haven't given us. At least make a short example that compiles and runs without us having to go to extra effort and make assumptions about what you are doing. |
|||
18 Mar 2015, 08:17 |
|
HaHaAnonymous 18 Mar 2015, 14:08
Quote:
No. Not sure. |
|||
18 Mar 2015, 14:08 |
|
typedef 20 Mar 2015, 02:17
CreateThread's last parameter:
64bit: QWORD 32bit: DWORD Is this 32bit or 64bit code? |
|||
20 Mar 2015, 02:17 |
|
HaHaAnonymous 20 Mar 2015, 02:38
Quote:
32bit. Not sure. |
|||
20 Mar 2015, 02:38 |
|
typedef 21 Mar 2015, 12:59
1. Make sure dwThread is in a readable+writeable section.
2. Use a debugger |
|||
21 Mar 2015, 12:59 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.