VOGONS


First post, by danib2000

User metadata
Rank Newbie
Rank
Newbie

so im building a text based adventure game for my project in assembly
as you can probably guess i need to create alot of string arrays, now i am afraid that at some point ill run out of memory. so how many chars can i create before i run out?

Reply 3 of 6, by BloodyCactus

User metadata
Rank Oldbie
Rank
Oldbie

segments. its the whole point of using them.

--/\-[ Stu : Bloody Cactus :: [ https://bloodycactus.com :: http://kråketær.com ]-/\--

Reply 4 of 6, by kjliew

User metadata
Rank Oldbie
Rank
Oldbie

You can use all the 640KB minus DOS overheads in assembly.

For 16-bit C 8086, you can compile for compact, large or huge memory model to use far pointers and multiple segment for code and data within 640KB DOS memory.
See https://en.wikipedia.org/wiki/Intel_Memory_Mo … l#Memory_models

To get more memory beyond 640KB DOS memory on 8086, you will need EMS programming. You can google for supported libraries for both C and ASM if you don't want to manage it your own.

Reply 5 of 6, by danib2000

User metadata
Rank Newbie
Rank
Newbie
kjliew wrote:
You can use all the 640KB minus DOS overheads in assembly. […]
Show full quote

You can use all the 640KB minus DOS overheads in assembly.

For 16-bit C 8086, you can compile for compact, large or huge memory model to use far pointers and multiple segment for code and data within 640KB DOS memory.
See https://en.wikipedia.org/wiki/Intel_Memory_Mo … l#Memory_models

To get more memory beyond 640KB DOS memory on 8086, you will need EMS programming. You can google for supported libraries for both C and ASM if you don't want to manage it your own.

Thanks, if ill be in need of extra memory ill do that.