Re: Enter multiple values and display them all at once
- From: Frank Kotler <spamtrap@xxxxxxxxxx>
- Date: Wed, 18 Oct 2006 01:08:17 -0400
Chris wrote:
I'm trying to input name, age and pay rate and then have them display
all at once. The problem is, only the pay rate is displaying and its
becoming quite frustrating. Here is my code, any ideas?
[code]
DOSSEG
.MODEL small
.STACK 100h
.DATA
NAMESTRUCT LABEL BYTE
AGESTRUCT LABEL BYTE
RATESTRUCT LABEL BYTE
MaxLen DB 20
ActLen DB ?
NameField DB 20 DUP('-')
DB '$'
RateField DB 6 DUP('-')
DB '$'
AgeField DB 3 DUP('-')
DB '$'
You've really only got one buffer set up for int 21h/0Ah, and are reading all three inputs into it. See Herbert's answer in a.l.a.
Best,
Frank
.
- References:
- Prev by Date: Re: OllyDbg used to debug VC2005 applications?
- Next by Date: Re: Sending/returning values to MFC/Microsoft functions
- Previous by thread: Enter multiple values and display them all at once
- Index(es):
Relevant Pages
|