forked from KolibriOS/kolibrios
Added source code for libraries
git-svn-id: svn://kolibrios.org@8102 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
format ELF
|
||||
|
||||
include '__lib__.inc'
|
||||
|
||||
section '.text'
|
||||
|
||||
public lib_name
|
||||
|
||||
lib_name db 0x55, 0xAA, lib_name_str, 0
|
@@ -0,0 +1,2 @@
|
||||
lib_name equ @RASTERWORKS.OBJ
|
||||
lib_name_str equ '/sys/lib/RASTERWORKS.OBJ'
|
18
programs/develop/ktcc/trunk/lib/librasterworks/charsFit.asm
Normal file
18
programs/develop/ktcc/trunk/lib/librasterworks/charsFit.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
format ELF
|
||||
|
||||
include "__lib__.inc"
|
||||
|
||||
fun equ charsFit
|
||||
fun_str equ 'charsFit'
|
||||
|
||||
section '.text'
|
||||
|
||||
fun_name db fun_str, 0
|
||||
|
||||
section '.data'
|
||||
|
||||
extrn lib_name
|
||||
public fun
|
||||
|
||||
fun dd fun_name
|
||||
lib dd lib_name
|
18
programs/develop/ktcc/trunk/lib/librasterworks/cntUTF-8.asm
Normal file
18
programs/develop/ktcc/trunk/lib/librasterworks/cntUTF-8.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
format ELF
|
||||
|
||||
include "__lib__.inc"
|
||||
|
||||
fun equ countUTF8Z
|
||||
fun_str equ 'cntUTF-8'
|
||||
|
||||
section '.text'
|
||||
|
||||
fun_name db fun_str, 0
|
||||
|
||||
section '.data'
|
||||
|
||||
extrn lib_name
|
||||
public fun
|
||||
|
||||
fun dd fun_name
|
||||
lib dd lib_name
|
18
programs/develop/ktcc/trunk/lib/librasterworks/drawText.asm
Normal file
18
programs/develop/ktcc/trunk/lib/librasterworks/drawText.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
format ELF
|
||||
|
||||
include "__lib__.inc"
|
||||
|
||||
fun equ drawText
|
||||
fun_str equ 'drawText'
|
||||
|
||||
section '.text'
|
||||
|
||||
fun_name db fun_str, 0
|
||||
|
||||
section '.data'
|
||||
|
||||
extrn lib_name
|
||||
public fun
|
||||
|
||||
fun dd fun_name
|
||||
lib dd lib_name
|
7
programs/develop/ktcc/trunk/lib/librasterworks/make.bat
Normal file
7
programs/develop/ktcc/trunk/lib/librasterworks/make.bat
Normal file
@@ -0,0 +1,7 @@
|
||||
fasm __lib__.asm
|
||||
fasm mb_create.asm
|
||||
fasm mb_reinit.asm
|
||||
fasm mb_setfunctions.asm
|
||||
kos32-ar -ru libmsgbox.a *.o
|
||||
del *.o
|
||||
pause
|
9
programs/develop/ktcc/trunk/lib/librasterworks/makefile
Normal file
9
programs/develop/ktcc/trunk/lib/librasterworks/makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
all:
|
||||
fasm __lib__.asm
|
||||
fasm charsFit.asm
|
||||
fasm cntUTF-8.asm
|
||||
fasm drawText.asm
|
||||
fasm strWidth.asm
|
||||
ar -crs librasterworks.a *.o
|
||||
clean:
|
||||
rm -f *.o
|
18
programs/develop/ktcc/trunk/lib/librasterworks/strWidth.asm
Normal file
18
programs/develop/ktcc/trunk/lib/librasterworks/strWidth.asm
Normal file
@@ -0,0 +1,18 @@
|
||||
format ELF
|
||||
|
||||
include "__lib__.inc"
|
||||
|
||||
fun equ strWidth
|
||||
fun_str equ 'strWidth'
|
||||
|
||||
section '.text'
|
||||
|
||||
fun_name db fun_str, 0
|
||||
|
||||
section '.data'
|
||||
|
||||
extrn lib_name
|
||||
public fun
|
||||
|
||||
fun dd fun_name
|
||||
lib dd lib_name
|
Reference in New Issue
Block a user