Search found 89 matches

by I3I2UI/I0
Apr 10, 2009 0:59
Forum: Hardware Interfaces / Communication
Topic: USB HID help
Replies: 19
Views: 13852

Only tested on WinME. #Include Once "windows.bi" #Include Once "win\setupapi.bi" #Include Once "win\ocidl.bi" Type HIDD_ATTRIBUTES size As Dword VendorID As Word ProductID As Word VersionNumber As Word End Type Dim As HIDD_ATTRIBUTES HIDAttributes Type my_DEVICE_INTERFA...
by I3I2UI/I0
Dec 12, 2008 11:47
Forum: General
Topic: A signum problem with UByte, division \ and /
Replies: 12
Views: 1490

Yes.. , but then..

Code: Select all

Dim As Short Start = 200, ende = 100, mitte
Dim As UByte teilung = 30   ' = %
mitte = (ende-Start) * teilung \ 100
Print mitte '=23562 ??
I don't search a workaround.
See above..
by I3I2UI/I0
Dec 11, 2008 15:04
Forum: General
Topic: A signum problem with UByte, division \ and /
Replies: 12
Views: 1490

Sorry I'm to stupid (or not stupid enough) to log in at SourceForge. Another example for the bug: Dim x As Short = -300 Dim y As UByte = 30 Print x;" / " & y ;" = ";x / y Print x;" \ " & y ;" = ";x \ y Print x;" * " & y ;" = ";x...
by I3I2UI/I0
Dec 07, 2008 15:06
Forum: General
Topic: An FOR..NEXT..STEP loop with UByte or Ushort,
Replies: 12
Views: 1261

Hi rolliebollocks, very interesting for any experiments: For i As UByte = 21 To 100 Step -3 'mov byte ptr [i], 21 '.Lt_0006: Print i 'push 1 'push dword ptr [i] 'push 0 'call _fb_PrintUByte@12 Next 'movzx eax, byte ptr [i] 'add eax, 253 'mov bl, al 'mov byte ptr [i], bl 'movzx ebx, byte ptr [i] 'cmp...
by I3I2UI/I0
Dec 07, 2008 13:41
Forum: General
Topic: An FOR..NEXT..STEP loop with UByte or Ushort,
Replies: 12
Views: 1261

An FOR..NEXT..STEP loop with UByte or Ushort,

it nothing happens. With Byte, Short, Integer and UInteger it's no problem. Dim i As UByte 'or UShort For i = 10 To 2 Step -1 'mov byte ptr [i], 10 'jmp .Lt_0005 'I wonder Why? '.Lt_0006: Print i 'push 1 'push dword ptr [i] 'push 0 'call _fb_PrintUByte@12 Next 'movzx eax, byte ptr [i] 'add eax, 255 ...
by I3I2UI/I0
Dec 07, 2008 13:35
Forum: General
Topic: A signum problem with UByte, division \ and /
Replies: 12
Views: 1490

A signum problem with UByte, division \ and /

I don't search a workaround. Dim As Short Start = 200, ende = 100, mitte Dim As UByte teilung = 30 ' = % mitte = (ende-Start) * teilung \ 100 'mov ax, word ptr [ende] 'sub ax, word ptr [Start] 'movsx eax, ax 'movzx ebx, byte ptr [teilung] 'mul ebx 'mov ecx, 100 'xor edx, edx '?? signum 'div ...
by I3I2UI/I0
Aug 28, 2008 10:11
Forum: Tips and Tricks
Topic: Clock Cycle Count Macros
Replies: 14
Views: 13407

SetThreadAffinityMask( GetCurrentProcess(), 1) 'only Core 0

SetThreadAffinityMask( GetCurrentProcess(), 1) 'only Core 0 on MultiCore-CPU '' #macro COUNTER_BEGIN( loop_count, priority_class ) _counter_overhead_ = 2000000000 counter_cycles = 2000000000 SetThreadAffinityMask( GetCurrentProcess(), 1) 'only Core 0 on MultiCore-CPU SetPrior...
by I3I2UI/I0
Apr 22, 2008 23:41
Forum: Tips and Tricks
Topic: Speak Text from the Clipboard!! (Windows Only)
Replies: 48
Views: 19288

Speaking Watch

Hi, it is based on 'speech in freebasic' by Jim http://dbfinteractive.com/index.php?topic=1161.0 voice.bas 'under construction .... #define WIN_INCLUDEALL #Include Once "windows.bi" #define SPF_DEFAULT 0 #define SPF_ASYNC 1 Type ISpVoiceVtbl_ As ISpVoiceVtbl Type ISpVoice lpVtbl As ISpVoic...
by I3I2UI/I0
Apr 01, 2008 12:40
Forum: Community Discussion
Topic: FreeBASIC 1.0 released!
Replies: 11
Views: 4222

*rofl*

please:

Code: Select all

FBC -lang ZX80
by I3I2UI/I0
Nov 13, 2007 11:02
Forum: Libraries
Topic: keeping transparence when converting to 8 bpp via FreeImage
Replies: 42
Views: 11467

Freeimage quantizes a high-color 24-bit bitmap to an 8-bit palette color bitmap in a first class quality. I use Joshys "test32.png" for testing (s.o.: http://www.freebasic.net/forum/viewtopic.php?p=84335#84335 ) #Include Once "FreeImage.bi" Screen 19,32 Dim As FIBITMAP Ptr Dib Dim As Integ...
by I3I2UI/I0
Jun 02, 2007 7:39
Forum: General
Topic: "ASM Out dx,al" compiles to "_fb_Out@8 dx, al
Replies: 12
Views: 2976

@cha0s thanks a lot @Basic Coder my workaround ... Dim fixed_freq As Ushort fixed_freq = 1193181 \ freq Out &H61, Inp (&H61) Or 3 ' turn speaker on Out &H43, &HB6 ' get the timer ready Out &H42, Lobyte(fixed_freq)' out low order Out &H42, Hibyte(fixed_freq...
by I3I2UI/I0
Jun 01, 2007 23:20
Forum: General
Topic: "ASM Out dx,al" compiles to "_fb_Out@8 dx, al
Replies: 12
Views: 2976

I can use OUT in ASM :) It is no problem under WIN98 and ME. ..privileged and sensitive instructions will assemble correctly but .. my risk This Basic-line "Out &H43, &HB6" are compiled to: push 182 push 67 call _fb_Out@8 that is correct. But "ASM Out dx, al" are compiled to: _fb_Out@8 dx, a...
by I3I2UI/I0
Jun 01, 2007 19:48
Forum: General
Topic: "ASM Out dx,al" compiles to "_fb_Out@8 dx, al
Replies: 12
Views: 2976

"ASM Out dx,al" compiles to "_fb_Out@8 dx, al

The FBC (017b win32) compiles the Lines: ASM mov dx, &H61 ' turn speaker on in al, dx Or al, &H03 Out dx, al mov dx, &H43 ' get the timer ready ... END ASM to: ... mov word ptr [ebp-12], ax mov dx, 97 in al, dx Or al, 3 _fb_Out@8 dx, al <--ERROR mov dx, 67 ... The assembler reports the e...
by I3I2UI/I0
Jun 01, 2007 15:00
Forum: Projects
Topic: Breakout in an hour (edit 2 hours)
Replies: 31
Views: 11701

Hi Deleter,
i used your Breakout Clon for my first experiments with Directsound.
Now it makes fun^2.
A Download with source and wavs is on Deleters homepage.
http://deleter.phatcode.net/index.php?page=projects&p=6

Go to advanced search