Change bold code snippets to inline code blocks
This commit is contained in:
parent
f658bfbb40
commit
3c76d884ef
185 changed files with 1772 additions and 1772 deletions
4
16-08.md
4
16-08.md
|
|
@ -29,7 +29,7 @@ ScanLoop:
|
|||
```
|
||||
|
||||
John later divides the transition count by two to get the word count.
|
||||
(Food for thought: It's also possible to use **CMP** and **ADC** to
|
||||
(Food for thought: It's also possible to use `CMP` and `ADC` to
|
||||
detect words without branching.)
|
||||
|
||||
John's approach makes it clear that word-counting is nothing more than a
|
||||
|
|
@ -121,7 +121,7 @@ ASCII here, so the high bit is ignored.) Thus, David is able to add the
|
|||
word/not status for each pair of bytes to the main word count simply by
|
||||
getting the two bytes, working in the carry status from the last byte,
|
||||
and using the resulting value to index into the 64K table, adding in the
|
||||
1 or 0 value found in that table. A sequence of **MOV/ADC/ADD** suffices
|
||||
1 or 0 value found in that table. A sequence of `MOV/ADC/ADD` suffices
|
||||
to perform all word-counting tasks for a pair of bytes. Three
|
||||
instructions, no branches—pretty nearly perfect code.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue