flat assembler
Message board for the users of flat assembler.
Index
> Main > Data, definitions of data in binaries... |
Author |
|
comrade 13 Jun 2004, 23:31
1a) label rb 234
1b) label times 234 db ? |
|||
13 Jun 2004, 23:31 |
|
Custodian 14 Jun 2004, 15:39
Это все хорошо...
That all is quite good, but what about second theme???? I can explain it more carefully... Some kind of a program, starting after second boot loader, has a lot of parametres, (We don't any memory manager) which must be avalible at every moment of time... It may be struct or smth like that... so using a stack is a problem... We start this program, and write some parametres after this program at our memory, [program],[free memory........ after starting program [program],[param1],[param2],[paramN],[free memory.... during working of program [program],[free memory],[paramN],[free memory... How can I recieve address of free memory?? I don't know how many params would be in program, before it starts... this is a problem... I know solution using a register or some variable to storage address of free memory, and change it during program... But this works slowly, and we loss some free memory... If somebody have another solution please reply... thx... |
|||
14 Jun 2004, 15:39 |
|
Custodian 15 Jun 2004, 06:39
Oh... I've found solution....
Mr. Comrade comrade wrote:
It doesn't work fine at my fasm 1.52... reserved data is quite good, but if I need some definit value? Masm "256 dup (0)"... thx... _________________ --- Line of Cut --- |
|||
15 Jun 2004, 06:39 |
|
decard 15 Jun 2004, 06:54
Custodian wrote: Oh... I've found solution.... actually you should write it like this: Code: label: times 88 db ? if you want to put some initialised data, just change it to: Code: label: times 88 db 'A' label: times 88 db 0xff label: times 88 db 127 ... and so on :wink: regards |
|||
15 Jun 2004, 06:54 |
|
Custodian 15 Jun 2004, 07:32
Ok... thx...
|
|||
15 Jun 2004, 07:32 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.