Use backtick code blocks for syntax highlighting
This commit is contained in:
parent
8ed9dea394
commit
f658bfbb40
203 changed files with 26546 additions and 25801 deletions
14
58-03.md
14
58-03.md
|
|
@ -67,10 +67,11 @@ the ES: prefix (and, as we shall see, we can), we can rearrange the code
|
|||
to make it run faster on the Pentium. Without a prefix, the instructions
|
||||
execute as follows on the Pentium:
|
||||
|
||||
|
||||
MOV AH,[BX] ;cycle 1 U-pipe
|
||||
;cycle 1 V-pipe idle; reg contention
|
||||
MOV [DI],AH ;cycle 2 U-pipe
|
||||
```nasm
|
||||
MOV AH,[BX] ;cycle 1 U-pipe
|
||||
;cycle 1 V-pipe idle; reg contention
|
||||
MOV [DI],AH ;cycle 2 U-pipe
|
||||
```
|
||||
|
||||
The second **MOV**, being dependent on the value loaded into AH by the
|
||||
first **MOV**, can't execute until the first **MOV** is finished, so the
|
||||
|
|
@ -82,8 +83,9 @@ Advancing the destination pointer is easy to speed up: Just build the
|
|||
offset from one scanline to the next into each pixel-drawing instruction
|
||||
as a constant, as in
|
||||
|
||||
|
||||
MOV [EDI+SCANOFFSET],AH
|
||||
```nasm
|
||||
MOV [EDI+SCANOFFSET],AH
|
||||
```
|
||||
|
||||
and advance EDI only once per unrolled loop iteration.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue