CPUID not working Hey, there seems to be an issue with the cpuid.dex program, It says that I need a Pentium or later, but I'm running this on a pentium III, and i tested the cpuid instruction itself, and it works fine. The source code for the cpuid program is not available as part of the DexSource, so I cant check what the code does to test for a pentium.
Do you have the source for CPUID.dex, and would you mind sharing it? :)
Its not the most important thing in the world to be able to run cpuid, but its just in case you use the same code as in cpuid.dex in other programs for checking processor, the same problem might occur.
Thanks,
gunblade
Dex- 05-03-2008
Thank for the info, your the second person that say the same about it not working, i will post the code give me 10 mins to find it.
Thanks Dex
Please download the cpuid zip again, has i mist some code out, thanks.
gunblade- 05-03-2008
Thanks, will test the code now and let you know what i find.
gunblade- 05-03-2008
The problem seems more serious than i thought.. firstly, the cpuid code will not assemble, it complains that theres no closing quote for the line with "Press any key to test for pentium", but if i assemble it on linux, it assembles fine. also fasm sometimes randomly freezes the machine entirely (on DexOS), so i think there may be an issue with fasm (Have you tried assembling cpuid.asm with the DexOS fasm?).
gunblade- 05-03-2008
Right, got it.
Basic problem, Just add a "clc" after the Cpuiddone: label, just before the ret (line 144)
Some instruction must be setting the carry high, and you never reset it, so it stays high, and the program thinks that the test failed no matter what.
That seems to fix that.. as for fasm not working, i think that was my bad (My test rig used grub + memdisk to allow me to launch dexos from a floppy image.. worked fine, or so i thought, but it must do something that dex doesnt like), with the actual floppy, it all seems to be fine.
thanks,
gunblade
Dex- 05-03-2008
Thanks for that fix gunblade, i will add that fix and re-assemble it and add it to the main floppy image.
As for assembling it with DexOS fasm, i have not tryed, but i will try it, the main problem with assembling with DexOS fasm, is you need to make sure all the .asm and .inc are no more than 8 letters, also its slow assembling it from a floppy.
I have written a Vfile sys that make assembling on DexOS much faster, it should be ready soon.
Anyway thank for the fix.
Regards Dex.
PS: As a side note, not sure if it had anything todo with you grubs setup, but DexOS needs to be started in realmode and below 600k.
forart.eu- 09-27-2008
Dunno if can help, BTW a CrystalCPUID port/integration would be great, IMHO.
DownloadsSource (CrystalCPUID + SysInfo)
Hope that helps (or at least inspires).
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.