Talk:BF machine

From Esolang
Jump to navigation Jump to search

If you want to add a screen (or any other hardware) to a Brainfuck machine, virtual or not, wouldn't it be easier to just memory-map it to some (9600 in this case) bytes on the tape? That way, you would not need weird cell behaviour and you wouldn't need to change the language.
--Marinus 00:48, 19 August 2007 (UTC)

Good idea, but perhaps it could be every second cell, like 1st (0th being the first), 3rd, 5th, 7th, and so forth, to make moving in the screen memory part easier, otherwise the only way is pretty much something that moves stuff right in order to get to the pixel/cell that's wanted to be changed and then back left afterwards -- and that wouldn't look so good on the screen when everything moves slightly for a while when one pixel is to be changed. :) --Keymaker 09:57, 19 August 2007 (UTC)
As it's impossible to instantly copy a block of memory in Brainfuck, that's probably the best way to do it. It would complicate the implementation somewhat, though. --Marinus 23:07, 19 August 2007 (UTC)