| | |
help with some homework plz!
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 8
Reputation:
Solved Threads: 0
hi all i have some homework that i cant finish cuz i dont know how to print it the way my teacher wants it.. here's the thing
*Print this in debugger
in the right of the screen.... this is what i have so far
at 010a (12 row) its my chain HOLA
e10a 'hola',0d,oa,'$'
i'm using Windows vista HP and a intel core2 procesor
i dunno how to put the rest of the chains in the same position as the first one... i thought about an increment or printing the interruption with the chain.. plz help i dunno what to do.
and excuse my english i'm not a native english speaker i'm mexican
*Print this in debugger
Assembly Syntax (Toggle Plain Text)
hello . . . 25 times
Assembly Syntax (Toggle Plain Text)
Microsoft Windows [Versión 6.0.6002] Copyright (c) 2006 Microsoft Corporation. Reservados todos los derechos. C:\Users\MAURO>cd workspace C:\Users\MAURO\workspace>debug prue.com -u100 1841:0100 BA2006 MOV DX,0620 1841:0103 B402 MOV AH,02 1841:0105 CD10 INT 10 1841:0107 B80002 MOV AX,0200 1841:010A 48 DEC AX 1841:010B 4F DEC DI 1841:010C 4C DEC SP 1841:010D 41 INC CX 1841:010E 0D0A24 OR AX,240A 1841:0111 B409 MOV AH,09 1841:0113 BA0A01 MOV DX,010A 1841:0116 B91900 MOV CX,0019 1841:0119 CD21 INT 21 1841:011B E2FC LOOP 0119 1841:011D CD20 INT 20 1841:011F 0000
e10a 'hola',0d,oa,'$'
i'm using Windows vista HP and a intel core2 procesor
i dunno how to put the rest of the chains in the same position as the first one... i thought about an increment or printing the interruption with the chain.. plz help i dunno what to do.
and excuse my english i'm not a native english speaker i'm mexican
Last edited by xenocide001; Sep 10th, 2009 at 6:58 pm.
You need to keep the ASCII text ouside the code flow or it will be treated like code, which it isn't!
You need to modify your code as to something as follows!
You need to modify your code as to something as follows!
Asm Syntax (Toggle Plain Text)
MOV AH,9 ; Write String to STDOUT mov DX,Hola mov CX,25 prt: int 21h ; DOS -Interrupt loop prt int 20h Hola: db 'hola',0dh,0ah,'$'
•
•
Join Date: Nov 2008
Posts: 8
Reputation:
Solved Threads: 0
well thnx for the answer but i can't put the string in the dx i tried ur code and pops and error at the error is in the string..
Assembly Syntax (Toggle Plain Text)
mov dx,hola
then try offset Hola
or use LEA or something similar!
The idea is the data has to not be in the code flow, and you need to load its address into ds:dx.
Watch the spelling!
Are you doing this in the debugger or an assembler?
If the debugger then you need to mov dx, ####
where #### is the hard coded address of the string!
or use LEA or something similar!
The idea is the data has to not be in the code flow, and you need to load its address into ds:dx.
Watch the spelling!
Are you doing this in the debugger or an assembler?
If the debugger then you need to mov dx, ####
where #### is the hard coded address of the string!
Last edited by wildgoose; Sep 11th, 2009 at 9:34 pm.
![]() |
Similar Threads
- Computing Homework- Binary To Denary Program (Geeks' Lounge)
- Computer Science homework help plz (Computer Science)
Other Threads in the Assembly Forum
- Previous Thread: plz help me
- Next Thread: help
| Thread Tools | Search this Thread |
Tag cloud for assembler, debug, int10h






