flat assembler
Message board for the users of flat assembler.

Index > High Level Languages > brainfuck, Ook and asm

Author
Thread Post new topic Reply to topic
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
Code:
> == inc si

< == dec si

+ == inc byte[si]

- == dec byte[si]

. == mov ah,0
       int 16h  
       mov [si],al

, == mov al,[si]
       mov ah,9 
       mov bl,70h
       int 10h

[ == @@:

] == cmp byte[si],0
        jne @b       
    


the current compiler for brainfuck fits in 171 bytes, can we make better?
Post 21 Dec 2007, 06:14
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17281
Location: In your JS exploiting you and your system
revolution
edfed wrote:
Code:
[ == @@:    
I thought that the brackets were allowed to be nested!
Post 21 Dec 2007, 07:21
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
yes, of course, but how to make nested @@: ?
@@:
@@@:
@@@@:
@@@@@:
@@@@@@:
???
Post 21 Dec 2007, 07:38
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Post 25 Jan 2008, 07:42
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.