In the name of God .

Hi every one . I have started to learn x86 assembly .

I am going to define array of 70000 bytes .
Which it gives me failure by using command below :

arr db 70000 dup(0)

-------------------------------
ASSEMBLER :< MASM >
OS :Windows
----------------------------
Should I Use ES Segment ?

Thanks in advance ..
Regards.

Depending upon the compiler, it will tell you how large these areas can be, but it's not good practice as it actually allocates that much space in your application much better to

arr     dd     0

and then use the appropriate API to allocate whatever space you need and then move the pointer to arr. As an example, for windows XP

push  70000
     push  LMEM_FIXED or LMEM_ZEROINIT
     call  LocalAlloc
     mov   arr, eax
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.