How do I detect if the CPU is 64 bits ?
You can find that out by checking CPUID. All AMD64 compliant processors have the longmode-capable-bit turned on in the extended feature flags (bit 29) in EDX, after calling CPUID with EAX=0x80000001. There are also other bits required by long mode; you can check them out in the CPUID docs in the AMD general purpose instruction reference
Czy sprawdzenie bitu 29 EDX wystarczy? Pisze tam jeszcze, że wymagane przez long mode są także inne bity. Wiem, że przydałoby się poczytać manuale, ale jestem trochę leniwy.