| | |
DEBUG 2 emu8086
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
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:
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
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)
-E 0200 "0123456789" 24 -A 0100 0D0B:0100 MOV AH,09 0D0B:0102 MOV DX,0200 0D0B:0105 INT 21 0D0B:0107 INT 20
What i have to do?
Thanks,
Nathan Paulino Campos
Last edited by Nathan Campos; Aug 20th, 2009 at 10:23 pm. Reason: ...
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
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.
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
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
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:
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)
org $100 mov ah,9 mov dx,msg ; Print string$ int 21h ; DOS Interrupt int 20h ; DOS terminate msg: db '0123456789$'
Last edited by wildgoose; Aug 21st, 2009 at 11:29 am.
![]() |
Similar Threads
- Outlook giving a debug error (Windows Software)
- How do i debug this app? (Java)
- "Run time error, do you wish to debug?" (Web Browsers)
- cannot debug ASP (ASP)
- Need to debug (Web Browsers)
- Windows 2000 Debug file (Windows NT / 2000 / XP)
- Debug message (Web Browsers)
Other Threads in the Assembly Forum
- Previous Thread: assembly switch/case macro
- Next Thread: Print a Message Using DB
Views: 506 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Assembly
3d 68hc11 6811 80386 adress array asm assembler assembly boot bootloader buffer compression cursor debug directory division docs dos draw emulator endtask error exceptions file int10h integer intel interrupt interrupts language loop nohau osdevelopment print program range read remainder shape string text theory tsr x86





