I hereby claim:
- I am jiggins on github.
- I am jiggins (https://keybase.io/jiggins) on keybase.
- I have a public key ASAsAXhstqA3_IKNWlKgKN5lSkzeWGgVuAYWGu6hB_U27Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| \documentclass[11pt,A4paper,]{article} | |
| \usepackage{amssymb,amsmath} | |
| \usepackage{ifxetex,ifluatex} | |
| \usepackage{fixltx2e} % provides \textsubscript | |
| \usepackage{graphicx} | |
| \begin{document} | |
| \begin{titlepage} |
| module Maybe where | |
| import Prelude hiding (Maybe (..)) | |
| -- Take a look at Hackage: Data.Maybe | |
| -- https://hackage.haskell.org/package/base-4.8.1.0/docs/Data-Maybe.html | |
| data Maybe a = Nothing | |
| | Just a |
| #! /bin/bash | |
| # For one line installation, use the command in the comment on the next line | |
| # bash <(curl https://gist.githubusercontent.com/Jiggins/081007c09d96afbc12bf/raw/9a6132f4c5459e332bf53fc897d76163e5585d75/git-setup.sh) | |
| echo -n "Enter your name: " | |
| read -e NAME | |
| echo -n "Enter your Student Number: " | |
| read -e STUDENT_NUMBER |
| require 'pp' | |
| # https://gist.github.com/awesome/3842062 | |
| def dirHash(path) | |
| Dir["#{path}/**/*"].inject({}) {|h,i| t = h; i.split("/").each {|n| t[n] ||= {}; t = t[n]}; h} | |
| end | |
| # https://gist.github.com/henrik/146844 | |
| def deep_diff(a,b) | |
| (a.keys | b.keys).inject({}) do |diff, k| |
Ok so for this part you need to count the number of cycles this program will execute. Each comment will tell you how many
cycles each instruction takes. E.g. It takes 4 clock cycles to run mov bx, 100. On the jump instructions, you will see
something like '16 backward 4 forward', this means if the jump instruction jumps back, it will yake 16 cycles, if it doesn't
jump, it will take 4.
In this example, when cx > 0, jnz back1 will take 16 cycles. But when cx == 0, it will take 4 cycles.