I was wondering if there was a way to create a window using nasm. I know that when using wsl-2, it allows the user to actually use linux system calls, so are there any particular system calls or libraries that can create a linux window?
Asked
Active
Viewed 292 times
1 Answers
0
There are, I believe, two questions here:
- How to create a window/graphical element using nasm on Ubuntu
- If this will work on Ubuntu on WSL2
The answer to the first part is, I believe, yes. My assembler days are decades behind me, and I really have no desire to try this personally ;-), but a common library for displaying graphics under Linux at a low-level is SDL. All indications that I can find in my search for "nasm and sdl" indicates that it is possible to do this in nasm.
For the second part, almost certainly "Yes", assuming you have the first part working. I do know that SDL-based code will generate graphical windows under WSL2, but you do have to have Windows 11 in order for GUI support to be built-in to WSL. There are workarounds for Windows 10 using other methods - See here and here.
NotTheDr01ds
- 22,082