Hello! I studied Computer Science, and live in Bath. I write code, design games, and occasionally tweet.
Hello! I studied Computer Science, and live in Bath. I write code, design games, and occasionally tweet.

Posts from 2011

Talking about New Zealand Nov. 10, 2011 in New zealand, Text, Travel

Hello, I am here to talk about my trip to New Zealand and my experiences visiting the country. I chose New Zealand as I have visited it many times and I feel that it would be interesting to discus.

Aerial Photo

Continue Reading...

Piracy in the Indian Ocean Nov. 3, 2011 in Geography, Text

The coastline around the country of Somalia is full of people committing acts of piracy and holding people hostage for a ransom. These are not pirates like you see in films but rather 20-35 year old Somalians with speedboats, GPS and modern guns. They attack cruise liners, oil tankers, fishing vessels and any other boat which they think they are capable of capturing. I am going to attempt to look for the reasons why high levels of piracy are taking place in the area and then why it is such a problem for people who need to travel or transport good by sea. To start will research Somalia then other aspects to work out why pirates have been such a problem in the Indian Ocean.

I believe that the reason pirates have been such a problem is because Somalia is a failed state and consequently very poor, turning people with boats into pirates due to the money involved.

Continue Reading...

Erosion at Hengistbury Head Sep. 19, 2011 in Geography, Photos, Text

Walking along Hengistbury Head

Hengistbury Head

Continue Reading...

The Little Man Computer Apr. 12, 2011 in Simulations, Text, Vb.net

The Little Man Computer (LMC) is an instructional model of a computer, created by Dr. Stuart Madnick in 1965. The LMC is generally used to teach students, because it models a simple von Neumann architecture computer - which has all of the basic features of a modern computer. It can be programmed in machine (albeit usually in decimal) or assembly code.

Screenshot of the Program

For reference, here is some example code that takes numbers as input, and squares the result. Credit Wikipedia.

START   LDA ZERO     // Initialize for multiple program run
        STA RESULT
        STA COUNT
        INP          // User provided input
        BRZ END      // Branch to program END if input = 0
        STA VALUE    // Store input as VALUE
LOOP    LDA RESULT   // Load the RESULT
        ADD VALUE    // Add VALUE, the user provided input, to RESULT
        STA RESULT   // Store the new RESULT
        LDA COUNT    // Load the COUNT
        ADD ONE      // Add ONE to the COUNT
        STA COUNT    // Store the new COUNT
        SUB VALUE    // Subtract the user provided input VALUE from COUNT
        BRZ ENDLOOP  // If zero (VALUE has been added to RESULT by VALUE times), branch to ENDLOOP
        BRA LOOP     // Branch to LOOP to continue adding VALUE to RESULT
ENDLOOP LDA RESULT   // Load RESULT
        OUT          // Output RESULT
        BRA START    // Branch to the START to initialize and get another input VALUE
END     HLT          // HALT - a zero was entered so done!
RESULT  DAT          // Computed result (defaults to 0)
COUNT   DAT          // Counter (defaults to 0)
ONE     DAT 1        // Constant, value of 1
VALUE   DAT          // User provided input, the value to be squared (defaults to 0)
ZERO    DAT          // Constant, value of 0 (defaults to 0)

In the absence of any Windows desktop emulator, I created my own in .NET and here it is. View and download on GitHub.

Visiting Club Med Mar. 20, 2011 in Italy, Photos, Travel

Small Lizard Footprints in the Sand