brainfuck interpreter
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm
brainfuck interpreter
hello, thanks for reading my topic. i am writing a brainfuck interpreter for my os. Actually it is very easy but i'm having problems with loops:
[ Jump forward past the matching ] if the byte at the pointer is zero.
] Jump backward to the matching [ unless the byte at the pointer is zero.
Do you have any idea about how can i code those instructions?
thanks
[ Jump forward past the matching ] if the byte at the pointer is zero.
] Jump backward to the matching [ unless the byte at the pointer is zero.
Do you have any idea about how can i code those instructions?
thanks
MatÃas Beretta
-
- Member
- Posts: 368
- Joined: Sun Sep 23, 2007 4:52 am
You can take a look at DexOS's brainfuck interpeter, if you want.
- Attachments
-
- BFI v1.0.zip
- (54.66 KiB) Downloaded 103 times
Last edited by Dex on Mon Dec 31, 2007 11:37 am, edited 1 time in total.
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm
lol
for any reason Firefox didn't show it me the first time i visited the topic. thanks..
MatÃas Beretta
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm