Thoughts on Rails

Riding the Train of Thought

Pointers in SmaCKEm – Python

leave a comment »

This morning, after pulling an all-nighter, while in a very very sleepy condition (I was actually closing my eyes and sitting still in between bursts of small coding sessions!) I wrote a small hack for SMaCKEm – Python implementation… use of pointers 😀

01 10201
02 2101
03 7102
04 1102
05 -2101
06 2102
07 1101
08 301
09 2101
10 1102
11 4010
12 6201
13 53
15 9

The above program lets you input a program – LIVE – loads it up begining from a specific address (201) and then, after you enter a HALT statement (9), program execution automatically jumps to YOUR NEW PROGRAM!!

X) 15 instructions of total fun!!

But for it to work properly, you have to enable the hack mode..

$ python -e -f

The Python Source Code is available on



Written by hiway

July 26, 2004 at 5:34 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: