943,660 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Marked Solved
  • Views: 1134
  • Assembly RSS
Aug 20th, 2009
0

DEBUG 2 emu8086

Expand Post »
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:
asm Syntax (Toggle Plain Text)
  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: ...
Similar Threads
Reputation Points: 33
Solved Threads: 6
Junior Poster
Nathan Campos is offline Offline
190 posts
since Jul 2009
Aug 21st, 2009
0

Re: DEBUG 2 emu8086

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.
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
wildgoose is offline Offline
891 posts
since Jun 2009
Aug 21st, 2009
0

Re: DEBUG 2 emu8086

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
Reputation Points: 33
Solved Threads: 6
Junior Poster
Nathan Campos is offline Offline
190 posts
since Jul 2009
Aug 21st, 2009
1

Re: DEBUG 2 emu8086

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:
Assembly Syntax (Toggle Plain Text)
  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.
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
wildgoose is offline Offline
891 posts
since Jun 2009
Aug 21st, 2009
0

Re: DEBUG 2 emu8086

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
Reputation Points: 33
Solved Threads: 6
Junior Poster
Nathan Campos is offline Offline
190 posts
since Jul 2009
Aug 21st, 2009
0

Re: DEBUG 2 emu8086

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.
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
wildgoose is offline Offline
891 posts
since Jun 2009
Aug 21st, 2009
0

Re: DEBUG 2 emu8086

Thanks, this was just for my knowleadge as a beginner.
+1 of reputation!
Reputation Points: 33
Solved Threads: 6
Junior Poster
Nathan Campos is offline Offline
190 posts
since Jul 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: assembly switch/case macro
Next Thread in Assembly Forum Timeline: Print a Message Using DB





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC