flat assembler
Message board for the users of flat assembler.
Index
> Windows > Windows 11 bug ? pos.x from GetCursorPos = -1 |
| Author |
|
|
revolution 04 Aug 2026, 11:39
It's probably a bug in the code. Show a minimal example code that gives the error.
|
|||
|
|
Roman 04 Aug 2026, 11:42
Thats all.
Code: ;my code 32 bits mousePosit POINT ;as dd 0,0 invoke GetCursorPos, mousePosit ;I simple do this to fix bug inc dword [mousePosit] ;x+1 inc dword [mousePosit+4] ;y+1 Last edited by Roman on 04 Aug 2026, 12:01; edited 1 time in total |
|||
|
|
revolution 04 Aug 2026, 11:46
Roman wrote: Thats all. Code: flat assembler version 1.73.31 (16384 kilobytes memory) test.asm [1]: mousePosit POINT ;as dd 0,0 processed: mousePosit POINT error: illegal instruction. |
|||
|
|
Roman 04 Aug 2026, 11:47
replace POINT to dd 0,0
msdn struct POINT { LONG x; LONG y; } |
|||
|
|
revolution 04 Aug 2026, 14:01
The code posted can't be assembled.
Please show the exact problem, with code that can be assembled, without needing to guess all the other needed things. |
|||
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.