Skip to content

Commit

Permalink
save four bytes in add_comspec_to_env
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed Aug 11, 2024
1 parent 281bf6c commit 941176a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions drbio/biosinit.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2059,17 +2059,13 @@ add_comspec_to_env proc
inc di ; DI points to free part of env
mov comspec_env_offset,di ; remember comspec offset
@@copy_comspec:
mov si,offset comspec
cmp di,offset envend - 8
jae @@err ; not much room enough to copy COMSPEC=
lodsw ; CO
stosw
lodsw ; MS
stosw
lodsw ; PE
stosw
lodsw ; C=
stosw
mov si,offset comspec
movsw
movsw
movsw
movsw
@@copy_shell:
mov si,offset shell
@@copy_next:
Expand Down

0 comments on commit 941176a

Please sign in to comment.