I am having trouble with implementing a brainfuck assembler for codegolf.se. I managed to load a string in to memory find its length cat it out, print strings n times etc, but I cant seem to load just the non lower case numbers into memory. So lets take the following loop which performs some wizardry. (Hash marks are debugging markers.)
#,#[>#<[<]<<#+#>>>[>]#,#]<[<]
It starts at pointer 512 and writes the string as ascii values to spots after 512
Now if (for whatever reason) I wish to strip out lowercase characters, it will look like this in psuedo BF.
#,#[>#<[<]<<#+#>>>[>]#do{,(takes input and assigns it)}
while(input>=96/*Go arbitrarily to the right for this implementation but
make sure that the first non-lowercase number is stored at the index*/)#
//Also be sure to zero out any temporary cells used
<[<]
Now my question is, how do I implement such a while loop while only using spaces to the right of 512 as storage AND clearing them out later.
For those curious, this is the problem I wish to solve in branfuck.