Hello, Assembly! Retrocoding the World's Smallest Windows App in x86 ASM
230321 Like and subscribe. This is an archive, check the link in the end if you are owner. Dave builds the World's Smallest Windows application live in x86 assembly using only a text editor and the command line to assemble the program using the Microsoft MASM assembler.
Whether you're a professional programmer or just curious about how assembly language works, what makes it different from machine language, and why it can be faster and smaller than C you won't want to miss it! Take your Windows Programming to the next level. Or the previous level, depending on how you look at it!
Link to Mug:
https://daves-garage-store.creator-spring.com/listing/new-dave-s-garage-logo-mug
Link to Code:
https://pastebin.com/Pmvr4r1S
Thanks in part to a suggestion by 'SonicMouse' that I merge linker sections, the current binary size is 1488 bytes... and yes, it runs exactly the same.
0:00 Start
1:31 Assembly Language vs Machine Language
2:24 Machine Language Monitors
3:22 Hello, Windows!
5:10 Dave's Garage Mug
5:30 Task Manager Enamel Pins
6:04 Editor Sequence Start
10:15 Includes, Libs, Constants, Data
12:00 Main Entry
13:30 ShowWindow
15:11 WinMain
17:10 WindowClass
21:37 WndProc
26:15 Command Line
28:08 Running the App
28:30 Closing Thoughts
Environment: Windows 10 2H02, MacOS 11.2.2
GNU Nano Editor
Microsoft MASM SDK
PS: For anyone keeping score, two things are certain: (a) it can always be smaller, and I'm down to 1488 bytes now, and (b) Steve Gibson has likely forgotten as much about x86 assembly programming as I know :-). Thanks for the recent shoutout on the podcast!
I realize you can make a much smaller app by simply calling MessageBox, but that's why I outlined what I deem to be the "minimum functionality". SonicMouse has come the closest so far at 1776!
https://rumblevideoarchive.wordpress.com/
-
12:17
Dave's Garage Archive Channel
7 months agoChatGPT Blew my Mind! Now it can code AND learn from the results!
1192 -
8:06
ErmzPlays
18 hours agoThe Acolyte Episode 4 - From Stupid To Insane
3.21K7 -
10:12
China Uncensored
8 hours agoBoeing Has a BIG China Problem
5.56K15 -
1:02
Maicy Renee
11 hours agoGetting That Beach Body Ready Yall!
6.32K4 -
42:43
The Why Files
1 day agoProof of Life After Death: Hope and a Warning From The Other Side
18.2K57 -
16:37
Scammer Payback
1 day agoHere's the Scammer's Location 👉 (28°34'05.1"N 77°24'00.9"E)
22.4K19 -
2:42:09
Fresh and Fit
6 hours agoSmash A Guy In The Friend-Zone Or Dinner With Mustache Man?
65.2K61 -
4:56:08
Alex Zedra
7 hours agoLIVE! Playing Chained Together
31.4K28 -
6:57:52
Akademiks
14 hours ago"The Pop Out" - Kendrick Lamar & Friends Concert
215K62 -
1:29:07
The Anthony Rogers Show
16 hours agoEpisode 322 - Lilly Gaddis
25.2K