Search found 115 matches

by DamageX
Jan 03, 2015 6:20
Forum: General
Topic: TIMER inaccuracy on 486/Pentium
Replies: 2
Views: 469

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: 1602

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: 469

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: 1602

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: 1602

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: 564

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...
by DamageX
Nov 24, 2014 5:02
Forum: General
Topic: determining character height in graphic modes
Replies: 4
Views: 562

Re: determining character height in graphic modes

haha, so in other words... yres\hiword(width). That seems to work, thank you.
by DamageX
Nov 23, 2014 23:38
Forum: General
Topic: determining character height in graphic modes
Replies: 4
Views: 562

determining character height in graphic modes

In SCREEN 13 I have 8x8 characters, while in SCREEN 18 I have 8x16 characters. For a program which may run in various screen modes, is there a way to determine the current character size? Or a reliable rule governing which size is used in which mode? I want to associate a mouse click at a particular...
by DamageX
Jun 19, 2014 7:12
Forum: General
Topic: Image Difference Calculation far too Slow
Replies: 10
Views: 1357

Re: Image Difference Calculation far too Slow

Well how about this. CGA colors can be described with 2 bits each for R,G,B. Average two colors together with flickering and it becomes 3 bits of precision. So reduce your source image color depth to RGB 333 which is 512 colors. Then for the characters it is 1 of 16 colors combined with another 1 of...
by DamageX
Mar 24, 2014 20:28
Forum: DOS
Topic: Intel Speedstep under DOS?
Replies: 5
Views: 4338

Re: Intel Speedstep under DOS?

I posted a DOS utility to freedos-user a while back. It is here http://www.hyakushiki.net/misc/speedstp.zip The only CPU I have tested other than Pentium M is a Core 2 Duo SU9600. When I boot to DOS, the speed defaults to maximum (1.8GHZ "turbo") and I am able to adjust it down. The base c...
by DamageX
Jul 31, 2013 5:56
Forum: Hardware Interfaces / Communication
Topic: Using COM ports above COM1 and COM2.
Replies: 12
Views: 4807

Re: Using COM ports above COM1 and COM2.

I was able to get communication between two PCs by changing this line:

Code: Select all

While Loc(0) > 0 'checks for characters in com buffer

Code: Select all

While Loc(1) > 0 'checks for characters in com buffer
by DamageX
Jul 29, 2013 21:48
Forum: Hardware Interfaces / Communication
Topic: Using COM ports above COM1 and COM2.
Replies: 12
Views: 4807

Re: Using COM ports above COM1 and COM2.

I tried the example program posted by phishguy but it only sends data, never receives it. Any thoughts?

I tried on both a cardbus serial port card and a USB-serial adaptor (FTDI) which are verified to be working with other programs (including hypertrm)
by DamageX
Mar 18, 2013 8:03
Forum: General
Topic: Are any of the FreeBasic Commands done in assembly?
Replies: 23
Views: 2617

Re: Are any of the FreeBasic Commands done in assembly?

Also, as the number of bytes cleared increases the rep stosd code becomes more efficient, eventually to the point that there is no significant difference between it and the movdqa code. To me that seems entirely expected on any Pentium 3 or above system, because a large memory write will become mem...
by DamageX
Mar 05, 2013 9:36
Forum: Windows
Topic: another problem with fullscreen graphics mode
Replies: 5
Views: 1576

Re: another problem with fullscreen graphics mode

This should be sufficient to reproduce the problem on an affected system.

Code: Select all

screen 13,16

? "Intel graphics is crap."

do
sleep
loop until inkey$="q"
by DamageX
Mar 05, 2013 9:31
Forum: Windows
Topic: another problem with fullscreen graphics mode
Replies: 5
Views: 1576

Re: another problem with fullscreen graphics mode

I tested on 3 laptops, 5 OSs (to test more than that I would have to get out of bed :p)

This problem only happens on Windows 7 32-bit with Intel GMA4500MHD. Same as the other problem.

Go to advanced search