Bug fixes
authorRobert Pengelly <robertapengelly@hotmail.com>
Tue, 24 Sep 2024 01:45:14 +0000 (02:45 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Tue, 24 Sep 2024 01:45:14 +0000 (02:45 +0100)
build/chimaera.img
build/chimaera.vhd
src/apps/pcomm/pcomm.asm

index 3bee871bde57d30677390954a2766c212aa1c5bf..cecc6fbe65482fb2a656388639cc6a0181b057f2 100644 (file)
Binary files a/build/chimaera.img and b/build/chimaera.img differ
index a6a2267b4f72caa6fa67b0b04533f40015122c0c..126a746bcbafbca6d76b4745a184ccbb23931f72 100644 (file)
Binary files a/build/chimaera.vhd and b/build/chimaera.vhd differ
index a8bd36536739327d3033a0f0a6a71cf342abf33b..eda34b59a317e4d714c5bf4050c59c421ee667b8 100644 (file)
@@ -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
 
 ;******************************************************************************