![]() |
0x80 ist was ?
Wie schreibt man das in Delphi ?
Zitat:
Delphi-Quellcode:
...
if (GetKeyState(VK_UP)) and (0x80) //<----- Welche Zahl ist das in Dec.sys. then ... |
Re: 0x80 ist was ?
Delphi-Quellcode:
if (GetKeyState(VK_UP) and $80)
|
Re: 0x80 ist was ?
Danke. Überall ist es $0000 mit Hex. Zahlen nur nicht im C ! :evil:
|
Re: 0x80 ist was ?
Moin!
Zitat:
AT&T Assembler: 0x C/C++: 0x Borland Assembler: h Pascal/Delphi: $ uvm. MfG Muetze1 |
Re: 0x80 ist was ?
Na dan sag mal was 08 in K&R C ist :-)
Das wissen heute wirklich nur noch sehr wenige. Es ist legales C! |
Re: 0x80 ist was ?
Zitat:
Delphi-Quellcode:
if GetKeyState(foo) < 0 then // high-order bit is 1, the key is down
|
Re: 0x80 ist was ?
Zitat:
|
Re: 0x80 ist was ?
Korrekt, aber der Knackpunkt ist das K&R C 08 und 09 erlaubt was eigentlich 010 und 011 sein muesste.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz