From 3b02c3dfa26745f2ea178600b840a34cec4d649b Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 21 Jun 2020 17:31:38 -0700 Subject: 6572 Small change to mu.subx to keep the treeshaker working with it. That's currently the only place where we prevent jumps across 'functions'. --- apps/mu.subx | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) (limited to 'apps/mu.subx') diff --git a/apps/mu.subx b/apps/mu.subx index e2628d99..fd5bb573 100644 --- a/apps/mu.subx +++ b/apps/mu.subx @@ -7991,12 +7991,42 @@ Mu-registers: # (addr stream {(handle array byte), int}) 0x48/imm32/length # data # it is perfectly ok to use fake alloc-ids -- as long as you never try to reclaim them - 0x11/imm32/alloc-id $Register-eax/imm32 0/imm32 - 0x11/imm32/alloc-id $Register-ecx/imm32 1/imm32 - 0x11/imm32/alloc-id $Register-edx/imm32 2/imm32 - 0x11/imm32/alloc-id $Register-ebx/imm32 3/imm32 - 0x11/imm32/alloc-id $Register-esi/imm32 6/imm32 - 0x11/imm32/alloc-id $Register-edi/imm32 7/imm32 + 0x11/imm32/alloc-id $Mu-register-eax/imm32 0/imm32 + 0x11/imm32/alloc-id $Mu-register-ecx/imm32 1/imm32 + 0x11/imm32/alloc-id $Mu-register-edx/imm32 2/imm32 + 0x11/imm32/alloc-id $Mu-register-ebx/imm32 3/imm32 + 0x11/imm32/alloc-id $Mu-register-esi/imm32 6/imm32 + 0x11/imm32/alloc-id $Mu-register-edi/imm32 7/imm32 + +$Mu-register-eax: + 0x11/imm32/alloc-id + 3/imm32/size + 0x65/e 0x61/a 0x78/x + +$Mu-register-ecx: + 0x11/imm32/alloc-id + 3/imm32/size + 0x65/e 0x63/c 0x78/x + +$Mu-register-edx: + 0x11/imm32/alloc-id + 3/imm32/size + 0x65/e 0x64/d 0x78/x + +$Mu-register-ebx: + 0x11/imm32/alloc-id + 3/imm32/size + 0x65/e 0x62/b 0x78/x + +$Mu-register-esi: + 0x11/imm32/alloc-id + 3/imm32/size + 0x65/e 0x73/s 0x69/i + +$Mu-register-edi: + 0x11/imm32/alloc-id + 3/imm32/size + 0x65/e 0x64/d 0x69/i == code -- cgit 1.4.1-2-gfad0