flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Linux > Interactive fasm, or howto cat /dev/stdin with fasm

Author
Thread Post new topic Reply to topic
MCD



Joined: 21 Aug 2004
Posts: 604
Location: Germany

Interactive fasm, or howto cat /dev/stdin with fasm

Hi

I'm very busy so I'm just dropping by to tell this funny discovery.

I'm not sure if this is known yet, but at least in UN*X-like environments, you can make programs with fasm which assemble interactively. See this little example:

Code:

result0

virtual      at 0
  while result <> 'q'
    file       '/dev/stdin',1
    load    result byte     from %-1
  end while
  display    0xA,'you entered:',0xA
  repeat $
    load  part byte       from %-1
    display part
  end repeat
end virtual
display  0xA,'quitting interactive world!',0xA




This will display as assembler messages the text you enter.

Now, who builds the first text, hex, ram or disk editor with fasm? Wink

_________________
MCD - the inevitable return of the Mad Computer Doggy

-||__/
.|+-~
.|| ||
Post 25 Oct 2007, 17:21
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4634
Location: Argentina

You can do this on Windows too replacing '/dev/stdin' with 'CON' if you use the console version of fasm.
Post 25 Oct 2007, 19:48
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7109
Location: Slovakia

haha Very Happy
Post 25 Oct 2007, 20:26
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number 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


Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2018, Tomasz Grysztar.
Powered by rwasa.