11-17-2005, 04:07 AM
If you want to get rid of the annoying beeps every time BC.exe finds an error, you can patch bc.exe.
I'm sure the late night coders will find it useful. Specially dedicated to those who regularly stuck their compiler in endless beeping loops....
EDITED to correct the error Moneo points in his post.
Open bc.exe (BACKUP IT!) with an hex editor and change the byte 07 (bell) at offset 16C6Ah to 20h( space). The beep is printed with the up arrow ^ that points to the error location.
EDITED AGAIN to keep all the info in a single post
I found a different beep for the Missing label error!
Replace char 7 at 14FA8 with a space (char 32 or 20h)
I'm sure the late night coders will find it useful. Specially dedicated to those who regularly stuck their compiler in endless beeping loops....
EDITED to correct the error Moneo points in his post.
Open bc.exe (BACKUP IT!) with an hex editor and change the byte 07 (bell) at offset 16C6Ah to 20h( space). The beep is printed with the up arrow ^ that points to the error location.
Code:
16c60: 00 0d 00 b0 20 0f 00 b0 a0 5e 07 a0 0d 0a 07 49
^
byte to edit
I found a different beep for the Missing label error!
Code:
14FA0: 00 0B 02 0D 0A 00 0C 02 07 4C 61 62 65 6C 20 6E
^
14FA8
Antoni