flat assembler
Message board for the users of flat assembler.
Index
> Linux > Questions |
Author |
|
pelaillo 08 Nov 2004, 18:30
Why isn't the same?
It reserves 128 bytes starting from var1 address. I hope your headache terminates soon |
|||
08 Nov 2004, 18:30 |
|
stanks 08 Nov 2004, 18:37
Well if i reserve 100,000 bytes my program will be 100,000 bytes greater.
stanks |
|||
08 Nov 2004, 18:37 |
|
Matrix 08 Nov 2004, 18:52
you can only reserve bytes at the end of your file if you db 1 bytes after rb 100000 then all of your rb's will be db s
|
|||
08 Nov 2004, 18:52 |
|
stanks 08 Nov 2004, 19:14
I don't understand you Matrix. Can you give me an example?
Thanks stanks |
|||
08 Nov 2004, 19:14 |
|
Matrix 08 Nov 2004, 19:30
sure
compile this: Code: org 100h ;COM file rb 10 db 'some data' x rb 65000 ;buffer: times 1 db 9 now try to uncomment the 1 byte buffer with initial value of 9 ohh, my file growed large! its because you declared a byte after a reserved block |
|||
08 Nov 2004, 19:30 |
|
stanks 08 Nov 2004, 20:16
Thanks
It works, but it doesn't work under gtk (linux). File is still 65000 bytes larger stanks |
|||
08 Nov 2004, 20:16 |
|
Matrix 08 Nov 2004, 20:31
linux version declares reserved bytes in your com file?
|
|||
08 Nov 2004, 20:31 |
|
stanks 08 Nov 2004, 20:36
Yes i simply compile your example. When last line is commented file is 19 bytes and when i uncomment it, it is 65020 bytes. And i put all reserved bytes after db's, but no change.
stanks |
|||
08 Nov 2004, 20:36 |
|
stanks 08 Nov 2004, 20:37
Heh. Problem solved. Thank you very much Matrix. I put rb's in wrong section.
Thanks once again stanks |
|||
08 Nov 2004, 20:37 |
|
stanks 08 Nov 2004, 20:38
Until i find another (better) solution this is ok.
stanks |
|||
08 Nov 2004, 20:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.