Posts: 684
Threads: 64
Joined: May 2004
Wow, three topics in a row, I'm in trouble.
Anyway, how do you do hexidecimal numbers in FB again?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Posts: 222
Threads: 10
Joined: Mar 2006
&h48 = decimal 72
^_^;; Just add the &h silly. Multikey scancodes anyone?
will Live Forever, or Die Trying >_<;;
Posts: 684
Threads: 64
Joined: May 2004
Hmm... I'm trying to compile some simple ASM in FB, but I'm getting an illegal error when I run it:
Code:
ASM
push ax
mov ax,&h1
int &h33
pop ax
End ASM
sleep
What am I missing?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Posts: 222
Threads: 10
Joined: Mar 2006
Well I don't use inline asm, so I don't know. Well I never push or pop at least, and I never use Int.
http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgAsm
There's inline ASM information there. I don't think I've seen people use hex with asm, unless they do lol...
I don't remember.
will Live Forever, or Die Trying >_<;;
Posts: 684
Threads: 64
Joined: May 2004
Well, I think that push and pop aren't allowed functions in FBs ASM, so I removed those, still same problem.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Posts: 222
Threads: 10
Joined: Mar 2006
Quote:Well, I think that push and pop aren't allowed functions in FBs ASM, so I removed those, still same problem.
If an answer takes too long here, try the forums at freebasic.net, more FB coders and faster answers. ^_^;; Let's hope someone comes in sooon.
will Live Forever, or Die Trying >_<;;
Posts: 1,439
Threads: 15
Joined: Apr 2003
http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgAsm :
In short, you essentially can't do INT on Win32.
If you want mouse support, use GetMouse and friends or the Win32 API.