Qbasicnews.com

Full Version: What does this error mean?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
CreateWindowEx.asm:142: Error: suffix or operands invalid for `cmp'

I'm not asking for someone to debug my code, just curious as to what this error means. As you can tell, I'm attempting to create a window using API calls. Big Grin Almost there too...
cmp is ASM for compare I think....
right:
cmp ax, bx
je label

if ax = bx then goto label

It seems like you're comparing different types, like a word and a byte. *shrug*
ehm, i guess that should be reported as a bug, better put it in the bug reports thread
What version is that? Only having the full source i can trace what wrong is going on.
It's version 0.01, but I stopped trying to write that thing anyways. I didn't see the winhello example, so now I know what I did wrong. Big Grin
Version 0.01 had some stupid bugs on it, when mixing byte/short vars with integers, since the 1st ver there were 3 fixes on code generation:

Code:
[fixed] loading larger vars to byte ones with SI/DI was wrong as the source type was not being remapped at EMIT
[fixed] IR was renaming the compare ops when operands hadn't the same class, 'cause a x86 FPU opt. done at AST
[fixed] IR module was not freeing regs of the same classes while making int convertions and reusing them[/code]