Move zstart from ui.asm to uic.c
This commit is contained in:
@@ -61,75 +61,6 @@ EXTSYM OSPC_Init
|
||||
|
||||
SECTION .text
|
||||
|
||||
NEWSYM zstart
|
||||
call StartUp
|
||||
|
||||
mov edx,mydebug
|
||||
call PrintStr
|
||||
|
||||
mov edx,welcome ;welcome message
|
||||
call PrintStr
|
||||
|
||||
call SystemInit
|
||||
|
||||
cld ;clear direction flag
|
||||
|
||||
%ifdef OPENSPC
|
||||
call OSPC_Init
|
||||
%else
|
||||
call setnoise
|
||||
call InitSPC
|
||||
%endif
|
||||
call allocmem ;allocate memory
|
||||
|
||||
cmp byte[soundon],0
|
||||
jne .yessound
|
||||
cmp byte[SPCDisable],1
|
||||
je .yessound
|
||||
mov byte[soundon],1
|
||||
mov byte[spcon],1
|
||||
mov byte[DSPDisable],1
|
||||
.yessound
|
||||
cmp byte[SPCDisable],1
|
||||
jne .nodissound
|
||||
mov byte[soundon],0
|
||||
mov byte[spcon],0
|
||||
.nodissound
|
||||
cmp byte[frameskip],0
|
||||
jne .nofpsatstart
|
||||
mov al,[FPSAtStart]
|
||||
mov [FPSOn],al
|
||||
xor al,al
|
||||
.nofpsatstart
|
||||
|
||||
mov al,[gammalevel]
|
||||
shr al,1
|
||||
mov [gammalevel16b],al
|
||||
call MMXCheck
|
||||
|
||||
mov edx,.failedalignc
|
||||
mov eax,outofmemory
|
||||
test eax,3h
|
||||
jnz .failalign
|
||||
mov edx,.failedalignd
|
||||
mov eax,xa
|
||||
test eax,3h
|
||||
jnz .failalign
|
||||
jmp init
|
||||
.failalign
|
||||
push eax
|
||||
call PrintStr
|
||||
pop eax
|
||||
and eax,1Fh
|
||||
call printnum
|
||||
call WaitForKey
|
||||
jmp init
|
||||
|
||||
section .data
|
||||
.failedalignd db 'Data Alignment Failure : ',0
|
||||
.failedalignc db 'Code Alignment Failure : ',0
|
||||
section .text
|
||||
|
||||
ALIGN32
|
||||
NEWSYM outofmemory
|
||||
mov edx,outofmem
|
||||
|
||||
Reference in New Issue
Block a user