From dcdf266cdd330ba85abcc3a814fd0e5ed24555a7 Mon Sep 17 00:00:00 2001 From: Garritt McCune Date: Thu, 9 May 2024 20:31:43 -0500 Subject: [PATCH] Initial commit and setup. --- .gitignore | 6 ++++++ chapter 1.tex | 2 ++ document.tex | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100644 chapter 1.tex create mode 100644 document.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed395e5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.aux +*.log +*.out +*.gz +*.pdf +*.toc diff --git a/chapter 1.tex b/chapter 1.tex new file mode 100644 index 0000000..8bcc1bc --- /dev/null +++ b/chapter 1.tex @@ -0,0 +1,2 @@ +\chapter{Overview} +This is an attempt to distill what I know about how computers work into some kind of emulator / simulator. I'm curious to see if what I know at the moment is enough to allow me to emulate a general purpose computer. \ No newline at end of file diff --git a/document.tex b/document.tex new file mode 100644 index 0000000..8f55ea2 --- /dev/null +++ b/document.tex @@ -0,0 +1,26 @@ +\documentclass[a4paper,12pt]{book} +\usepackage{tikz} +\usepackage{hyperref} +\hypersetup{ + linktoc=all +} + +\begin{document} + \title{Unnamed Machine} + \author{An attempt to understand the makings of a computer arch} + \maketitle + + \tableofcontents + \include{chapter 1} + +\end{document} + +\newcommand{\OpcodeTable}[5] { + \begin{tabular}{ c c c c c } + \hline + Opcode & Bit Pattern & Mnemonic & Operand 1 & Operand 2 \\ + \hline\hline + #1 & #2 & #3 & #4 & #5 \\ + \hline + \end{tabular} +} \ No newline at end of file