search for: rllunpack

Displaying 3 results from an estimated 3 matches for "rllunpack".

Did you mean: rllpack
2009 Apr 27
3
Question about vk_check and rllunpack
...start with a question: ui.inc: ; ; Now check if it is a "virtual kernel" ; vk_check: mov esi,[HighMemSize] ; Start from top of memory .scan: cmp esi,[VKernelEnd] jbe .not_vk mov di,VKernelBuf call rllunpack ; ESI updated on return Since "shuffler: make the new shuffler actually work" (0d8c3d040d9f733f95384f2d5e46609f73bd9c78) rllunpack in rllpack.inc looks like: ; ; rllunpack: ; Unpack bytes from SI into EDI ; On return (E)SI, EDI are updated and ; (E)CX...
2010 Jul 15
1
Accessing command_line from core C code
...ommand_line: %s\n", command_line); + buf = malloc(sizeof(struct vkernel)); + memset(buf, 0, sizeof(struct vkernel)); + s = strlen((char *)command_line); + + t = HighMemSize; + while (t > VKernelEnd) { + regs->esi.l = t; + regs->edi.l = (uint32_t)buf; + rllunpack(regs); + vk = (struct vkernel *)buf; + if (!strncmp(vk->vname, (char *)command_line, s)) { + printf(" %s", vk->vname); + } + t = regs->esi.l; + } + printf("\n"); + return; +} diff --git a/core/extern.inc b/core/extern.inc index 6...
2008 Aug 31
1
[RFC][PATCH] ui: label completion on tab key
...els: + cmp word [LabelCompl],1 ; Label completion enabled? + jnz get_char_2 + mov cx,di + sub cx,command_line + call crlf + mov esi,[HighMemSize] ; Start from top of memory +.scan: + cmp esi,[VKernelEnd] + jbe .not_vk + + push cx ; save command line size + + mov di,VKernelBuf + call rllunpack + ; ESI updated on return + + sub di,cx ; Return to beginning of buf + pop cx ; restore command line size + push si ; save SI + cmp cx,0 + jz .print + push di + push cx + mov si,command_line + es repe cmpsb + pop cx + pop di + jne .next +.print: + mov al,' ' + call wr...