Qb64 download
Author: p | 2025-04-24
QB64 is an updated clone of Qbasic. QB64 works on Windows, Mac and Linux. QB64 is a free download at www.QB64.orgIf there is an IDE Error on QB64, run QB64 a
QB64 1.0 Download - qb64.exe - Software Informer
INTEGER is a 2-byte number type definition that can hold whole numerical values.Syntax DIM variable AS INTEGER Integers do not use decimal point values but will round those off to the nearest even whole number. QBasic integer values can range from -32768 to 32767 without an “overflow” error. For larger integer values use the LONG integer type. QB64 INTEGER values greater than 32767 become negative signed values instead of throwing an “overflow” error, as the top bit designates a negative value. See example 1 below. QB64 _UNSIGNED integers can range from 0 to 65535. QB64 _UNSIGNED _INTEGER64 values range from 0 to 18446744073709551615 Many graphic programs require INTEGER arrays. Variable type suffix is % or ~% for _UNSIGNED. Suffix can also be placed after a literal or hexadecimal numerical value. LONG integers use the & suffix and _INTEGER64 use the && suffix. Values can be converted to 2 byte ASCII string values using MKI$ and back with CVI. When a variable has not been defined or has no type suffix, the value defaults to SINGLE. Warning: QBasic keyword names cannot be used as numerical variable names with or without the type suffix.Example(s)QBasic signed integers were limited from -32768 to 32767, but could not exceed 32767 or it would error:DO: _LIMIT 2000 i% = i% + 1 PRINT i%LOOP UNTIL i% = 0 Explanation: In QB64 the count will go to 32767, then count up from -32768 to 0 before repeating the process without error.When a signed QB64 INTEGER value exceeds 32767, the value may become a negative value: Explanation: Use an _UNSIGNED INTEGER or a ~% variable type suffix for only positive integer values up to 65535.In QB64 _UNSIGNED INTEGER values greater than 65535 cycle over again from zero: Explanation: In QB64 an unsigned integer value of 65536 would be 0 with values increasing by the value minus 65536.See Also DIM, DEFINT LONG, _INTEGER64 LEN, MKI$, CVI _DEFINE, _UNSIGNED Variable Types &B (binary), &O (octal), &H (hexadecimal) [](), MOD (Integer remainder division) QB64 is an updated clone of Qbasic. QB64 works on Windows, Mac and Linux. QB64 is a free download at www.QB64.orgIf there is an IDE Error on QB64, run QB64 a Posts: 2,905 Threads: 342 Joined: Apr 2022 Reputation: 255 (12-14-2024, 11:20 PM)JRace Wrote: (12-14-2024, 11:10 PM)PhilOfPerth Wrote: Ok,thanks. I'll place everything into an "oldPE" folder, download and install the new version into a new QB64PE folder (directly onto the C drive), then bring in my own files.Is this what's meant to happen??That should work, as long as you don't install to the root of the C: drive. Windows might not tolerate "C:\qb64pe" (or C:\any_program>).On my desktop box I have a folder "C:\prog" for compilers & interpreters. PE is "C:\prog\qb64pe", and Windows has never given me a bit of trouble over it.And don't forget to whitelist it for your antivirus. Posts: 147 Threads: 12 Joined: Apr 2022 Reputation: 57 12-15-2024, 12:53 AM (This post was last modified: 12-19-2024, 04:03 PM by RhoSigma.) And for all who wanna get rid of some unused compiler stuff and slim their installation by approx. 5000 files (or ~200MB), here is a new program to perform the task according to your system architecture and the installed QB64-PE version (32/64bit). Run it from inside the QB64pe folder.Code: (Select All)_TITLE "QB64PE-Cleaner"'----------------------$IF WIN AND _QB64PE_ AND VERSION >= 4.0.0 THEN PRINT "This program will delete some unused files and folders from your QB64-PE" PRINT "installation (v4.0.0 and up)." PRINT PRINT "Licensing rules require us to distribute the C/C++ compiler toolchain as" PRINT "full unmodified package. However, you as the end user are not required to" PRINT "keep all of it, wasting storage space on your harddrive." PRINT PRINT "Since v4.0.0 we utilise/deliver the LLVM MinGW C/C++ compiler toolchain" PRINT "with the Windows versions of QB64-PE. This toolchain contains four distinct" PRINT "compilers for various CPU architectures." PRINT "However, you only need one of these compilers depending on your system and" PRINT "the installed QB64-PE version (32/64bit), while the other three are useless." PRINT "Removing those will slim your installation by approx. 5000 files (÷200MB)." PRINT LINE INPUT "Do you wanna clean up your installation (y/n): "; ask$ PRINT IF UCASE$(ask$) "Y" GOTO done 'find required compiler CONST none = 16, aarch64 = 8, armv7 = 4, i686 = 2, x86_64 = 1 SELECT CASE UCASE$(ENVIRON$("PROCESSOR_ARCHITECTURE")) CASE "AARCH32", "AARCH64", "ARM", "ARM64", "ARMV1", "ARMV2", "ARMV3", "ARMV4", "ARMV5", "ARMV6", "ARMV7", "ARMV8", "ARMV9" comp% = (aarch64 OR armv7) CASE "I386", "IA64", "X86", "X86_64", "AMD64" comp% = (i686 OR x86_64) CASE ELSE comp% = none END SELECT IF INSTR(_OS$, "32BIT") > 0 THEN comp%Comments
INTEGER is a 2-byte number type definition that can hold whole numerical values.Syntax DIM variable AS INTEGER Integers do not use decimal point values but will round those off to the nearest even whole number. QBasic integer values can range from -32768 to 32767 without an “overflow” error. For larger integer values use the LONG integer type. QB64 INTEGER values greater than 32767 become negative signed values instead of throwing an “overflow” error, as the top bit designates a negative value. See example 1 below. QB64 _UNSIGNED integers can range from 0 to 65535. QB64 _UNSIGNED _INTEGER64 values range from 0 to 18446744073709551615 Many graphic programs require INTEGER arrays. Variable type suffix is % or ~% for _UNSIGNED. Suffix can also be placed after a literal or hexadecimal numerical value. LONG integers use the & suffix and _INTEGER64 use the && suffix. Values can be converted to 2 byte ASCII string values using MKI$ and back with CVI. When a variable has not been defined or has no type suffix, the value defaults to SINGLE. Warning: QBasic keyword names cannot be used as numerical variable names with or without the type suffix.Example(s)QBasic signed integers were limited from -32768 to 32767, but could not exceed 32767 or it would error:DO: _LIMIT 2000 i% = i% + 1 PRINT i%LOOP UNTIL i% = 0 Explanation: In QB64 the count will go to 32767, then count up from -32768 to 0 before repeating the process without error.When a signed QB64 INTEGER value exceeds 32767, the value may become a negative value: Explanation: Use an _UNSIGNED INTEGER or a ~% variable type suffix for only positive integer values up to 65535.In QB64 _UNSIGNED INTEGER values greater than 65535 cycle over again from zero: Explanation: In QB64 an unsigned integer value of 65536 would be 0 with values increasing by the value minus 65536.See Also DIM, DEFINT LONG, _INTEGER64 LEN, MKI$, CVI _DEFINE, _UNSIGNED Variable Types &B (binary), &O (octal), &H (hexadecimal) [](), MOD (Integer remainder division)
2025-04-08Posts: 2,905 Threads: 342 Joined: Apr 2022 Reputation: 255 (12-14-2024, 11:20 PM)JRace Wrote: (12-14-2024, 11:10 PM)PhilOfPerth Wrote: Ok,thanks. I'll place everything into an "oldPE" folder, download and install the new version into a new QB64PE folder (directly onto the C drive), then bring in my own files.Is this what's meant to happen??That should work, as long as you don't install to the root of the C: drive. Windows might not tolerate "C:\qb64pe" (or C:\any_program>).On my desktop box I have a folder "C:\prog" for compilers & interpreters. PE is "C:\prog\qb64pe", and Windows has never given me a bit of trouble over it.And don't forget to whitelist it for your antivirus. Posts: 147 Threads: 12 Joined: Apr 2022 Reputation: 57 12-15-2024, 12:53 AM (This post was last modified: 12-19-2024, 04:03 PM by RhoSigma.) And for all who wanna get rid of some unused compiler stuff and slim their installation by approx. 5000 files (or ~200MB), here is a new program to perform the task according to your system architecture and the installed QB64-PE version (32/64bit). Run it from inside the QB64pe folder.Code: (Select All)_TITLE "QB64PE-Cleaner"'----------------------$IF WIN AND _QB64PE_ AND VERSION >= 4.0.0 THEN PRINT "This program will delete some unused files and folders from your QB64-PE" PRINT "installation (v4.0.0 and up)." PRINT PRINT "Licensing rules require us to distribute the C/C++ compiler toolchain as" PRINT "full unmodified package. However, you as the end user are not required to" PRINT "keep all of it, wasting storage space on your harddrive." PRINT PRINT "Since v4.0.0 we utilise/deliver the LLVM MinGW C/C++ compiler toolchain" PRINT "with the Windows versions of QB64-PE. This toolchain contains four distinct" PRINT "compilers for various CPU architectures." PRINT "However, you only need one of these compilers depending on your system and" PRINT "the installed QB64-PE version (32/64bit), while the other three are useless." PRINT "Removing those will slim your installation by approx. 5000 files (÷200MB)." PRINT LINE INPUT "Do you wanna clean up your installation (y/n): "; ask$ PRINT IF UCASE$(ask$) "Y" GOTO done 'find required compiler CONST none = 16, aarch64 = 8, armv7 = 4, i686 = 2, x86_64 = 1 SELECT CASE UCASE$(ENVIRON$("PROCESSOR_ARCHITECTURE")) CASE "AARCH32", "AARCH64", "ARM", "ARM64", "ARMV1", "ARMV2", "ARMV3", "ARMV4", "ARMV5", "ARMV6", "ARMV7", "ARMV8", "ARMV9" comp% = (aarch64 OR armv7) CASE "I386", "IA64", "X86", "X86_64", "AMD64" comp% = (i686 OR x86_64) CASE ELSE comp% = none END SELECT IF INSTR(_OS$, "32BIT") > 0 THEN comp%
2025-04-15Volume is still 50% by default. It is just that it uses a square waveform by default just like QB45 did back in the day. Previously, QB64 used a triangle waveform, which has a much softer sound compared to a square waveform. For compatibility, we always reference QB45 as the standard.You can adjust the volume using the "v" MML command. For example: Code: (Select All)PLAY "v20"Alternatively, you can change the waveform to a triangle with an optional volume ramp like so: Code: (Select All)PLAY "@3Q1"Once set, all subsequent PLAY commands will use the triangle waveform. If you are using multi-voice playback, remember to apply this change for each voice.So it was a bug. THAT WAS FIXED to be qb45 compatible. Thanks for the unfix suggestions (qb64 compatible). Square waves contain too many harmonics that made it sound harsh. Posts: 18 Threads: 1 Joined: Apr 2022 Reputation: 1 Happy Birthday, QB64PE v4.0!Thanks to all people that made it possible.Looking forward to try it out. Posts: 69 Threads: 9 Joined: Apr 2022 Reputation: 6 (12-15-2024, 12:53 AM)RhoSigma Wrote: And for all who wanna get rid of some unused compiler stuff and slim their installation by approx. 5000 files (or ~200MB), here is a new program to perform the task according to your system architecture and the installed QB64-PE version (32/64bit). Run it from inside the QB64pe folder.Wow, slick! Thanks, RhoSigma!
2025-04-20