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
12
07-02.md
12
07-02.md
|
|
@ -13,13 +13,17 @@ pages: 139-141
|
|||
By the way, don't fall victim to the lures of **JCXZ** and do something
|
||||
like this:
|
||||
|
||||
and cx,ofh ;Isolate the desired field
|
||||
jcxz SkipLoop ;If field is 0, don't bother
|
||||
```nasm
|
||||
and cx,ofh ;Isolate the desired field
|
||||
jcxz SkipLoop ;If field is 0, don't bother
|
||||
```
|
||||
|
||||
The **AND** instruction has already set the Zero flag, so this
|
||||
|
||||
and cx,0fh ;Isolate the desired field
|
||||
jz SkipLoop ;If field is 0, don't bother
|
||||
```nasm
|
||||
and cx,0fh ;Isolate the desired field
|
||||
jz SkipLoop ;If field is 0, don't bother
|
||||
```
|
||||
|
||||
will do just fine and is faster on all processors. Use **JCXZ** only
|
||||
when the Zero flag isn't already set to reflect the status of CX.
|
||||
|
|
|
|||
Loading…
Reference in a new issue