kolibrios-gitea/programs/develop/koldbg/loadmap.inc
Kirill Lipatov (Leency) b34f9856cb upload koldbg by CandyMan
git-svn-id: svn://kolibrios.org@9353 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-12-02 17:13:25 +00:00

44 lines
965 B
PHP

uglobal
LastNames dq ?
ShowNames db ?
endg
FindEAX:push esi
and [LastNames],0
cmp [ShowNames],0
jnz .NoSymb
cmp eax,0x80
jl .NoSymb
lea esi,[eax-1]
test eax,esi
jz .NoSymb
call FindSymbol
jc .NoSymb
mov [LastNames],esi
cmp rdi,[TheBufferO]
jz .SetCol ;Skip starting address
push edi
@@:
lodsb
test al,al
jz @F
stosb
jmp @B
.SetCol:
mov [BufferO-1],byte 31h ;Label Color
.NoSymb:
stc
pop esi
ret
@@: mov ecx,edi
sub ecx,[esp]
cmp ecx,255
ifa mov ecx,255
pop edi
add edi,ecx
clc
pop esi
ret
include "symbols.inc"