Make sure we don't exceed 255 characters when copying environment variables
authorRobert Pengelly <robertapengelly@hotmail.com>
Tue, 24 Sep 2024 01:51:21 +0000 (02:51 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Tue, 24 Sep 2024 01:51:21 +0000 (02:51 +0100)
build/chimaera.img
build/chimaera.vhd
src/apps/pcomm/pcomm.asm

index cecc6fbe65482fb2a656388639cc6a0181b057f2..698dc9084c4ecde55c480e04c604c6225a0b25ac 100644 (file)
Binary files a/build/chimaera.img and b/build/chimaera.img differ
index 126a746bcbafbca6d76b4745a184ccbb23931f72..39e436ee49d743b7b9153e2bc2d191fd65dd2337 100644 (file)
Binary files a/build/chimaera.vhd and b/build/chimaera.vhd differ
index eda34b59a317e4d714c5bf4050c59c421ee667b8..d2baea88ff69f8fef8a467b4acb3db336fa70025 100644 (file)
@@ -1736,6 +1736,12 @@ _expand_vars:
 
 .L94:
 
+    mov     cx,     di
+    sub     cx,     dx
+    
+    cmp     cx,     255
+    jae     .L84
+    
     lodsb
     
     and     al,     al