From: karim hamidou Date: Tue, 8 Jul 2014 07:26:45 +0000 (+0200) Subject: fixed link X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=60028f4ee8f65804577de76b2cb1720c6590df20;p=debuggers.git fixed link --- diff --git "a/_posts/2014-07-08-Marc-Andr\303\251-Cournoyer.markdown" "b/_posts/2014-07-08-Marc-Andr\303\251-Cournoyer.markdown" index 05074d7..909b61f 100644 --- "a/_posts/2014-07-08-Marc-Andr\303\251-Cournoyer.markdown" +++ "b/_posts/2014-07-08-Marc-Andr\303\251-Cournoyer.markdown" @@ -27,7 +27,7 @@ However, some of those instructions also play with the `pc`. One in particular i Here's the bug. Remember from earlier, I was incrementing the `pc` right after executing an instruction. That means each time an `if` was executed the VM would jump to a memory address **+ 2**. Two bytes too far. -The solution was to increment the `pc` before executing the instruction: https://github.com/greatcodeclub/chip8/blob/master/vm.js#L37. +The solution was to increment the `pc` before executing the instruction: [https://github.com/greatcodeclub/chip8/blob/master/vm.js#L37](https://github.com/greatcodeclub/chip8/blob/master/vm.js#L37). # Anything else to add?