NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: nobody on March 25, 2006, 03:37:57 AM
-
neq! The most frustrating thing in creation!
Ive written a micro os, complete with basic vesa boo t screen and prompt, screensaver, bla bla bla.
And in the entire process, i never used neq! now im stuck on mouse init.
This should do it, but it doesnt:
MouseInit:
mov ax,0
int 0x33
neq ax,FFFFh,MouseInitError
jmp NoCommand
MouseInitError:
mov si,Mouse_Init_Error
call Print_a_String
jmp NoCommand
Any help?
-
Never heard of it. A macro?
I suppose you want to do:
cmp ax, byte -1
jne error
(0FFFFh is "success", right?)
Best,
Frank
-
Hmmm... looking again at this... "FFFFh" is not a number - gotta be "0FFFFh" (a number must start with a decimal digit - an identifier must *not* start with a decimal digit). If you've got an otherwise-working "neq" macro. perhaps this is your only problem???
Best,
Frank
-
A perfect! yes you were right, now its working. Talk about a stupid mistake...