View Single Post
Old 26 January 2020, 14:40   #1
Registered User

Join Date: Aug 2019
Location: uk
Posts: 15
Whats the best way to allocate bitplane memory?

To allocate memory for a bitmap I always used to do the following

section code,code_c
    lea bitplane,a0

section plane,data_c
    ds.b (320*256)/8
Which seems to work ok. But the problem with that method is increased file size and loading times when testing.

So I have switched to using the allocmem library which solves this.

But now Im wondering is there a "section" I can put in assembler that would allocate the memory when the program loads automatically? This would be ideal as it saves me handling of memory allocation.
mydma is offline  
Page generated in 0.04707 seconds with 11 queries