pouët.net

Amiga OCS/ECS demos that work without extra memory (only 512kb chip)

category: offtopic [glöplog]
I suspect he means real fastmem. Every trackmo I've just tried (Desert Dream, Hardwired, etc) required a total of 1 meg, including all those I made myself. Blame the musicians for wanting too much chip ram for samples :P

Quote:
And most of them use horribly bad approaches to detect extra memory (mirror tricks etc.)! :D


Horrible Hacks FTW! :)

Personally I ask the OS what type of memory certain fixed addresses are - if I get a none error response I've found the memory - don't shoot me! :P (I promise to look into doing it properly at some point before my next release, lol)
added on the 2013-04-17 16:30:46 by Paradroid Paradroid
Quote:
Personally I ask the OS what type of memory certain fixed addresses are


That's fine but you certainly can't know all the memory locations of all hardware configs so this approach is bound to fail on certain machines and personally I hate screens like "You don't have any extra memory, lamer!" on a 128 MB A4000. :D

Extra chip is easy to detect, just read Exec's "MaxLocMem" value, if it's > $80000 the machine has 1MB chip. For fast memory I'd just use AvailMem() with MEMF_FAST parameter, if that call succeeds you can be sure there is fast memory in the machine. You can then alloc/align it etc. All this works fine from the bootblock so there really are no dirty hacks needed. :)
added on the 2013-04-17 16:46:07 by StingRay StingRay

login