Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7890009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:14:37+00:00 2026-06-03T06:14:37+00:00

i am using windows 7 for learning assembly language.I am using NASM for creating

  • 0

i am using windows 7 for learning assembly language.I am using NASM for creating object files and mingw for creating executable files.

i am using the following commands for compile and run executable files

del hello.o
del hello.exe
nasm -f elf hello.asm
ld hello.o -o hello.exe
hello

while running the hello.exe file,an error message showing “hello.exe has stoped working”

while using the following command

    nasm -f bin hello.asm -o program.exe

i have got an error shown below

enter image description here

my program code

global _start            ; global entry point export for ld
section .text
_start:
; sys_write(stdout, message, length)
mov eax, 4        ; sys_write syscall
mov ebx, 1        ; stdout
mov ecx, message    ; message address
mov edx, length        ; message string length
int 80h
; sys_exit(return_code)
mov eax, 1        ; sys_exit syscall
mov ebx, 0        ; return 0 (success)
int 80h
section .data
message: db 'Hello, world!',0x0A    ; message and newline
length: equ $-message            ; NASM definition pseudo-instruction
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:14:38+00:00Added an answer on June 3, 2026 at 6:14 am

    What you have there is Linux code (int 0x80, sys_write and sys_exit being kernel system calls for rather low-level stuff).

    I’m not convinced it’s a good idea to try and call the Linux kernel when you’re running on the Windows operating system. That’s unlikely to end well 🙂

    MinGW is minimalist GNU for Windows, a way of using the gcc toolchain for writing Windows applications. You have to therefore follow the Windows rules.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning Ruby (using version 1.8.6) on Windows 7. When I try to run
I'm currently in the process of learning assembly language. I'm using Gas on Linux
I am working on learning the windows API and am using mingw as my
I have been learning Python2.7 for a little bit now. I'm using Windows 7
Am using windows xp sp3 on netbook and i need to compile c# programs
I was about to start learning x64 assembly using this tutorial (series) but setting
I am learning NASM and am tying to compile this code (which I found
I am currently learning about named pipes in Windows using ASP.NET 3.5 and C#.
I'm learning F#, and decided to try making simple XNA games for windows using
I'm learning assembly language. I started with Paul A. Carter's PC Assembly Language which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.