/programs/develop/mtdbg/gui.inc |
---|
110,6 → 110,13 |
start: |
; initialize process heap |
mcall 68, 11 |
push eax |
fstcw word [esp] |
or word [esp], 3 shl 10 ; set round-to-zero mode |
fldcw word [esp] |
pop eax |
mov edi, messages |
mov ecx, messages_width*messages_height |
mov al, ' ' |
759,10 → 766,10 |
.str_buf equ esp |
.bcd_man equ esp+32 |
.bcd_exp equ esp+32+12 |
.exp_v equ esp+32+12+12 |
sub esp, 32+12+12 |
sub esp, 32+12+12+4 |
mov eax, 0x20202020 |
mov edi, .str_buf |
stosd |
816,6 → 823,7 |
@@: |
fyl2x |
frndint |
fist dword [.exp_v] |
fld st0 |
fbstp tword [.bcd_exp] |
fldl2t |
889,6 → 897,10 |
.skip_lb: |
loop .mantis_2_str |
mov eax, [.exp_v] |
test eax, eax |
jz .display |
mov ax, ' e' |
stosw |
980,7 → 992,7 |
int 0x40 |
sub ebx, 0x180000 |
add esp, 32+12+12 |
add esp, 32+12+12+4 |
ret |