From: Robert Pengelly Date: Tue, 24 Sep 2024 16:13:22 +0000 (+0100) Subject: Bug fixes X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=f427adea07a78e4818e5319ef55f57a064a85f3f;p=chimaera.git Bug fixes --- diff --git a/build/chimaera.img b/build/chimaera.img index 9b33336..ee94743 100644 Binary files a/build/chimaera.img and b/build/chimaera.img differ diff --git a/build/chimaera.vhd b/build/chimaera.vhd index d5b0b48..f07d833 100644 Binary files a/build/chimaera.vhd and b/build/chimaera.vhd differ diff --git a/src/apps/pcomm/path.asm b/src/apps/pcomm/path.asm index ff43d04..f540a52 100644 --- a/src/apps/pcomm/path.asm +++ b/src/apps/pcomm/path.asm @@ -54,6 +54,18 @@ _handler_path.find: mov es, cx mov ds, ax + push es + push di + + mov di, offset _temp + xor al, al + + mov cx, 255 + rep stosb + + pop di + pop es + xor ax, ax push ax @@ -95,12 +107,14 @@ _handler_path.find: _handler_path.print: - pop ax + pop si pop es - mov ds, ax - + mov es, si xor bx, bx + + mov ax, es:[bx] + mov ds, ax call _writestr mov al, '=' @@ -112,24 +126,17 @@ _handler_path.print: jz _handler_path.no_value mov ds, ax - - xor bx, bx call _writestr _handler_path.no_value: - pop ds - pop es - add di, 2 - mov al, HEX (0D) call _writechr mov al, HEX (0A) call _writechr - dec cx - jz _handler_path.done + jmp _handler_path.done _handler_path.copy: @@ -197,6 +204,18 @@ _handler_path.find2: mov es, cx mov ds, ax + push es + push di + + mov di, offset _temp + xor al, al + + mov cx, 255 + rep stosb + + pop di + pop es + xor ax, ax push ax diff --git a/src/apps/pcomm/pcomm.asm b/src/apps/pcomm/pcomm.asm index 8a41be4..9a59251 100644 --- a/src/apps/pcomm/pcomm.asm +++ b/src/apps/pcomm/pcomm.asm @@ -1558,8 +1558,6 @@ _get_env: push di push es - xor ax, ax - mov si, cs:[_vec_env] mov cx, cs:[_vec_env + 4] @@ -1588,6 +1586,18 @@ _get_env: mov es, cx mov ds, ax + push es + push di + + mov di, offset _temp + xor al, al + + mov cx, 255 + rep stosb + + pop di + pop es + xor ax, ax push ax diff --git a/src/apps/pcomm/set.asm b/src/apps/pcomm/set.asm index 2c19553..ff64a39 100644 --- a/src/apps/pcomm/set.asm +++ b/src/apps/pcomm/set.asm @@ -167,6 +167,18 @@ _handler_set.find: mov es, cx mov ds, ax + push es + push di + + mov di, offset _temp + xor al, al + + mov cx, 255 + rep stosb + + pop di + pop es + xor ax, ax push ax diff --git a/src/utils/dosfstools b/src/utils/dosfstools index 2b218a0..fa2dcb9 160000 --- a/src/utils/dosfstools +++ b/src/utils/dosfstools @@ -1 +1 @@ -Subproject commit 2b218a0bd719edc90f0e6168b8c55c909ee67703 +Subproject commit fa2dcb9d35aed13af6c0c90fe794465ed4f02eeb