Programming using memory runtime error

Joined
Feb 26, 2023
Messages
1
Reaction score
0
i have the problem, that if i get memory than i get
a pointer somewhere, but if i write values to the
followings segm:00 and segm:01, there will be a runtime
error. how i can get more than 65 kByte?
 
Joined
Jun 29, 2022
Messages
28
Reaction score
0
You appear to be encountering a restriction with a 16-bit machine, which can only access up to 64 kilobytes of memory. To gain more than 65 kByte, upgrade to a 32-bit or 64-bit machine that can handle bigger amounts of memory.

If you're using a contemporary operating system, it will most likely manage memory for you, and you may request RAM as needed using dynamic memory allocation routines. To dynamically allocate memory on the heap in C/C++, use methods like malloc() or new.

If you're dealing with embedded systems or older hardware that lacks a memory management unit, you may need to manage memory manually and utilize techniques like memory paging or bank switching to access greater amounts of memory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top