Author Topic: neq help!  (Read 2677 times)

nobody

  • Guest
neq help!
« 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?

nobody

  • Guest
Re: neq help!
« Reply #1 on: March 25, 2006, 11:28:55 AM »
Never heard of it. A macro?

I suppose you want to do:

cmp ax, byte -1
jne error

(0FFFFh is "success", right?)

Best,
Frank

nobody

  • Guest
Re: neq help!
« Reply #2 on: March 25, 2006, 11:49:09 AM »
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

nobody

  • Guest
Re: neq help!
« Reply #3 on: March 25, 2006, 08:54:31 PM »
A perfect! yes you were right, now its working. Talk about a stupid mistake...