# HG changeset patch # User Steve Losh # Date 1483362761 0 # Node ID 963a991b4e631def9991d55d7072a04817a180c3 # Parent e7a83e2baf5277cf40d220d43602c112247e7e17 Words diff -r e7a83e2baf52 -r 963a991b4e63 content/blog/2016/12/chip8-cpu.markdown --- a/content/blog/2016/12/chip8-cpu.markdown Mon Jan 02 12:56:19 2017 +0000 +++ b/content/blog/2016/12/chip8-cpu.markdown Mon Jan 02 13:12:41 2017 +0000 @@ -111,7 +111,6 @@ The CHIP-8 has sixteen main registers, as well as a few other special ones: - ```lisp (defstruct chip ; ... @@ -133,7 +132,7 @@ * With low `safety` and high `speed` declarations, SBCL can generate much faster code if it knows the types of the struct slots. -To make the integer types a bit less wordy I've defined a few simple synonyms: +To make the integer types a bit less wordy I've defined some simple synonyms: ```lisp (deftype int4 () '(unsigned-byte 4)) @@ -1110,10 +1109,9 @@ (zapf (register destination) (logxor % (register source)))) ``` -This works, but aside from the name and the operation they're all completely -identical. The next few groups of instructions are also going to be mostly -similar, so let's step back for a moment and see if we can abstract away the -tedium. +This works, but aside from the name and the operation they're all identical. +The next few groups of instructions are also going to be similar, so let's step +back for a moment and see if we can abstract away the tedium. ### Macro-Map @@ -1253,7 +1251,7 @@ We haven't talked about the timers yet, so don't worry about them. I'm leaving them in so you can see how nice the `macro-map` is when you need to define lots -of very similar operations at once. +of similar operations at once. There are two other more interesting `LD` instructions which move data between multiple registers and memory. diff -r e7a83e2baf52 -r 963a991b4e63 content/blog/2017/01/chip8-debugging-infrastructure.markdown --- a/content/blog/2017/01/chip8-debugging-infrastructure.markdown Mon Jan 02 12:56:19 2017 +0000 +++ b/content/blog/2017/01/chip8-debugging-infrastructure.markdown Mon Jan 02 13:12:41 2017 +0000 @@ -1,7 +1,7 @@ +++ title = "CHIP-8 in Common Lisp: Debugging Infrastructure" snip = "What's happening inside this computer?" -date = 2016-12-31T18:50:00Z +date = 2017-01-03T18:50:00Z draft = true +++ diff -r e7a83e2baf52 -r 963a991b4e63 content/blog/2017/01/chip8-disassembly.markdown --- a/content/blog/2017/01/chip8-disassembly.markdown Mon Jan 02 12:56:19 2017 +0000 +++ b/content/blog/2017/01/chip8-disassembly.markdown Mon Jan 02 13:12:41 2017 +0000 @@ -1,7 +1,7 @@ +++ title = "CHIP-8 in Common Lisp: Disassembly" snip = "What's in a ROM?" -date = 2016-12-31T14:50:00Z +date = 2017-01-02T14:50:00Z draft = true +++