DEBUG 2 emu8086

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jul 2009
Posts: 179
Reputation: Nathan Campos is an unknown quantity at this point 
Solved Threads: 6
Nathan Campos's Avatar
Nathan Campos Nathan Campos is offline Offline
Junior Poster

DEBUG 2 emu8086

 
0
  #1
Aug 20th, 2009
Hello,
I'm learning Assembly. I'm using DEBUG as my Assembler, but now i want to convert a simple code to really Assembly(For emu8086), here is the code as i put in DEBUG:
  1. -E 0200 "0123456789" 24
  2. -A 0100
  3. 0D0B:0100 MOV AH,09
  4. 0D0B:0102 MOV DX,0200
  5. 0D0B:0105 INT 21
  6. 0D0B:0107 INT 20
But when i put this code in emu8086 and i try to emulate it, the program gave me two errors.
What i have to do?

Thanks,
Nathan Paulino Campos
Last edited by Nathan Campos; Aug 20th, 2009 at 10:23 pm. Reason: ...
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: DEBUG 2 emu8086

 
0
  #2
Aug 21st, 2009
I'm not sure of what you're trying to say,
but DOS interrupt is 21h ; 21 Hex not 21 decimal.
DOS terminate is 20h ; 20 Hex not 20 decimal

In the assembler you enter -E 0200 and I'm assuming you mean 0200h (hex) not 200 (decimal)

You entere -A 0100 and I showed a hex segment + offset at 100 which implies data entry is in hex. But in terms of assembly instructions you need to enter mov dx,0200h
Last edited by wildgoose; Aug 21st, 2009 at 5:32 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 179
Reputation: Nathan Campos is an unknown quantity at this point 
Solved Threads: 6
Nathan Campos's Avatar
Nathan Campos Nathan Campos is offline Offline
Junior Poster

Re: DEBUG 2 emu8086

 
0
  #3
Aug 21st, 2009
Hello Wildgoose,
Here is an screenshot:
http://img24.imageshack.us/img24/2298/14629076.jpg
Please put what i have to change in my code to do this work.

Thanks,
Nathan Paulino Campos
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: DEBUG 2 emu8086

 
1
  #4
Aug 21st, 2009
I realize English isn't your primary language but you need to try better as your request is not clear!

You covered up your code so we can no longer see it!
DOS used a '$' terminator so if you're trying to reference an ASCII string
'0123456789$'
It thinks you're trying to assemble commands?

I don't use EMU8086 but I believe the edit is only for source commands. It is not the DOS debugger (debug.exe)

Normally it is like the following:
  1. org $100
  2. mov ah,9
  3. mov dx,msg ; Print string$
  4. int 21h ; DOS Interrupt
  5.  
  6. int 20h ; DOS terminate
  7.  
  8. msg: db '0123456789$'
Last edited by wildgoose; Aug 21st, 2009 at 11:29 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 179
Reputation: Nathan Campos is an unknown quantity at this point 
Solved Threads: 6
Nathan Campos's Avatar
Nathan Campos Nathan Campos is offline Offline
Junior Poster

Re: DEBUG 2 emu8086

 
0
  #5
Aug 21st, 2009
Thanks, now it is working!
But i'm starting, then i want to know what program you use, if you can share i will be very happy.

+1 of Reputation
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 830
Reputation: wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all wildgoose is a name known to all 
Solved Threads: 94
wildgoose's Avatar
wildgoose wildgoose is offline Offline
Practically a Posting Shark

Re: DEBUG 2 emu8086

 
0
  #6
Aug 21st, 2009
When doing 80x86 I use C/C++ with either inline assembly, or MASM assembled files linked to the exe.

MIPS its usually SNSystems.
PowerPC its a couple different IDE's.
Rabbit SofTools
PIC18F MicroChip

and a few other ancient processors.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 179
Reputation: Nathan Campos is an unknown quantity at this point 
Solved Threads: 6
Nathan Campos's Avatar
Nathan Campos Nathan Campos is offline Offline
Junior Poster

Re: DEBUG 2 emu8086

 
0
  #7
Aug 21st, 2009
Thanks, this was just for my knowleadge as a beginner.
+1 of reputation!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum


Views: 506 | Replies: 6
Thread Tools Search this Thread



Tag cloud for Assembly
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC