commit dcdf266cdd330ba85abcc3a814fd0e5ed24555a7 Author: Garritt McCune Date: Thu May 9 20:31:43 2024 -0500 Initial commit and setup. 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