encyclopegia.org

QB64

QB64 (originally QB32) is a self-hosting BASIC compiler for Microsoft Windows, Linux and Mac OS X, designed to be compatible with Microsoft QBasic and QuickBASIC.[src] QB64 is a transpiler to C++, which is integrated with a C++ compiler to provide compilation via C++ code and GCC optimization.[src] QB64 implements most QBasic statements, and can run many QBasic programs, including Microsoft's QBasic Gorillas and Nibbles games.[src] Furthermore, QB64 has been designed to contain an IDE resembling the QBASIC IDE.[src] QB64 also extends the QBASIC programming language to include 64-bit data types, as well as better sound and graphics support.[src] It can also emulate some DOS/x86 specific features such as INT 33h mouse access, and multiple timers.[src] Since version 2.0, QB64 now offers debugging abilities, with the new $DEBUG metacommand.[src]

QB64 (originally QB32) is a self-hosting BASIC compiler for Microsoft Windows, Linux and Mac OS X, designed to be compatible with Microsoft QBasic and QuickBASIC.[src] QB64 is a transpiler to C++, which is integrated with a C++ compiler to provide compilation via C++ code and GCC optimization.[src] QB64 implements most QBasic statements, and can run many QBasic programs, including Microsoft's QBasic Gorillas and Nibbles games.[src] Furthermore, QB64 has been designed to contain an IDE resembling the QBASIC IDE.[src] QB64 also extends the QBASIC programming language to include 64-bit data types, as well as better sound and graphics support.[src] It can also emulate some DOS/x86 specific features such as INT 33h mouse access, and multiple timers.[src] Since version 2.0, QB64 now offers debugging abilities, with the new $DEBUG metacommand.[src] PRINT "Hello, World!" An example of QB64's emulation of VGA memory for compatibility: CLS S$ = "Hello, World!" DEF SEG = &HB800 'sets the segment to video memory FOR I = 1 TO LEN(S$) POKE 160 + (I - 1) * 2, ASC(MID$(S$, I, 1))'character NEXT DEF SEG 'reset the segment to default An example of how QB64 allows audio files: sound_effect& = _SNDOPEN("sound.wav") 'WAV, OGG or MP3 _SNDPLAY sound_effect& An example of how QB64 allows picture files: SCREEN _NEWIMAGE(800, 600, 32) 'creates a 32-bit screen imagename& = _LOADIMAGE("image__name.png") 'BMP, JPG, PNG, etc.[src] _PUTIMAGE (0, 0), imagename& _FREEIMAGE imagename& 'release assigned memory An example of how QB64 uses multiple timers: t1 = _FREETIMER t2 = _FREETIMER ON TIMER(t1, 1) GOSUB Timer.Trap 'the code following the Timer.Trap label will be run every 1 second ON TIMER(t2, .5) mySub 'QB64 can also trigger a SUB procedure with TIMER; ' in this case mySUB will be triggered every 500 milliseconds 'activate timers: TIMER(t1) ON TIMER(t2) ON DO 'go into an infinite loop until the window is closed _LIMIT 1 'run the main loop at 1 cycle per second, to show how timers are independent from main program flow LOOP Timer.Trap: PRINT "1s; "; RETURN SUB mySub PRINT "500ms; "; END SUB[src]

16 sentences · 16 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"QB64." encyclopegia.org, 2025, https://encyclopegia.org/wiki/qb64. Accessed 29 November 2026.

Chicago

"QB64." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/qb64.

APA

encyclopegia.org. (2025). QB64. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/qb64

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1320839158 · 0.5 · snapshot enwiki-001320839158

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.