From 264f544821167739e7bfc4465c3d7de9b5e83c5e Mon Sep 17 00:00:00 2001 From: Robert Pengelly Date: Tue, 24 Sep 2024 02:45:14 +0100 Subject: [PATCH] Bug fixes --- build/chimaera.img | Bin 368640 -> 368640 bytes build/chimaera.vhd | Bin 34120704 -> 34120704 bytes src/apps/pcomm/pcomm.asm | 39 ++++++++++++++++++++------------------- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/build/chimaera.img b/build/chimaera.img index 3bee871bde57d30677390954a2766c212aa1c5bf..cecc6fbe65482fb2a656388639cc6a0181b057f2 100644 GIT binary patch delta 746 zcmZoTAl7g|Y=Sxqlij458?_&E*3S{Oh_r}gU;xn!VBqBMAEE#O0uXVSJQG;nEy&f? z$0bN1I5JoPRi2e$z6}F|w`-7}tB(Q}c~OS0Fa`!^e_vlmKNkfct-v4%wisrCHp2z? z?H8FDlXxdd@cAM;4Pv#P9@Jq93TRG)I34CRpei(Z=FJPamNElP^+z_98LSPrsi+=y zc5_GbFbl(3pt*~gHz{asRN2X9<59}|l8ep88%PN=+xP;h8%#F-Kq{5ZCICpOZT7o( zl|^I!43%($13UjSd|tIXM=AJ)EmQLmmfbT{UfgFY3hBIOcwmjf0if!#$;Q{TSmc6V zT%VkHO~iVw-hYvo9KZJGD({G42&qF%GzLN&%BVUY6Oxyr#WL_q4n1_8M*Y878J zy?7Zvx$wFv^XHc}K-z?R=cku0KNa2rU1mFZ!*v5jp2-id%Q3#4bi-PtR2!&SzUM~Y zfo?aJfE{yG174_1_P=3j8Qb|&^J3%A{|v>!4K}K!-fj&x45h3aR9C%z2;`So?@(n3 z2zybl1@=fO)9ce<7lgfVo_yejBFn-hujfsEdc&P*hRS5Un?68lbIr|X%$%mC#zvaF fTnzs=Co%~#HP_s4uer|%#7scUyuIc=OUnTO34Q%B delta 812 zcmZoTAl7g|Y=Sz=_I-}OH)=oTtPc~gh_r}gU;xn!VBqBMAEE#O0uXVSJQG;nEy&f? z$0bN1I5JoPRi2e$z6}F|w`-7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Kg2olr)U=E#RYLu{3ZSt zEhc{c%uGzeEIfoocnUA!ZLZ|dZc4vi)4eQy K1NcvAqv=10Zh8p- diff --git a/src/apps/pcomm/pcomm.asm b/src/apps/pcomm/pcomm.asm index a8bd365..eda34b5 100644 --- a/src/apps/pcomm/pcomm.asm +++ b/src/apps/pcomm/pcomm.asm @@ -1175,6 +1175,22 @@ _main: .L21: + mov di, offset _formatted_command + push di + + xor al, al + + mov cx, 255 + rep stosb + + mov bx, offset _scratch + push bx + + call _expand_vars + add sp, 4 + + mov bx, offset _formatted_command + call _get_command jc .L23 @@ -1251,24 +1267,9 @@ _main: .L32: - mov di, offset _formatted_command - push di - - xor al, al - - mov cx, 255 - rep stosb - - push bx - - call _expand_vars - add sp, 4 - lodsw - mov bx, offset _formatted_command call cs:[si] - jmp .L5 .L23: @@ -1706,8 +1707,8 @@ _expand_vars: and ax, ax jnz .L88 - mov al, '%' - stosb + ;mov al, '%' + ;stosb jmp .L87 @@ -1844,7 +1845,7 @@ _get_command: push dx mov word ptr [bp - 2], 0 - mov si, offset _scratch + mov si, offset _formatted_command _get_command.loop: @@ -1915,7 +1916,7 @@ _get_command.done: _get_command.ret: - mov bx, offset _scratch + mov bx, offset _formatted_command ret ;****************************************************************************** -- 2.34.1