Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hexidecimal
#1
Wow, three topics in a row, I'm in trouble. Wink

Anyway, how do you do hexidecimal numbers in FB again?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Reply
#2
&h48 = decimal 72

^_^;; Just add the &h silly. Multikey scancodes anyone?
will Live Forever, or Die Trying >_<;;
Reply
#3
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]
Reply
#4
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... Big Grin I don't remember.
will Live Forever, or Die Trying >_<;;
Reply
#5
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]
Reply
#6
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 >_<;;
Reply
#7
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)