K
K
Kezzya2021-11-02 17:27:39
assembler
Kezzya, 2021-11-02 17:27:39

Is it possible to get an individual element of an array?

The fact is that when I try to get a single element, I get all the elements of the array starting from [N], because there is no sign $
stringT is a string that stores the entered numbers from the keyboard
at 123

mov  dx, offset StringT[1]
    mov   ah,9
    int   21h


23 will be displayed instead of 2.
I thought maybe you can add an array element '$', but did not find how to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
User700, 2021-11-02
@Kezzya

If you need to display a character:
codenet.ru/progr/dos/dos_0010.php Asked
clarifying questions in the comment above

mov  ah, 2
mov  dl, StringT[1]
int  21h

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question