Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 80 users online: 2 members, 52 guests and 26 bots. Members: Piguy-3.14, Runer112. Bots: Baidu (1), Spinn3r (1), MSN/Bing (1), Magpie Crawler (1), VoilaBot (2), Googlebot (19), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
|
| Author |
Message |
|
Helo
Newbie

Joined: 05 Jan 2012 Posts: 10
|
Posted: 18 Jan 2012 06:22:27 pm Post subject: How can i to draw in debugger? |
|
|
I want to draw a line.I tried thisBut i take ntvdm.exe error:
Code:
100:;Green
100:dw 10
102:;Pixel
102:mov bp,sp
104:;X=word ptr [bp+6]
104:;Y=word ptr [bp+4]
104:;Color=word ptr [bp+2]
104:;ReturnAddress=word ptr [bp]
104:;Dummy=word ptr [bp-2]
104:sub sp,2
107:mov ah,0c
109:mov al,BYTE PTR [bp+2]
10c:xor bx,bx
10e:mov cx,[bp+6]
111:mov dx,[bp+4]
114:int 10
116:mov sp,bp
118:ret 6
11b:mov ax,13
11e:int 10
120:push WORD PTR [10]
124:push WORD PTR [20]
128:push [100]
12c:call 102
12f:xor ax,ax
131:int 16
133:mov ax,3
136:int 10
138:ret
|
|
| Back to top |
|
|
christop

Power User

Joined: 09 Mar 2011 Posts: 385 Location: Arizona, USA
|
Posted: 30 Jan 2012 02:08:14 pm Post subject: |
|
|
Is this part of a larger program? What is the entry point? It looks like it's designed to start at 11b. Are you telling the debugger to start running your program at 11b?
Also, I don't see where the program exits back to DOS. From what little I've Googled on the subject, here's how you're supposed to exit to DOS:
Code: mov ah,4ch
int 21h
In other words, you can't just "ret" back to DOS (if that's what you're trying to do at 138).
I don't do DOS assembly programming (talk about pain!), so I probably can't give you much more help than that. _________________ Christopher Williams |
|
| Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.026862 seconds.
|