В kernel.asm происходят такие проверки:======================================================================
============= Function 47 - draw a number in the window. =============
======================================================================
Parameters:
* eax = 47 - function number
* ebx = parameters of conversion number to text:
............................................................................
* bh = 2 - display in binary system
............................................................................
* bit 30 set = display qword (64-bit) number (must be bl=1)
............................................................................
Remarks:
* The given length must not exceed 60.
............................................................................
Code: Select all
display_number:
............................................................................
display_number_force:
push eax
and eax, 0x3fffffff
cmp eax, 0xffff ; length > 0 ?
pop eax
jge cont_displ
ret
cont_displ:
push eax
and eax, 0x3fffffff
cmp eax, 61*0x10000 ; length <= 60 ?
pop eax
jb cont_displ2
ret
cont_displ2:
............................................................................