Qbasicnews.com

Full Version: Trick: Silent QB 4.5 compiler.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Not only BC beeps, it sometimes enters an endless loop and issues a beep at each iteration. It's specially annoying at 3AM, when you have the beeper in the motherboard and no way to disconnect it.

Well, I guess you never code bad enougn to have the compiler enter endless loops Big Grin

Nice to see you out of the general forums Nathan! Your underBASIC is a great idea!
No, I have a speaker, that beeps on char 7, however, I've never had BC nor QB nor QBX beep on me :-?
Quote:Yes, it is, as I said it in the thread's title
you have made me think, now i could remember that the BC 4.5O can not recognize the option /?, so it can't display the screen short help.

it exists the option /T meaning "Terse: no compiler warnings", the Basic compilers PDS and both Vbdos can do that without problems. but i couldn't see an option to display warnings without beepings.
now i have a doubt, would be enough to replace any Ascii 7 in the Basic compilers or is it a need to try every bell character to evade corrupt the file?
Atrapado:
It seems the only char 7 that results in a beep is the one I indicated before.
I found it because it's contiguous to a char ^ , used by bc to mark the position of the error. The other char 7 are probably part of assembler instructions or data.

About /T i tried it: the compiler issues no warnings, but the errors beep the same.
Quote:QB doesn't beep, BC does. When you are compiling it will beep on errors. Some of you may have the speaker disconnected, turned off or missing, that's why you don't hear the BELL (ASCII 0x07) character.

Again, I agree with Z!re. On the computer I used to useto program in QB, the PC speaker was definately intact and working. But no noises from BC...
Not only it beeps for me, the trick I posted does not kill all beeps.
I found a different beep for the Missing label error!

EDIT:
Found it!
Code:
14FA0: 00 0B 02 0D 0A 00 0C 02 07 4C 61 62 65 6C 20 6E  
                                ^
                               14FA8
Replace char 7 at 14FA8 with a space (char 32 or 20h)
Quote:Not only it beeps for me, the trick I posted does not kill all beeps. There is a different beep for the Missing label error!
I just tried with QB 4.5, various error messages, including missing label in IDE errors etc..

Never a single beep was heard..

Maybe it's something with the windows DOSVM? I'm currently on win2k, but I never had any beeps in windows 98SE either..
Perhaps some driver redirects your beeps to the sound card? I'm in Win2000 SP4
Quote:Perhaps some driver redirects your beeps to the sound card? I'm in Win2000 SP4
No idea.. and no idea what SP im on either Tongue
Pages: 1 2 3 4