Search found 124 matches

by DamageX
May 31, 2015 6:26
Forum: Hardware Interfaces / Communication
Topic: FTDI FT232 serial port
Replies: 7
Views: 3503

Re: FTDI FT232 serial port

Did you check whether it works in a terminal program? I've had issues getting FTDI stuff to work on some systems.
by DamageX
Apr 01, 2015 6:53
Forum: Tips and Tricks
Topic: basic JPEG decoder- and encoder
Replies: 3
Views: 1696

basic JPEG decoder- and encoder

handles baseline, 8-bit component (grayscale or YCbCr), sequential scan only #lang "fblite" option gosub option explicit dim shared as ushort rstint,s dim shared as ubyte a,r,g,b,cnum,sambits,bbits,bcom,dbuf,ybh,ybv dim shared as integer x,y,z,ff1,h,v,l,xx,yy,zz,bh,bv,m,i0,i1,i2,c0,c1,c2 d...
by DamageX
Mar 03, 2015 9:32
Forum: Projects
Topic: FBKart demo...
Replies: 59
Views: 9309

Re: FBKart demo...

As a teenager I used to race old cars around hilly dirt tracks in the mallee country and I think a simulator should have been as easy to control.

The car in the game oversteers like mad but never understeers. It's like a pickup truck with rear tires made out of ice cream.
by DamageX
Mar 03, 2015 9:19
Forum: Projects
Topic: 3d model editor (and other stuff)
Replies: 7
Views: 2716

Re: 3d model editor

I have a fairly basic printer, just to see what I can do with it. If you want to print something fancy you could always try a service like Shapeways.
by DamageX
Mar 01, 2015 6:32
Forum: Projects
Topic: 3d model editor (and other stuff)
Replies: 7
Views: 2716

Re: 3d model editor

Other formats that I'm aware of (OBJ, AMF, PLY) use XML or some other text-based arrangement. I don't like them very much. STL files are dead simple by comparison, and that is what Repetier (3D printer software) accepts.
by DamageX
Feb 27, 2015 9:49
Forum: Projects
Topic: 3d model editor (and other stuff)
Replies: 7
Views: 2716

3d model editor (and other stuff)

rolled-my-own UI menu driven with mouse and keyboard control software rendering can use SCREEN 13...21 and 8/15/16/32bpp can load/save STL files or native format (Loading large STL files is slow, due to brute-force search for redundant vertex data. I made a separate program STL2MB which converts qui...
by DamageX
Jan 11, 2015 6:40
Forum: General
Topic: Program speed optimisation
Replies: 56
Views: 5351

Re: Program speed optimisation

does not generate the same scores

Sorry, it was those tricky one-indexed arrays. It works after adding "sub ebx,4" after the line "mov ebx,dword ptr (fptr)"
full example prog
by DamageX
Jan 07, 2015 8:45
Forum: General
Topic: Program speed optimisation
Replies: 56
Views: 5351

Re: Program speed optimisation

oh, an optimization thread, and I missed it? I want to try anyway. original routine (8.11 seconds on my Pentium M) dim as integer i,j,c,ihcs,cip(500) redim as integer quad(25,25,25,25) for i=1 to 1000000 for j=1 to c-3 ihcs+=quad(cip(j),cip(j+1),cip(j+2),cip(j+3)) next j next i modified routine (5.6...
by DamageX
Jan 03, 2015 6:49
Forum: Beginners
Topic: DIM uninitialized variables
Replies: 1
Views: 444

DIM uninitialized variables

Let's say I have this:

Code: Select all

dim as integer a,b,c,x,y,z,one,two,three

And I want to change these to uninitialized variables. Is there a way to do it with one line of code? Or must it be multiple lines?

Code: Select all

dim a as integer = any
dim b as integer = any
...
...
by DamageX
Jan 03, 2015 6:20
Forum: General
Topic: TIMER inaccuracy on 486/Pentium
Replies: 2
Views: 506

Re: TIMER inaccuracy on 486/Pentium

The problem shows up when SCREENLOCK is used. Does SCREENLOCK block interrupts in DOS?

Code: Select all

dim t as double
screen 18,8
do
t=timer
screenlock
locate 1,1,0:? t
screenunlock
loop until inkey$<>""
by DamageX
Dec 30, 2014 8:57
Forum: Windows
Topic: FreeBASIC 1.01.0 - illegal instruction
Replies: 8
Views: 1723

Re: FreeBASIC 1.01.0 - illegal instruction

Does FreeBASIC officially require Pentium Pro or Pentium III (SSE)? I was not aware of such a requirement, but if true then I won't waste my time running tests.
by DamageX
Dec 29, 2014 9:13
Forum: General
Topic: TIMER inaccuracy on 486/Pentium
Replies: 2
Views: 506

TIMER inaccuracy on 486/Pentium

I discovered that TIMER is inaccurate in certain cases. It only happened when using a graphics mode, under DOS on my 486, and under DOS and Windows NT on my Pentium MMX. However the problem was not apparent under Windows 98 on the Pentium MMX, or Windows NT on a Pentium M. During 30 real seconds, th...
by DamageX
Dec 29, 2014 9:04
Forum: Windows
Topic: FreeBASIC 1.01.0 - illegal instruction
Replies: 8
Views: 1723

Re: FreeBASIC 1.01.0 - illegal instruction

With FB 1.01.0 DOS, I can compile and run stuff no problem. With FB 1.01.0 Win32, I can't compile or run stuff on the Pentium MMX. Not in NT3.51, not in NT4, not in Win98. But OS doesn't seem to be the issue anyway, because it worked fine everywhere else: NT3.51 on a Pentium M XP on a Pentium M 2000...
by DamageX
Dec 28, 2014 10:23
Forum: Windows
Topic: FreeBASIC 1.01.0 - illegal instruction
Replies: 8
Views: 1723

FreeBASIC 1.01.0 - illegal instruction

I was testing code on old machines today (and ran into some DOS issues that I'll have to post about later), and downloaded the latest FreeBASIC to see if it made any difference... Nothing compiled with 1.01.0 runs on my NT4 machine (Pentium MMX). Even a "hello world" program fails with an ...
by DamageX
Dec 01, 2014 22:14
Forum: General
Topic: OT: The most absurd way to implement SCREEN function
Replies: 2
Views: 603

Re: OT: The most absurd way to implement SCREEN function

Haha, comparing bitmaps would indeed not be my first choice... I looked at QB64 a while back. Some things appeared to be easier (eg. sound) but the size of the EXE and runtime libraries is insane. The biggest problem for me was that it would always open files in the directory where the EXE was and n...

Go to advanced search