I’m using FASM to compile a small piece of code:
mov ah,4ch
mov al,00
int 21h
I click Run -> Compile, and what I get is a .BIN file.
sorry for the noobish question but why don’t I get an OBJ, or an EXE file, and what is this BIN?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The BIN is a binary file, You need to check the command line options that you used to pass to FASM. According to the documentation the default format is a flat binary file. To quote from the documentation, section 2.4:
So I think your code should look like this:
Edit: I just realized after hitting Save, that it was 16 bit registers used…