Uploaded May 2021 | Updated November 2026, 5 days ago
Almost everyone has opened an EXE file in a text editor and been mystified by the apparent nonsense. How does a computer make sense of it? Let’s uncover the illusion.
Become a member: youtube.com/Bisqwit/join
My links:
Twitter: twitter.com/RealBisqwit
Liberapay: liberapay.com/Bisqwit
Patreon: patreon.com/Bisqwit (Other options at bisqwit.iki.fi/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
AMD64 programmer’s manual:
amd.com/system/files/TechDocs/24592.pdf
amd.com/system/files/TechDocs/24593.pdf
amd.com/system/files/TechDocs/24594.pdf
developer.amd.com/wordpress/media/2012/10/26568_APM_v41.pdf
amd.com/system/files/TechDocs/26569_APM_V5.pdf
amd.com/system/files/TechDocs/43479.pdf
8086 and 8088 datasheets:
datasheets.chipdb.org/Intel/x86/808x/datashts/8088/231456-006.pdf
datasheets.chipdb.org/Intel/x86/808x/datashts/8086/231455-005.pdf
What I wore during the Tandy1000 filming (should have used black gloves too):
https://s.click.aliexpress.com/e/_9fvUsZ
aliexpress.com/item/4000388200168.html
To contribute subtitles: youtube.com/timedtext_video?ref=share&v=hhgxsrAFyz8
That’s numberwang!
The flying numbers animation is from AllDesignCreative, by V. Sudharsan.
For the Annotations Restored extension (please use!): [ar_start]tp=text,at=text,s=anchored,ts=357,te=368,t=For%20disassembling%2C%20any%20disassembler%20could%20be%20used%20for%20the%20same%20effect.%0AThe%20Tandy%201000%20does%20not%20have%20modern%20tools%20like%20%E2%80%9Cndisasm%E2%80%9D%2C%20%E2%80%9CCodeView%E2%80%9D%2C%20let%20alone%0A%E2%80%9CIDA%20Pro%E2%80%9D%2C%20%20but%20it%20does%20have%20MS-DOS%20Debugger%20%28debug.com%29%2C%20so%20I%20used%20that.,x=26.5,y=-2,txsz=2.6,w=73.5,h=12,bgc=4096,fgc=16776116,bgo=1;[ar_end]
#numbers #assembler #hacking
Almost everyone has opened an EXE file in a text editor and been mystified by the apparent nonsense. How does a computer make sense of it? Let’s uncover the illusion.
Become a member: youtube.com/Bisqwit/join
My links:
Twitter: twitter.com/RealBisqwit
Liberapay: liberapay.com/Bisqwit
Patreon: patreon.com/Bisqwit (Other options at bisqwit.iki.fi/donate.html)
Twitch: twitch.tv/RealBisqwit
Homepage: iki.fi/bisqwit
AMD64 programmer’s manual:
amd.com/system/files/TechDocs/24592.pdf
amd.com/system/files/TechDocs/24593.pdf
amd.com/system/files/TechDocs/24594.pdf
developer.amd.com/wordpress/media/2012/10/26568_APM_v41.pdf
amd.com/system/files/TechDocs/26569_APM_V5.pdf
amd.com/system/files/TechDocs/43479.pdf
8086 and 8088 datasheets:
datasheets.chipdb.org/Intel/x86/808x/datashts/8088/231456-006.pdf
datasheets.chipdb.org/Intel/x86/808x/datashts/8086/231455-005.pdf
What I wore during the Tandy1000 filming (should have used black gloves too):
https://s.click.aliexpress.com/e/_9fvUsZ
aliexpress.com/item/4000388200168.html
To contribute subtitles: youtube.com/timedtext_video?ref=share&v=hhgxsrAFyz8
That’s numberwang!
The flying numbers animation is from AllDesignCreative, by V. Sudharsan.
For the Annotations Restored extension (please use!): [ar_start]tp=text,at=text,s=anchored,ts=357,te=368,t=For%20disassembling%2C%20any%20disassembler%20could%20be%20used%20for%20the%20same%20effect.%0AThe%20Tandy%201000%20does%20not%20have%20modern%20tools%20like%20%E2%80%9Cndisasm%E2%80%9D%2C%20%E2%80%9CCodeView%E2%80%9D%2C%20let%20alone%0A%E2%80%9CIDA%20Pro%E2%80%9D%2C%20%20but%20it%20does%20have%20MS-DOS%20Debugger%20%28debug.com%29%2C%20so%20I%20used%20that.,x=26.5,y=-2,txsz=2.6,w=73.5,h=12,bgc=4096,fgc=16776116,bgo=1;[ar_end]
#numbers #assembler #hacking
![Texture Mapping & Polygon Rasterizing Tutorial (2/2) [C++20]
Textured polygons are the foundation of nearly all 3D games in existence. Used before even 3D-capable GPUs were a thing, they were rendered using nothing but software. How was that achieved? Let’s explore an easy and intuitive method. We create an extensible 3D polygon rasterizer using nothing but standard C++20 (and libSDL for 2D graphics).
Become a member: https://youtube.com/Bisqwit/join
My links:
Twitter: https://twitter.com/RealBisqwit
Liberapay: https://liberapay.com/Bisqwit
Steady: https://steadyhq.com/en/bisqwit
Patreon: https://patreon.com/Bisqwit (Other options at https://bisqwit.iki.fi/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
You can contribute subtitles: http://www.youtube.com/timedtext_video?ref=share&v=hxOw_p0kLfI
Downloads:
https://bisqwit.iki.fi/jkp/polytut/
Music list (s = SPC-OPL conversion):
— Super Mario RPG — Sunken Ship (s)
— Tales of Phantasia — Final Act (s)
— Final Fantasy V — World 1+2 (s)
— Famicom Tantei Club 2 — Interviews (s)
— Energy Breaker — Heroes’ Adventure (s)
— Final Fantasy Mystic Quest — Shrine (s) Texture Mapping & Polygon Rasterizing Tutorial (2/2) [C++20]](https://i.ytimg.com/vi/hxOw_p0kLfI/mqdefault.jpg)


![Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 1/9
I completed Star Control II: The Ur-Quan Masters (the open source version) without ever talking to the Earth starbase commander, Hayes, or without orbiting the starbase. WARNING: THIS VIDEO SERIES INCLUDES UNDONE SEGMENTS. IT IS LONG AND IRRELEVANT. PROVIDED FOR CURIOSITY ONLY.
Note: There are occasional video / audio glitches in the videos, but those will [hopefully] get less and less common as the game progresses, as I fixed bugs in my recording software. Unfortunately, their effect tends to cascade the longer the video is.
This is a practice / proof-of-concept run, created within a span of 7 days.
Technical information: Played in real time on Linux computer across SSH link on Cygwin desktop. Recording was done using a homebrew LD_PRELOAD library that hooked into SDL video & audio updates, and produced 32-bit zmbv+pcm mkv files. Extra calls were added to notify the recording library of save & load events, so that the finished video could be constructed from the relevant segments. Undone segments are not shown (except in the totally uncut series).
This video includes ALL the segments, even those that ended up in failure and had to be redone by loading a save.
WATCH THE FINISHED PRACTICE SERIES WITH COMMENTS, AND BORING/REPETITIVE PARTS MOSTLY CUT OUT:
Part 1: https://youtu.be/-fPtTwm_vOU
Part 2: https://youtu.be/HJc_ykXU9TY
Part 3: https://youtu.be/QI6FB62BoBQ
Part 4: https://youtu.be/2DaxgFCy8JM
Part 5: https://youtu.be/9CF-OZy5dR4
Part 6: https://youtu.be/mwoLQUKCrkE
Part 7: https://youtu.be/JUFVnDCyY1w
Part 8: https://youtu.be/fYOFJvfxDec
Part 9: https://youtu.be/1PmBct19ctA
Part 10: https://youtu.be/wIVYv_DEpak
Part 11: [tba]
Part 12: [tba]
UNCUT VIDEO (FINISHED PRACTICE SEGMENTS IN ONE VIDEO, WITHOUT COMMENTS):
[tba]
TOTALLY UNCUT SERIES (ALL PRACTICE SEGMENTS; INCLUDING THE FAILED ONES):
Part 1: https://youtu.be/ilLlvEIItkM
Part 2: https://youtu.be/h8mtdNwfoB4
Part 3: https://youtu.be/9gJzNUlBNZM
Part 4: https://youtu.be/EaB92-uGuo0
Part 5: https://youtu.be/duJ5PTvqJaE
Part 6: [tba]
Part 7: [tba]
Part 8: [tba]
Part 9: [tba]
Note: The totally-uncut series includes some very long sections where absolutely nothing happens. This is because sometimes I was off-keyboard while the game and its music was playing, and when I came back, I loaded a save.
FAQ:
Q) How does no-starbase (i.e. BGD, beating-game-differently) differ from normal game?
A) Obvious differences: No flagship upgrades / module building, no crew recruiting, no fuel-for-RU, no building of ships, no Arilou ships, no replacing of planet landers, no escaping of battles. RU is worthless. Non-obvious differences: 100% of chance of probe spawning every day in hyperspace, versus maximum of 8% in normal game. And spoilers.
Q) How does UQM differ from the PC Star Control II in terms of gameplay in BGD challenge?
A) When you emerge in hyperspace (from battle, from truespace), in the PC version you would always emerge with the ship pointing north. It means that if you wanted to go anywhere else but north, you would have to slowly crank the ship to rotate towards the desired direction. In the open source version, the ship is automatically quick-oriented towards the original direction, which is a huge boon in a challenge like this. The planet lander only holds 50 units of BIO data rather than 64, necessitating more landings. And the BIO is more aggressive.
(Your question here) Ur-Quan Masters: No-Starbase Practice Run: TOTALLY UNCUT PART 1/9](https://i.ytimg.com/vi/ilLlvEIItkM/mqdefault.jpg)

![Demo showcase (from `90s) [part 1]
Sometimes people ask me whether I have been in demoscene. Well, some isolated effects sometimes, but no, I haven’t really. I searched my archives a bit for anything I could count as “demos” or “intros”, and I was able to find just a few. Here’s number 1/5. I made this in 1996年1月.
It is an intro for a BBS that my friend hosted for a while. It is also one of the very few programs I made that use Sound Blaster directly for PCM output (rather than using through a library or by outputting FM sound instead of PCM).
After it stops raining, there is no music in this demo. When it begins snowing, there could be some very awesome music. I am thinking the style that plays in Future Crew’s “Panic” from 3 minutes onwards, or in their “Second Reality” from 4 minutes onwards. But I just wasn’t a musician good enough to pull it off.
Twitter: https://twitter.com/RealBisqwit
Patreon: https://patreon.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
The “group” name... Well, it was popular those days that coders must belong to a group. The group name was invented by Core (who nowadays goes by name Acidia). Most likely inspired by heavy metal or something. I wasn’t particularly a fan. Demo showcase (from `90s) [part 1]](https://i.ytimg.com/vi/jpjGXwnSvmg/mqdefault.jpg)


![C++ for C programmers lesson 1 (classes, constructors, methods, templates, is it efficient?)
Are you familiar with C, or with languages based on C? This video gives a quick introduction to C++: a very small core set of things that are new in C++ compared to C. [Subtitles/Captions available]
Topics covered, in order:
- Bidirectional linked list in C
- What is a class (it is a struct)
- Methods
- Struct is a type (typedef is not needed)
- Constructing and destructing
- Template classes
- std::list is already in STL (C++ standard library)
- performance impact (none at all)
Twitter: https://twitter.com/RealBisqwit
Patreon: https://patreon.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html)
Twitch: https://twitch.tv/RealBisqwit
Homepage: https://iki.fi/bisqwit/
Things I forgot to mention:
- methods (member functions) do not increase the size of the struct/class at all. They literally work just the same way as the original C code in this video works, even though theyre defined in between the structs { and }. Memory usage per class instance is not increased (and scalability is not hurt), no matter how many methods the class defines.
Topics intentionally omitted for clarity and brevity, even though they would be good style for this program:
- copy constructor / assign operators
- member initialization in constructor
- public and private
- std::string rather than const char*
- const references rather than T verbatim
- exception safety
Its been a while since I last published videos containing English speech. I think Ive taken a step backwards towards robotic speech, due to lack of practice. Sorry about that. English is still not my native language!
Same lesson in HTML format: https://bisqwit.iki.fi/story/howto/cpp/lesson1/ C++ for C programmers lesson 1 (classes, constructors, methods, templates, is it efficient?)](https://i.ytimg.com/vi/kdlIlIIHCz0/mqdefault.jpg)

