BBC BASIC for Windows
« New ASMLIB2 library »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:32pm



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: New ASMLIB2 library  (Read 716 times)
admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx New ASMLIB2 library
« Thread started on: Sep 10th, 2010, 08:47am »

I have released this new BB4W library:

http://groups.yahoo.com/group/bb4w/files/Libraries/ASMLIB2.BBC

This is a superset of the ASMLIB library and supports SSE2 instructions in addition to the CMOV and SSE instructions. The new instructions supported include:

  1. SIMD floating-point instructions operating on two 64-bit 'doubles'.
  2. SIMD integer instructions operating on the extended (XMM) registers.
  3. New MMX instructions provided with SSE2 (paddq, psubq, pmuludq).
  4. Miscellaneous SSE2 instructions (clflush, lfence, mfence, pause).
To test for the availability of SSE2 instructions use:

Code:
      IF FN_cpuid(1, cpuid{}) IF cpuid.D% AND &4000000 THEN
        REM SSE2 instructions available
      ELSE
        REM SSE2 instructions not available
      ENDIF 

Richard.
« Last Edit: Sep 10th, 2010, 09:07am by admin » 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