Qbasicnews.com
Hexidecimal - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: Hexidecimal (/thread-9257.html)



Hexidecimal - Torahteen - 05-05-2006

Wow, three topics in a row, I'm in trouble. Wink

Anyway, how do you do hexidecimal numbers in FB again?


Hexidecimal - Pritchard - 05-05-2006

&h48 = decimal 72

^_^;; Just add the &h silly. Multikey scancodes anyone?


Hexidecimal - Torahteen - 05-06-2006

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?


Hexidecimal - Pritchard - 05-06-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... Big Grin I don't remember.


Hexidecimal - Torahteen - 05-06-2006

Well, I think that push and pop aren't allowed functions in FBs ASM, so I removed those, still same problem.


Hexidecimal - Pritchard - 05-06-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.


Hexidecimal - DrV - 05-06-2006

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.