forked from temisu/oneKpaq
-
Notifications
You must be signed in to change notification settings - Fork 3
/
onekpaq_cfunc32.asm
43 lines (31 loc) · 1.17 KB
/
onekpaq_cfunc32.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
; Copyright (c) Teemu Suutari
bits 32
[section .text.onekpaq.cfunc32]
%ifidn __OUTPUT_FORMAT__, elf32
global onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift
onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift: equ onekpaq_decompressor.shift
global onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]
onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]:
%else
global _onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift
_onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_shift: equ onekpaq_decompressor.shift
global _onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]
_onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]:
%endif
pushad
mov ebx,[byte esp+32+4]
mov edi,[byte esp+32+8]
int3
;%define DEBUG_BUILD
%include "onekpaq_decompressor32.asm"
popad
ret
%ifidn __OUTPUT_FORMAT__, elf32
global onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end
onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end:
%else
global _onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end
_onekpaq_decompressor_mode%[ONEKPAQ_DECOMPRESSOR_MODE]_end:
%endif
__SECT__
;; ---------------------------------------------------------------------------