Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old September 21st, 2007, 01:20 AM
Registered User
Join Date: Sep 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Simple assembly program runtime error

I'm new to assembly language and the VS2005 environment. When I wrote a simple program as follows:

.model flat,stdcall
.stack 100h
mov ah,1
int 21h
end start

The compilation and linkage all passed well, but at runtime a dialogbox displayed: "filename.exe has encountered a problem and needs to close. We are sorry for the inconvenience."

No difference is made when "mov ah,1
int 21h" is changed to any other code.

Can anybody help me?


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly program help mapaputsi Assembly Language 1 September 11th, 2007 09:54 AM
Simple Program Help hobbit666 Visual Basic 2005 Basics 2 December 19th, 2006 10:51 AM
Simple Java Program WargeMaster Java GUI 1 September 9th, 2005 12:25 PM
Error : File or assembly name CrystalKeyCodeLib, o vinod_pawar1 Crystal Reports 0 August 23rd, 2004 04:53 AM

All times are GMT -4. The time now is 11:47 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.