Search found 89 matches

by I3I2UI/I0
May 01, 2007 10:53
Forum: General
Topic: inverting an mmx register
Replies: 2
Views: 1170

you would like which result Dim As Ulongint a,b, mask a = &H1111111122222222 b = 0 mask = &H00FFFFFF00FFFFFF Asm movq mm0, [a]' -> &H1111111122222222 movq mm1, mm0 pandn mm1, [mask] movq [a], mm1 '-> &H00EEEEEE00DDDDDD pxor mm0, [mask] movq [b], mm0 '-> &H11EEEEEE22DDDDDD emms En...
by I3I2UI/I0
Apr 17, 2007 8:55
Forum: General
Topic: Screen ASM plotting
Replies: 22
Views: 3785

Yes i know, procedures are slower than an objekt module. Your explanations are very good. For me the handling of a procedure was simpler. The procedure can be changed more easily on other screen modes or color modes. btw on AMD Opteron pset: 254 cycles asm_Pset_8: 16 cycles quick_pixel_asm: 9 cycles...
by I3I2UI/I0
Apr 16, 2007 11:43
Forum: General
Topic: Screen ASM plotting
Replies: 22
Views: 3785

or ... Dim Shared As Ubyte Ptr screen_ptr Dim Shared As Integer pitch Sub asm_Pset_8(byval X as integer,byval Y as integer,byval C as integer) Asm mov eax, [Y] mul dword ptr [pitch] add eax, [X] add eax, [Screen_ptr] mov ebx, [C] mov [eax], bl End Asm End Sub Screenres 640, 480, 8 Screeninfo...
by I3I2UI/I0
Apr 05, 2007 20:35
Forum: Projects
Topic: Converting Files to Object Modules
Replies: 13
Views: 5558

Yeah, Joshy But not so simple. Dim As Any Ptr lpData Asm jmp binary_end .balign 16 binary_start: .incbin """poke_.bin""" .balign 16 binary_end: lea eax, binary_start mov [lpData], eax End Asm (FB016b) ... .incbin "poke_.bin" ... (FB017CVS)
by I3I2UI/I0
Jan 12, 2007 10:04
Forum: Projects
Topic: FbEdit
Replies: 963
Views: 168760

KetilO wrote:The color value for comments is the 5'th value in FbEdit.ini section [Win]
Subtract 2^25 from that value to remove italics.

Better change the 22'th value in section [Theme]

X=Name,(2'th),(3'th), ... ,,, (22'th) zzz - 2^25,, ...
by I3I2UI/I0
Nov 17, 2006 13:50
Forum: General
Topic: questions on ImageCreate
Replies: 6
Views: 1469

lillo wrote:Old-style buffers had an header of 4 bytes ..

then

Code: Select all

If *cptr(Integer Ptr,buffer) = 7 Then lhead=32 Else lhead=4

or i don't understand it.
by I3I2UI/I0
Oct 19, 2006 19:49
Forum: Windows
Topic: Capture picture from composite input of VIVO vga card
Replies: 9
Views: 3701

Hi Basic Coder, i compiled the cm_test3.exe with FB0.16stable without errors. All my tips i can give Have you the last revision of wfv.bi (1.7)? You be sure the libavicap32.dll.a is in the same directory or in *FBC_dir*/lib/win32 ? example in the zip-file cam_test3. show the webcam video cam_timer. ...
by I3I2UI/I0
Jun 29, 2006 13:33
Forum: Beginners
Topic: Loading OpenGL Textures in Freebasic
Replies: 3
Views: 1385

This is a quick port of NeHe lesson 6

'This is a quick port of NeHe lesson 6 '29.06.06 by Volta (alias I3I2UI/I0) Option Explicit #include "GL/gl.bi" #include "GL/glu.bi" Dim As GLFloat xrot, yrot, zrot Dim As Gluint texture(1) Dim As Integer wbreit, whoch Screen 19, 32, , 6 '= GFX_OPENGL or GFX_NO_S...
by I3I2UI/I0
May 15, 2006 21:37
Forum: General
Topic: Date Serial
Replies: 6
Views: 1591

#INCLUDE "vbcompat.bi" Dim Ds AS Double Dim As Double t1 Dim As Integer x,y,z,i a$="2000/11/25;08:25:15" t1=timer For i = 1 To 10000 x=InStr (a$,";") y=InStr (a$,"/") z=InStr (y+1,a$,"/") Ds = DateValue(Mid(a$,z+1,x-z...
by I3I2UI/I0
Mar 13, 2006 10:53
Forum: Tips and Tricks
Topic: PI from FPU
Replies: 12
Views: 3093

v1ctor wrote:The x86 FPU can be set to use 24 (float), 53 (double) or 64 (extended) bits of precision, the FB rt sets it to 64 to be compatible with QB, by default it's reseted to 53-bit.

I dont understand.
The bits of the exponent are not part of the 'bits of precision'?
by I3I2UI/I0
Mar 11, 2006 11:56
Forum: Tips and Tricks
Topic: PI from FPU
Replies: 12
Views: 3093

PI from FPU

Code: Select all

Option Explicit

Function PI As Double
  asm  fldpi                     'pi -> st(0)
  asm  fstp qword ptr [function] 'St(0) -> PI
End Function
Print PI

Dim z As Single
z= 2 * PI
Print z

Sleep


I hope, it work in DOS and Linux?

yes, thanks @VirusScanner
by I3I2UI/I0
Feb 22, 2006 19:35
Forum: Windows
Topic: MciSendString Resume doing Midi
Replies: 6
Views: 3031

not alone. The trick in XP is

for play .........." from " & 0, .......
for resume .... " from " & Medialength2, ....
by I3I2UI/I0
Feb 22, 2006 9:22
Forum: Windows
Topic: MciSendString Resume doing Midi
Replies: 6
Views: 3031

Hi, small changes ... ElseIf wmID = 102 Then SetTimer hDlg, 302, Medialength, NULL mciSendString "play "& Extn & " from " & 0, NULL, 0, 0 ... ... ElseIf wmID = 104 And Pausing = 1 Then mciSendString "play "& Extn & " from " & Medialengt...
by I3I2UI/I0
Feb 20, 2006 9:58
Forum: Windows
Topic: MciSendString Resume doing Midi
Replies: 6
Views: 3031

In WinME its ok i found Known Bugs in Windows NT, 2000, and XP 1. On Windows NT, 2000, and XP, the first note of a MIDI song is omitted from being played if the song does not begin with a rest of at least a quarter note's duration!! (The MIDI sample-files added to the download all begin with a rest....
by I3I2UI/I0
Jan 16, 2006 19:00
Forum: Windows
Topic: Example StatusBar
Replies: 1
Views: 1003

Example StatusBar

Hi, ' ' ToolBar ' StatusBar Demo, code by Volta ' ' inspired of toolbar example, code by zydon ' Option Explicit Option Private #include once "windows.bi" #include once "win/commctrl.bi" Declare Function WndProc ( ByVal hWnd As HWND, _ ByVal uMsg As UINT, _ ByVal wParam As WP...

Go to advanced search