mirror of
https://github.com/irmen/prog8.git
synced 2025-11-01 22:16:16 +00:00
new library routine skeletons
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
Prog8 compiler v11.4 by Irmen de Jong (irmen@razorvine.net)
|
Prog8 compiler v12.0-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||||
|
Prerelease version from git commit 893e16d8 in branch structs
|
||||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||||
|
|
||||||
Compiling program import-all-c128.p8
|
Compiling program import-all-c128.p8
|
||||||
@@ -532,6 +533,7 @@ sys {
|
|||||||
const ubyte SIZEOF_BYTE
|
const ubyte SIZEOF_BYTE
|
||||||
const ubyte SIZEOF_FLOAT
|
const ubyte SIZEOF_FLOAT
|
||||||
const ubyte SIZEOF_LONG
|
const ubyte SIZEOF_LONG
|
||||||
|
const ubyte SIZEOF_POINTER
|
||||||
const ubyte SIZEOF_UBYTE
|
const ubyte SIZEOF_UBYTE
|
||||||
const ubyte SIZEOF_UWORD
|
const ubyte SIZEOF_UWORD
|
||||||
const ubyte SIZEOF_WORD
|
const ubyte SIZEOF_WORD
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
Prog8 compiler v11.4 by Irmen de Jong (irmen@razorvine.net)
|
Prog8 compiler v12.0-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||||
|
Prerelease version from git commit 893e16d8 in branch structs
|
||||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||||
|
|
||||||
Compiling program import-all-c64.p8
|
Compiling program import-all-c64.p8
|
||||||
@@ -644,6 +645,7 @@ sys {
|
|||||||
const ubyte SIZEOF_BYTE
|
const ubyte SIZEOF_BYTE
|
||||||
const ubyte SIZEOF_FLOAT
|
const ubyte SIZEOF_FLOAT
|
||||||
const ubyte SIZEOF_LONG
|
const ubyte SIZEOF_LONG
|
||||||
|
const ubyte SIZEOF_POINTER
|
||||||
const ubyte SIZEOF_UBYTE
|
const ubyte SIZEOF_UBYTE
|
||||||
const ubyte SIZEOF_UWORD
|
const ubyte SIZEOF_UWORD
|
||||||
const ubyte SIZEOF_WORD
|
const ubyte SIZEOF_WORD
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
Prog8 compiler v11.4 by Irmen de Jong (irmen@razorvine.net)
|
Prog8 compiler v12.0-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||||
|
Prerelease version from git commit 893e16d8 in branch structs
|
||||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||||
|
|
||||||
Compiling program import-all-cx16.p8
|
Compiling program import-all-cx16.p8
|
||||||
@@ -1253,6 +1254,7 @@ sys {
|
|||||||
const ubyte SIZEOF_BYTE
|
const ubyte SIZEOF_BYTE
|
||||||
const ubyte SIZEOF_FLOAT
|
const ubyte SIZEOF_FLOAT
|
||||||
const ubyte SIZEOF_LONG
|
const ubyte SIZEOF_LONG
|
||||||
|
const ubyte SIZEOF_POINTER
|
||||||
const ubyte SIZEOF_UBYTE
|
const ubyte SIZEOF_UBYTE
|
||||||
const ubyte SIZEOF_UWORD
|
const ubyte SIZEOF_UWORD
|
||||||
const ubyte SIZEOF_WORD
|
const ubyte SIZEOF_WORD
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
Prog8 compiler v11.4 by Irmen de Jong (irmen@razorvine.net)
|
Prog8 compiler v12.0-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||||
|
Prerelease version from git commit 893e16d8 in branch structs
|
||||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||||
|
|
||||||
Compiling program import-all-pet32.p8
|
Compiling program import-all-pet32.p8
|
||||||
@@ -264,6 +265,7 @@ sys {
|
|||||||
const ubyte SIZEOF_BYTE
|
const ubyte SIZEOF_BYTE
|
||||||
const ubyte SIZEOF_FLOAT
|
const ubyte SIZEOF_FLOAT
|
||||||
const ubyte SIZEOF_LONG
|
const ubyte SIZEOF_LONG
|
||||||
|
const ubyte SIZEOF_POINTER
|
||||||
const ubyte SIZEOF_UBYTE
|
const ubyte SIZEOF_UBYTE
|
||||||
const ubyte SIZEOF_UWORD
|
const ubyte SIZEOF_UWORD
|
||||||
const ubyte SIZEOF_WORD
|
const ubyte SIZEOF_WORD
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
Prog8 compiler v11.4 by Irmen de Jong (irmen@razorvine.net)
|
Prog8 compiler v12.0-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
|
||||||
|
Prerelease version from git commit 893e16d8 in branch structs
|
||||||
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
|
||||||
|
|
||||||
Compiling program import-all-virtual.p8
|
Compiling program import-all-virtual.p8
|
||||||
@@ -62,8 +63,8 @@ LIBRARY MODULE NAME: compression
|
|||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
compression {
|
compression {
|
||||||
decode_rle (uword compressed, uword target, uword maxsize) -> uword
|
decode_rle (^^ubyte compressed, ^^ubyte target, uword maxsize) -> uword
|
||||||
encode_rle (uword data, uword size, uword target, bool is_last_block) -> uword
|
encode_rle (^^ubyte data, uword size, ^^ubyte target, bool is_last_block) -> uword
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -76,8 +77,8 @@ conv {
|
|||||||
any2uword (str string) -> uword
|
any2uword (str string) -> uword
|
||||||
bin2uword (str string) -> uword
|
bin2uword (str string) -> uword
|
||||||
hex2uword (str string) -> uword
|
hex2uword (str string) -> uword
|
||||||
internal_str_ub (ubyte value, uword out_ptr)
|
internal_str_ub (ubyte value, str out_ptr)
|
||||||
internal_str_uw (uword value, uword out_ptr)
|
internal_str_uw (uword value, str out_ptr)
|
||||||
str2byte (str string) -> byte
|
str2byte (str string) -> byte
|
||||||
str2ubyte (str string) -> ubyte
|
str2ubyte (str string) -> ubyte
|
||||||
str2uword (str string) -> uword
|
str2uword (str string) -> uword
|
||||||
@@ -110,26 +111,26 @@ LIBRARY MODULE NAME: diskio
|
|||||||
|
|
||||||
diskio {
|
diskio {
|
||||||
chdir (str path)
|
chdir (str path)
|
||||||
curdir () -> uword
|
curdir () -> str
|
||||||
delete (uword filenameptr)
|
delete (str filenameptr)
|
||||||
directory () -> bool
|
directory () -> bool
|
||||||
exists (str filename) -> bool
|
exists (str filename) -> bool
|
||||||
f_close ()
|
f_close ()
|
||||||
f_close_w ()
|
f_close_w ()
|
||||||
f_open (uword filenameptr) -> bool
|
f_open (str filenameptr) -> bool
|
||||||
f_open_w (uword filenameptr) -> bool
|
f_open_w (str filenameptr) -> bool
|
||||||
f_read (uword bufferpointer, uword num_bytes) -> uword
|
f_read (str bufferpointer, uword num_bytes) -> uword
|
||||||
f_read_all (uword bufferpointer) -> uword
|
f_read_all (str bufferpointer) -> uword
|
||||||
f_readline (uword bufptr) -> ubyte
|
f_readline (str bufptr) -> ubyte
|
||||||
f_write (uword bufferpointer, uword num_bytes) -> bool
|
f_write (str bufferpointer, uword num_bytes) -> bool
|
||||||
get_loadaddress (str filename) -> uword
|
get_loadaddress (str filename) -> uword
|
||||||
load (uword filenameptr, uword address_override) -> uword
|
load (str filenameptr, uword address_override) -> uword
|
||||||
load_raw (uword filenameptr, uword start_address) -> uword
|
load_raw (str filenameptr, uword start_address) -> uword
|
||||||
mkdir (str name)
|
mkdir (str name)
|
||||||
rename (uword oldfileptr, uword newfileptr)
|
rename (str oldfileptr, str newfileptr)
|
||||||
rmdir (str name)
|
rmdir (str name)
|
||||||
save (uword filenameptr, uword start_address, uword savesize) -> bool
|
save (str filenameptr, uword start_address, uword savesize) -> bool
|
||||||
save_raw (uword filenameptr, uword startaddress, uword savesize) -> bool
|
save_raw (str filenameptr, uword start_address, uword savesize) -> bool
|
||||||
status () -> str
|
status () -> str
|
||||||
status_code () -> ubyte
|
status_code () -> ubyte
|
||||||
}
|
}
|
||||||
@@ -198,11 +199,11 @@ math {
|
|||||||
cos8u (ubyte angle) -> ubyte
|
cos8u (ubyte angle) -> ubyte
|
||||||
cosr8 (ubyte radians) -> byte
|
cosr8 (ubyte radians) -> byte
|
||||||
cosr8u (ubyte radians) -> ubyte
|
cosr8u (ubyte radians) -> ubyte
|
||||||
crc16 (uword data, uword length) -> uword
|
crc16 (^^ubyte data, uword length) -> uword
|
||||||
crc16_end () -> uword
|
crc16_end () -> uword
|
||||||
crc16_start ()
|
crc16_start ()
|
||||||
crc16_update (ubyte value)
|
crc16_update (ubyte value)
|
||||||
crc32 (uword data, uword length)
|
crc32 (^^ubyte data, uword length)
|
||||||
crc32_end ()
|
crc32_end ()
|
||||||
crc32_start ()
|
crc32_start ()
|
||||||
crc32_update (ubyte value)
|
crc32_update (ubyte value)
|
||||||
@@ -298,7 +299,7 @@ strings {
|
|||||||
ltrim (str s)
|
ltrim (str s)
|
||||||
ltrimmed (str s) -> str
|
ltrimmed (str s) -> str
|
||||||
ncompare (str st1, str st2, ubyte length) -> byte
|
ncompare (str st1, str st2, ubyte length) -> byte
|
||||||
rfind (uword stringptr, ubyte character) -> ubyte, bool
|
rfind (str stringptr, ubyte character) -> ubyte, bool
|
||||||
right (str source, ubyte slen, str target)
|
right (str source, ubyte slen, str target)
|
||||||
rstrip (str s)
|
rstrip (str s)
|
||||||
rtrim (str s)
|
rtrim (str s)
|
||||||
@@ -329,6 +330,7 @@ sys {
|
|||||||
const ubyte SIZEOF_BYTE
|
const ubyte SIZEOF_BYTE
|
||||||
const ubyte SIZEOF_FLOAT
|
const ubyte SIZEOF_FLOAT
|
||||||
const ubyte SIZEOF_LONG
|
const ubyte SIZEOF_LONG
|
||||||
|
const ubyte SIZEOF_POINTER
|
||||||
const ubyte SIZEOF_UBYTE
|
const ubyte SIZEOF_UBYTE
|
||||||
const ubyte SIZEOF_UWORD
|
const ubyte SIZEOF_UWORD
|
||||||
const ubyte SIZEOF_WORD
|
const ubyte SIZEOF_WORD
|
||||||
@@ -343,7 +345,7 @@ sys {
|
|||||||
gfx_enable (ubyte mode)
|
gfx_enable (ubyte mode)
|
||||||
gfx_getpixel (uword xx, uword yy) -> ubyte
|
gfx_getpixel (uword xx, uword yy) -> ubyte
|
||||||
gfx_plot (uword xx, uword yy, ubyte color)
|
gfx_plot (uword xx, uword yy, ubyte color)
|
||||||
internal_stringcopy (uword source, uword tgt)
|
internal_stringcopy (str source, str tgt)
|
||||||
memcmp (uword address1, uword address2, uword size) -> byte
|
memcmp (uword address1, uword address2, uword size) -> byte
|
||||||
memcopy (uword source, uword tgt, uword count)
|
memcopy (uword source, uword tgt, uword count)
|
||||||
memset (uword mem, uword numbytes, ubyte value)
|
memset (uword mem, uword numbytes, ubyte value)
|
||||||
@@ -516,7 +518,7 @@ txt {
|
|||||||
column (ubyte col)
|
column (ubyte col)
|
||||||
height () -> ubyte
|
height () -> ubyte
|
||||||
home ()
|
home ()
|
||||||
input_chars (uword buffer) -> ubyte
|
input_chars (str buffer) -> ubyte
|
||||||
lowercase ()
|
lowercase ()
|
||||||
nl ()
|
nl ()
|
||||||
petscii2scr (ubyte petscii_char) -> ubyte
|
petscii2scr (ubyte petscii_char) -> ubyte
|
||||||
|
|||||||
Reference in New Issue
Block a user