problem in BIOS service

Reply

Join Date: Aug 2008
Posts: 1
Reputation: MZeus is an unknown quantity at this point 
Solved Threads: 0
MZeus MZeus is offline Offline
Newbie Poster

problem in BIOS service

 
0
  #1
Aug 21st, 2008
I've written the following program
  1. ;print string using bios service
  2. [org 0x0100]
  3. jmp start
  4. message: db 'hello world'
  5.  
  6. start: mov ah, 0x13 ;service 13-printing string
  7. mov al, 1 ;subservice 01-update cursor
  8. mov bh, 0 ;output on page 0
  9. mov bl, 7 ;normal attribute
  10. mov dx, 0x0A03 ;row 10-column 3
  11. mov cx, 11 ;length of string
  12. push cs
  13. pop es ;segment of string
  14. mov bp, message ;offset of string
  15. int 0x10 ;call bios video services
  16.  
  17. mov ax, 4c00h
  18. int 21h
when i try to run it on DOS an error is occured that
nasm: fatal: unable to open input file 'filename.asm'
kindly solve my problem.
thx
Last edited by Ancient Dragon; Aug 22nd, 2008 at 12:50 am. Reason: add code tags
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,374
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1466
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: problem in BIOS service

 
0
  #2
Aug 22nd, 2008
my guess is that filename.asm is not in the directory where you are trying to assemble it. That, or you named the file something else.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC