Skip to content

Commit 630735e

Browse files
ecm-pushbxPerditionC
authored andcommitted
boot32: save another byte, use loop instruction
1 parent 3415ad9 commit 630735e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

boot/boot32.asm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ next_cluster:
236236
cn_loop:
237237
shr dx,1
238238
rcr ax,1
239-
dec cx
240-
jnz cn_loop ; DX:AX fat sector where our
239+
loop cn_loop ; DX:AX fat sector where our
241240
; cluster resides
242241
; DI - cluster index in this
243242
; sector

0 commit comments

Comments
 (0)