View Single Post
Old 01 October 2011, 05:54   #10
Minuous
Coder/webmaster/gamer
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 1,991
Quote:
Originally Posted by pmc View Post
Personally, I don't really allocate memory at all. Instead, I just ask the assembler to reserve memory in my code for my use.

For example, if I wanted to have space for a standard 320*256 bitplane I would usually do something like:

Code:
bitplane:           dcb.b               10240,0
Then, at run time, I can just use this space as bitplane data.
Wouldn't this be better as ds.b? Won't dcb.b bloat the size of the executable?
Minuous is offline  
 
Page generated in 0.04175 seconds with 11 queries