flat assembler
Message board for the users of flat assembler.
Index
> DOS > Code not working properly after int21 AH=4C [SOLVED] |
Author |
|
revolution 13 May 2016, 04:50
You don't seem to be initialising the DS register with the value of varseg.
|
|||
13 May 2016, 04:50 |
|
redsimplex 13 May 2016, 06:24
revolution wrote: You don't seem to be initialising the DS register with the value of varseg. thanks! problem solved. But I don't understand what happened there, will you mind to explain? |
|||
13 May 2016, 06:24 |
|
revolution 13 May 2016, 07:03
When you don't specify a different segment register all the memory writes that don't use SP are controlled by DS.
|
|||
13 May 2016, 07:03 |
|
Trinitek 13 May 2016, 07:13
DOS does not set DS to a useful value when starting an EXE. You were effectively writing to a location in memory that wasn't where your variables were located.
|
|||
13 May 2016, 07:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.