shave two more bytes

This commit is contained in:
Peter Ferrie 2021-11-05 11:22:45 -07:00
parent 3cb4b9743f
commit 69085d0674
2 changed files with 5 additions and 4 deletions

Binary file not shown.

View file

@ -103,7 +103,8 @@ GetObject: # called just after GetToken
push %di # save 1 push %di # save 1
1: cmpsb 1: cmpsb
jne 2f jne 2f
cmp -1(%di),%al dec %di
scasb
jne 1b jne 1b
jmp 4f jmp 4f
2: pop %si # drop 1 2: pop %si # drop 1
@ -112,9 +113,9 @@ GetObject: # called just after GetToken
cmp (%di),%al cmp (%di),%al
jne 0b jne 0b
push %di # StpCpy push %di # StpCpy
3: lodsb 3: movsb
stosb dec %di
test %al,%al scasb
jnz 3b jnz 3b
4: pop %ax # restore 1 4: pop %ax # restore 1
add $-g_str,%ax # stc add $-g_str,%ax # stc