I'm interested in learning assembly and I signed up for a course on udemy called Assembly Language Adventures by xorpd. He recommended this forum as a good place to ask questions.
His whole course is based on working in a Windows environment, but I prefer Linux. I'm using Ubuntu 16.04.1.
In this course I'm at the stage where I'm actually starting to read and write programs. Here is the first one:
; example for a very basic fasm program. (console based).
include'win32a.inc' ; =======================================
start: ; program begins
; exit the process
call [ExitProcess] ; =======================================
; Imports Section
librarykernel,'kernel32.dll' importkernel,\ ExitProcess,'ExitProcess'
I believe the program is including some library file that contains the 'ExitProcess'.
As a linux user, is there a similar library that I can include instead?
I assume there will be more library includes coming up in the course and I'm wondering how I should go about following along. I don't want to abandon the course because I think the instructor and the content is great. I've already learned a lot, but I want to write some programs now!
Linux is very different from Windows. I guess you already knew that. If all you need are simple OS services like opening a file or writing to the console then you don't need to load any libraries. It is all done with system calls or software interrupts.
There are examples programs in the linux version of the fasm download:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum