Re: Enter multiple values and display them all at once



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

.



Relevant Pages

  • Re: Enter multiple values and display them all at once
    ... only the pay rate is displaying and its ... becoming quite frustrating. ... What else do you expect if "call getAgeInput" overwrites the input ...
    (alt.lang.asm)
  • Re: quick startup in displaying wavefront OBJ files with OpenGL
    ... So, I am after displaying the data in a 3D OBJ file, not reading it ... Additional it can store normals and/or tex-coords. ...
    (comp.graphics.api.opengl)
  • Re: Updating the screen
    ... >I want to see the progress when reading the contents of a textfile. ... >I thougth this could be done by displaying the read line in a ...
    (comp.lang.pascal.delphi.misc)
  • missing cd / dvd drives in my computer
    ... I have some computer issues that are becoming very ... frustrating. ... It seems the further I delve into trying to understand it ... seems the farther away from a fix I am getting. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: missing cd / dvd drives in my computer
    ... |I have some computer issues that are becoming very ... It seems the further I delve into trying to understand ...
    (microsoft.public.windowsxp.help_and_support)