Skip to content

Commit

Permalink
mbr_ho.bin: Fix stack bug; also save/restore cx in another location
Browse files Browse the repository at this point in the history
  • Loading branch information
geneC committed Mar 10, 2011
1 parent 2962724 commit 4826c99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mbr/mbr_ho.S
Expand Up @@ -298,15 +298,17 @@ wrhexb:
call wrhexn
popw %ax
call wrhexn
pushw %cx
popw %cx
ret

wrhexw:
pushw %cx
movb $8, %cl
rorw %cl, %dx
call wrhexb
rorw %cl, %dx
call wrhexb
popw %cx
ret

ASCII_MARKER1 "HE"
Expand Down

0 comments on commit 4826c99

Please sign in to comment.