fb:porticula NoPaste
GETKEY-Zeichencode zerlegen
Uploader: | Sebastian |
Datum/Zeit: | 15.05.2010 16:44:10 |
DIM AS USHORT Result
DIM AS UBYTE A, B
PRINT "Taste druecken."
Result = GETKEY
PRINT "+------++------+"
PRINT BIN(Result,16) & " (dezimal: " & Result & ")"
A = (Result AND &HFF)
B = (Result AND &HFF00) SHR 8
PRINT
PRINT "Beide Bytes einzeln:"
PRINT BIN(A,8) & " = " & A
PRINT BIN(B,8) & " = " & B
SLEEP