BBC BASIC for Windows
« CPUIDLIB »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:28pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: CPUIDLIB  (Read 775 times)
Michael Hutton
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 248
xx CPUIDLIB
« Thread started on: Sep 27th, 2009, 5:07pm »

For those into their ASM programming they might find this library a useful add on to test for certain CPU features such as an FPU, MMX, SSE1-4 and more. You can find more detailed info about the CPUID instruction in your local friendly Intel documentation.

http://tech.groups.yahoo.com/group/bb4w/files/Libraries/CPUIDLIB.bbc

Instructions on how to use it are in the program.

Michael
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: CPUIDLIB
« Reply #1 on: Sep 27th, 2009, 5:29pm »

Quote:
For those into their ASM programming they might find this library a useful add on

Thanks. You might like to note that this line in your library:

Code:
IF USR(C%) THEN =TRUE ELSE =FALSE 

can be directly replaced with this:

Code:
= USR(C%)<>0 

which is (arguably) neater and avoids the 'end of function' (=) being buried inside another statement.

Richard.
User IP Logged

Michael Hutton
Developer

member is offline

Avatar




PM

Gender: Male
Posts: 248
xx Re: CPUIDLIB
« Reply #2 on: Sep 28th, 2009, 02:35am »

Good point. I'll revise it.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls