Giter Club home page Giter Club logo

aqarm's Introduction

What/Why

A-Level computer science covers a variety of topics, one of which involves some basic low-level programming - the ARM instruction set that needs to be known for exams is a reduced version released by AQA (the examination board) but no interpreter is provided. There are a few other programs that achieve similar effects to this (namely two versions of interpreters from Peter Higginson that can be found here & here and another that is available here). The main issue I've had with these tools is that some (not all) of them have excessive UIs that show information that isn't needed or contextually relevant for the A-Level syllabus and some also don't follow the AQA ARM instruction set accurately (additional instructions are added that would otherwise be unavailable in an exam).

How

The interpreter itself is very basic and the hardest part of developing this program was designing it so that the modular nature of the codebase would allow simple addition of the AQA Arm instruction set. The instruction set from AQA can be found here, AQArm follows the instruction set to the best of its ability and I am not aware of any deviation from the exam specification - comments, labels, branches, and all of the listed opcodes are supported.

UI

The text area above the code area is a 'command line' (in the loosest sense due to its simplicity) which is used to setup the 'application' memory before running the user-provided code (useful in instances where a question specifies that values are stored in memory locations before execution) using the command SETMEM/XXXX/YYYY XXXX refers to the memory address having a value written to it and YYYY refers to the value being assigned to the memory address. The right half of the window shows the registers after execution (0 through 12) but it does not currently show carry/comparison data nor the memory space/data belonging to the interpreted process instance.

Examples

Question 7.1 in the November 2020 AS paper involves implementing a caesar cipher, all three solutions are able to be run without modification using AQArm.

Compiling

This project was developed using Qt's framework for UI development. In order to compile the project you should be able to open the .pro file in Qt Creator or by loading the full project as a directory via the Qt Creator user-interface.

aqarm's People

Contributors

michaellrowley avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

gmh5225

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.