-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Lines 67 to 72 in 118da7a
| .readword: | |
| in ax, dx | |
| mov [ds:di], ax | |
| add di, 2 | |
| or ah, 0x00 | |
| jnz .readword |
只判断ah是否为0x00,这样的判定条件是否存在问题?以本例使用的data.asm为例,该字符串总长为32字节,每次读2字节,读到字符串结尾后,再进行一次读写,0x00应该位于al中,此时并没有结束读取的循环。是否应该对al和ah都进行为0的判断?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels