DE version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
ā” Community Insights
Discussion Sentiment
67% Positive
Analyzed from 973 words in the discussion.
Trending Topics
#windows#assembly#com#https#user#dll#www#crt#api#software

Discussion (37 Comments)Read Original on HackerNews
Putting the search terms "Windows" and "assembly language" turns up all sort of books. The one that got me to initially explore the topic (from 1993).... [0]
For a more up to date treatment of assembly and windows.... comes with source code for the IDE also. Ray Seyfarth's book [1].
[0] Windows Assembly Language & Systems Programming: Object Oriented & Low-Level Systems Programming in Assembly Language for Windows 3.X
[1] Introduction to 64 Bit Windows Assembly Language Programming: Fourth Edition ISBN-13: 978-1543138849, ISBN-10: 1543138845
It's a bit like 'smallest hello world in assembly' but the code is just setting up the calling convention and then passing the zero-terminated character string into `write`. Cool, but that could be done a bit more straightforwardly in C, too. A lot of assembly (including in the linked repository) is book-keeping for the platform's calling convention.
Since the low-level Windows kernel API is undocumented and non-public, using these system DLLs is your only option on Windows.
It's just like linking against libc.so on any POSIX systems.
but also why would you, not much point except for very niche functionality
āRuns a Windows message loop Has a title bar, minimize, maximize, and close buttons, which all work as expected Has a system menu with the same Paints the background and some text centered in the middle, equal to or larger than "Dave's Tiny App"ā
That Linux program:
āLetās take an incredibly simple program, one that does nothing but return a number back to the operating systemā
See https://archive.is/w01DO#selection-265.0-265.44 for a fairer comparison (97/133 bytes)
PS. Honest take :)
https://www.grc.com/freepopular.htm
... the days! :)
Nowadays he spreads misinformation disguised as war stories from his time at Microsoft.
[1]: https://news.ycombinator.com/item?id=39813625
He got a world record score on the Tempest arcade game [1], then developed an AI which beat his own record[2]. His biggest failure was, that after rebuilding TEMPEST from arcade machine ROMS, he added levels to the game but never made them public [3].
[1]. https://www.youtube.com/watch?v=EuSMCWu02hA
[2]. https://www.youtube.com/watch?v=TdbpoDjIvPk
[3]. https://www.youtube.com/watch?v=BjsVSEbXDOM
> When consumers prepared to purchase a product, additional services and products including a $9.95 back-up disc and $4.95 āoptional extended serviceā plan appeared on the check-out form. The form also listed āone free year of updatesā ā selected by default ā but the company was then authorized to automatically charge a consumerās credit card at the end of the year unless the buyer cancels the update plan.
> Inducing computer users to install software by misrepresenting that the user's computer is at risk for crashes or privacy and security invasions.
> Marketing its InternetShield software by means of a āfree scan.ā
> Using ābuttonsā in its advertisements that do not function as the user would expect them. For example, the X found in the corner of a window is normally associated with closing the window and should not open another ad. Installing software on a userās computer that causes multiple pop-up advertisements when the user tries to close out of advertisements.
> Failing to provide a functional uninstall option for removing all software files.
> Failing to obtain a consumerās explicit consent to purchase a product or a service.