view ibin/bf16 @ 2860:732dad497525

<Jafet> echo \'int main(void) {asm("xor %eax, %eax;""mov %eax, %edx;""inc %eax;""mov %eax, %edi;""call x;"".ascii \\"Hello, world!\\\\n\\";""x: pop %esi;""mov $14, %dl;""syscall;""mov $60, %al;""xor %edi, %edi;""syscall;");}\' >hi.c && gcc hi.c -o hi && ./hi
author HackBot
date Sun, 05 May 2013 16:02:03 +0000
parents 33a6019d8e99
children 77ae80f1894d
line wrap: on
line source

#!/bin/sh
. lib/interp

# Get the bitwidth from the command
BW=`echo "$CMD" | sed 's/bf//'`
if [ "$BW" = "" ] ; then BW=8 ; fi

interp_file ./interps/egobf/src/egobfi$BW