nesdev.com
http://forums.nesdev.com/

Memory issue when extracting level data
http://forums.nesdev.com/viewtopic.php?f=2&t=15375
Page 2 of 2

Author:  rainwarrior [ Thu Jan 19, 2017 2:12 pm ]
Post subject:  Re: Memory issue when extracting level data

tokumaru wrote:
you can jump to the middle of the loop when starting the transfer

One C implemetation of such a thing became known as Duff's Device.

Author:  DRW [ Thu Jan 19, 2017 4:52 pm ]
Post subject:  Re: Memory issue when extracting level data

I guess I'm fine so far with a non-unrolled loop. Especially since most of my updates can have an arbitrary size.

Author:  tepples [ Thu Jan 19, 2017 5:19 pm ]
Post subject:  Re: Memory issue when extracting level data

I expect to have a framework containing Duff's device ready by the end of January.

Author:  tokumaru [ Thu Jan 19, 2017 5:56 pm ]
Post subject:  Re: Memory issue when extracting level data

Unrolled transfers can do arbitrarily sized transfers just fine, you just have to jump to the correct spot inside the loop. But if the rolled version is enough to transfer all you need, that's fine.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/