echo set PATH=A:\\DOS >> autoexec.bat
# echo '%PATH%\\temp.bat' >> autoexec.bat
# echo echo 123 >> temp.bat
-# echo 'echo %PATH% && echo 123' >> temp.bat
-# echo temp >> temp.bat
+# echo 'test && echo abc && test' >> temp.bat
+# echo test >> temp.bat
+# echo 'echo %PATH% && echo 123' >> test.bat
utils/dosfstools/mkdosfs --boot boot/freeldr/bootsect/fat12.bin --sectors 720 -F 12 -n "CHIMAERA OS" $@
utils/dosfstools/mmd -i $@ boot boot/freeldr
utils/dosfstools/mmd -i $@ dos
# utils/dosfstools/mcopy -i $@ temp.bat ::/dos/temp.bat
+# utils/dosfstools/mcopy -i $@ test.bat ::/dos/test.bat
# utils/dosfstools/mcopy -i $@ apps/hello/hello.com ::dos/hello.com
chimaera.vhd: all
.L124:
+ mov ax, [_scratch_list]
+
+ and ax, ax
+ jz .L127
+
+ push es
+ push bx
+
+ mov es, ax
+ xor bx, bx
+
+ mov ax, es:[bx + 4]
+ pop bx
+ pop es
+
+.L127:
+
+ push es
+ push bx
+ push ax
+
+ xor ax, ax
+ mov [_scratch_list], ax
+
mov ax, '&'
push ax
add sp, 4
and ax, ax
- jz .L120
+ jz .L128
mov di, ax
stosb
cmp byte ptr [di], '&'
- jne .L120
+ jne .L128
stosb
.L123:
- push es
- push bx
-
- mov ax, [_scratch_list]
-
- and ax, ax
- jz .L127
-
- push es
- push bx
-
- mov es, ax
- xor bx, bx
-
- mov ax, es:[bx + 4]
- pop bx
- pop es
-
-.L127:
-
- push ax
-
- xor ax, ax
- mov [_scratch_list], ax
-
push di
call _strlen
call _strcpy
add sp, 4
-
+
+.L128:
+
mov ax, [_scratch_list]
and ax, ax