update skeleton scripts

This commit is contained in:
Irmen de Jong 2024-09-26 00:12:29 +02:00
parent b7ebd8c4a6
commit 1326498802
12 changed files with 556 additions and 165 deletions

View File

@ -1,5 +1,7 @@
; all library modules for the atari compiler target ; all library modules for the atari compiler target
%import anyall
%import buffers
%import conv %import conv
%import cx16logo %import cx16logo
%import diskio %import diskio

View File

@ -1,5 +1,7 @@
; all library modules for the c128 compiler target ; all library modules for the c128 compiler target
%import anyall
%import buffers
%import conv %import conv
%import cx16logo %import cx16logo
%import diskio %import diskio

View File

@ -1,5 +1,7 @@
; all library modules for the c64 compiler target ; all library modules for the c64 compiler target
%import anyall
%import buffers
%import conv %import conv
%import cx16logo %import cx16logo
%import diskio %import diskio

View File

@ -1,5 +1,8 @@
; all library modules for the cx16 compiler target ; all library modules for the cx16 compiler target
%import audio
%import anyall
%import buffers
%import bmx %import bmx
%import conv %import conv
%import cx16logo %import cx16logo

View File

@ -1,5 +1,7 @@
; all library modules for the pet32 compiler target ; all library modules for the pet32 compiler target
%import anyall
%import buffers
%import conv %import conv
%import cx16logo %import cx16logo
%import diskio %import diskio

View File

@ -1,5 +1,7 @@
; all library modules for the virtual compiler target ; all library modules for the virtual compiler target
%import anyall
%import buffers
%import conv %import conv
%import cx16logo %import cx16logo
%import diskio %import diskio

View File

@ -1,10 +1,52 @@
Prog8 compiler v10.4.1 by Irmen de Jong (irmen@razorvine.net) Prog8 compiler v10.4.2-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
Prerelease version from git commit 5675d751 in branch master
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-atari.p8 Compiling program import-all-atari.p8
Compiler target: atari Compiler target: atari
LIBRARY MODULE NAME: import-all-atari
-------------------------------------
LIBRARY MODULE NAME: anyall
---------------------------
anyall {
all (uword arrayptr, uword num_elements) -> bool
allw (uword arrayptr, uword num_elements) -> bool
any (uword arrayptr, uword num_elements) -> bool
anyw (uword arrayptr, uword num_elements) -> bool
}
LIBRARY MODULE NAME: buffers
----------------------------
smallringbuffer {
ubyte[] buffer
ubyte fill
ubyte head
ubyte tail
get () -> ubyte
getw () -> uword
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
ringbuffer {
uword buffer_ptr
uword fill
uword head
uword tail
get () -> ubyte
getw () -> uword
inc_head ()
inc_tail ()
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
LIBRARY MODULE NAME: conv LIBRARY MODULE NAME: conv
------------------------- -------------------------
@ -320,6 +362,9 @@ string {
} }
LIBRARY MODULE NAME: shared_string_functions
--------------------------------------------
LIBRARY MODULE NAME: math LIBRARY MODULE NAME: math
------------------------- -------------------------
math { math {
@ -356,8 +401,14 @@ math {
} }
LIBRARY MODULE NAME: prog8_lib
------------------------------
LIBRARY MODULE NAME: test_stack LIBRARY MODULE NAME: test_stack
------------------------------- -------------------------------
test_stack { test_stack {
test () test ()
} }

View File

@ -1,10 +1,52 @@
Prog8 compiler v10.4.1 by Irmen de Jong (irmen@razorvine.net) Prog8 compiler v10.4.2-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
Prerelease version from git commit 5675d751 in branch master
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
Compiler target: c128 Compiler target: c128
LIBRARY MODULE NAME: import-all-c128
------------------------------------
LIBRARY MODULE NAME: anyall
---------------------------
anyall {
all (uword arrayptr, uword num_elements) -> bool
allw (uword arrayptr, uword num_elements) -> bool
any (uword arrayptr, uword num_elements) -> bool
anyw (uword arrayptr, uword num_elements) -> bool
}
LIBRARY MODULE NAME: buffers
----------------------------
smallringbuffer {
ubyte[] buffer
ubyte fill
ubyte head
ubyte tail
get () -> ubyte
getw () -> uword
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
ringbuffer {
uword buffer_ptr
uword fill
uword head
uword tail
get () -> ubyte
getw () -> uword
inc_head ()
inc_tail ()
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
LIBRARY MODULE NAME: conv LIBRARY MODULE NAME: conv
------------------------- -------------------------
@ -468,6 +510,9 @@ cx16 {
} }
LIBRARY MODULE NAME: shared_cbm_textio_functions
------------------------------------------------
LIBRARY MODULE NAME: diskio LIBRARY MODULE NAME: diskio
--------------------------- ---------------------------
diskio { diskio {
@ -546,6 +591,9 @@ string {
} }
LIBRARY MODULE NAME: shared_string_functions
--------------------------------------------
LIBRARY MODULE NAME: math LIBRARY MODULE NAME: math
------------------------- -------------------------
math { math {
@ -582,6 +630,9 @@ math {
} }
LIBRARY MODULE NAME: prog8_lib
------------------------------
LIBRARY MODULE NAME: test_stack LIBRARY MODULE NAME: test_stack
------------------------------- -------------------------------
test_stack { test_stack {

View File

@ -1,10 +1,53 @@
Prog8 compiler v10.4.1 by Irmen de Jong (irmen@razorvine.net) Prog8 compiler v10.4.2-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
Prerelease version from git commit 5675d751 in branch master
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
Compiler target: c64 Compiler target: c64
LIBRARY MODULE NAME: import-all-c64
-----------------------------------
LIBRARY MODULE NAME: anyall
---------------------------
anyall {
all (uword arrayptr, uword num_elements) -> bool
allw (uword arrayptr, uword num_elements) -> bool
any (uword arrayptr, uword num_elements) -> bool
anyw (uword arrayptr, uword num_elements) -> bool
}
LIBRARY MODULE NAME: buffers
----------------------------
smallringbuffer {
ubyte[] buffer
ubyte fill
ubyte head
ubyte tail
get () -> ubyte
getw () -> uword
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
ringbuffer {
uword buffer_ptr
uword fill
uword head
uword tail
get () -> ubyte
getw () -> uword
inc_head ()
inc_tail ()
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
LIBRARY MODULE NAME: conv LIBRARY MODULE NAME: conv
------------------------- -------------------------
conv { conv {
@ -469,6 +512,9 @@ cx16 {
} }
LIBRARY MODULE NAME: shared_cbm_textio_functions
------------------------------------------------
LIBRARY MODULE NAME: diskio LIBRARY MODULE NAME: diskio
--------------------------- ---------------------------
diskio { diskio {
@ -547,6 +593,9 @@ string {
} }
LIBRARY MODULE NAME: shared_string_functions
--------------------------------------------
LIBRARY MODULE NAME: floats LIBRARY MODULE NAME: floats
--------------------------- ---------------------------
floats { floats {
@ -640,6 +689,9 @@ floats {
} }
LIBRARY MODULE NAME: shared_floats_functions
--------------------------------------------
LIBRARY MODULE NAME: graphics LIBRARY MODULE NAME: graphics
----------------------------- -----------------------------
graphics { graphics {
@ -700,9 +752,14 @@ math {
} }
LIBRARY MODULE NAME: prog8_lib
------------------------------
LIBRARY MODULE NAME: test_stack LIBRARY MODULE NAME: test_stack
------------------------------- -------------------------------
test_stack { test_stack {
test () test ()
} }

View File

@ -1,170 +1,74 @@
Prog8 compiler v10.4.1 by Irmen de Jong (irmen@razorvine.net) Prog8 compiler v10.4.2-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
Prerelease version from git commit 5675d751 in branch master
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
Compiler target: cx16 Compiler target: cx16
LIBRARY MODULE NAME: import-all-cx16
------------------------------------
LIBRARY MODULE NAME: bmx LIBRARY MODULE NAME: audio
------------------------ --------------------------
bmx { audio {
str FILEID const ubyte rom_bank
ubyte bitsperpixel audio_init () -> clobbers (A,X,Y) -> bool @Pc
ubyte border bas_fmchordstring (ubyte length @A, str string @XY) -> clobbers (A,X,Y)
ubyte compression bas_fmfreq (ubyte channel @A, uword freq @XY, bool noretrigger @Pc) -> clobbers (A,X,Y) -> bool @Pc
uword error_message bas_fmnote (ubyte channel @A, ubyte note @X, ubyte fracsemitone @Y, bool noretrigger @Pc) -> clobbers (A,X,Y) -> bool @Pc
ubyte[] header bas_fmplaystring (ubyte length @A, str string @XY) -> clobbers (A,X,Y)
uword height bas_fmvib (ubyte speed @A, ubyte depth @X) -> clobbers (A,X,Y) -> bool @Pc
ubyte old_drivenumber bas_playstringvoice (ubyte channel @A) -> clobbers (Y)
uword @shared palette_buffer_ptr bas_psgchordstring (ubyte length @A, str string @XY) -> clobbers (A,X,Y)
uword palette_entries bas_psgfreq (ubyte voice @A, uword freq @XY) -> clobbers (A,X,Y) -> bool @Pc
ubyte palette_start bas_psgnote (ubyte voice @A, ubyte note @X, ubyte fracsemitone @Y) -> clobbers (A,X,Y) -> bool @Pc
ubyte vera_colordepth bas_psgplaystring (ubyte length @A, str string @XY) -> clobbers (A,X,Y)
uword width bas_psgwav (ubyte voice @A, ubyte waveform @X) -> clobbers (A,X,Y) -> bool @Pc
build_header () notecon_bas2fm (ubyte note @X) -> clobbers (A) -> ubyte @X, bool @Pc
bytes_per_scanline (uword w) -> uword notecon_bas2midi (ubyte note @X) -> clobbers (A) -> ubyte @X, bool @Pc
close () notecon_bas2psg (ubyte note @X, ubyte fracsemitone @Y) -> clobbers (A) -> uword @XY, bool @Pc
continue_load (ubyte vbank, uword vaddr) -> bool notecon_fm2bas (ubyte note @X) -> clobbers (A) -> ubyte @X, bool @Pc
continue_load_only_palette () -> bool notecon_fm2midi (ubyte note @X) -> clobbers (A) -> ubyte @X, bool @Pc
continue_load_stamp (ubyte vbank, uword vaddr, uword screenwidth) -> bool notecon_fm2psg (ubyte note @X, ubyte fracsemitone @Y) -> clobbers (A) -> uword @XY, bool @Pc
open (ubyte drivenumber, str filename) -> bool notecon_freq2bas (uword freqHz @XY) -> clobbers (A) -> ubyte @X, ubyte @Y, bool @Pc
parse_header () -> bool notecon_freq2fm (uword freqHz @XY) -> clobbers (A) -> ubyte @X, ubyte @Y, bool @Pc
read_bitmap (ubyte vbank, uword vaddr) -> bool notecon_freq2midi (uword freqHz @XY) -> clobbers (A) -> ubyte @X, ubyte @Y, bool @Pc
read_bitmap_padded (ubyte vbank, uword vaddr, uword screenwidth) -> bool notecon_freq2psg (uword freqHz @XY) -> clobbers (A) -> uword @XY, bool @Pc
read_header () -> bool notecon_midi2bas (ubyte note @X) -> clobbers (A) -> ubyte @X, bool @Pc
read_palette () -> bool notecon_midi2fm (ubyte note @X) -> clobbers (A) -> ubyte @X, bool @Pc
read_scanline (uword size) notecon_midi2psg (ubyte note @X, ubyte fracsemitone @Y) -> clobbers (A) -> uword @XY, bool @Pc
save (ubyte drivenumber, str filename, ubyte vbank, uword vaddr, uword screenwidth) -> bool notecon_psg2bas (uword freq @XY) -> clobbers (A) -> ubyte @X, ubyte @Y, bool @Pc
set_bpp (ubyte bpp) notecon_psg2fm (uword freq @XY) -> clobbers (A) -> ubyte @X, ubyte @Y, bool @Pc
set_vera_colordepth (ubyte depth) notecon_psg2midi (uword freq @XY) -> clobbers (A) -> ubyte @X, ubyte @Y, bool @Pc
write_bitmap (ubyte vbank, uword vaddr, uword screenwidth) -> bool psg_getatten (ubyte voice @A) -> clobbers (Y) -> ubyte @X
write_header () -> bool psg_getpan (ubyte voice @A) -> clobbers (Y) -> ubyte @X
write_palette () -> bool psg_init () -> clobbers (A,X,Y)
} psg_playfreq (ubyte voice @A, uword freq @XY) -> clobbers (A,X,Y)
psg_read (ubyte offset @X, bool cookedVol @Pc) -> clobbers (Y) -> ubyte @A
psg_setatten (ubyte voice @A, ubyte attenuation @X) -> clobbers (A,X,Y)
LIBRARY MODULE NAME: diskio psg_setfreq (ubyte voice @A, uword freq @XY) -> clobbers (A,X,Y)
--------------------------- psg_setpan (ubyte voice @A, ubyte panning @X) -> clobbers (A,X,Y)
diskio { psg_setvol (ubyte voice @A, ubyte volume @X) -> clobbers (A,X,Y)
const ubyte READ_IO_CHANNEL psg_write (ubyte value @A, ubyte offset @X) -> clobbers (Y)
const ubyte WRITE_IO_CHANNEL psg_write_fast (ubyte value @A, ubyte offset @X) -> clobbers (Y)
ubyte @shared drivenumber ym_get_chip_type () -> clobbers (X) -> ubyte @A
bool iteration_in_progress ym_getatten (ubyte channel @A) -> clobbers (Y) -> ubyte @X
uword list_blocks ym_getpan (ubyte channel @A) -> clobbers (Y) -> ubyte @X
str list_filename ym_init () -> clobbers (A,X,Y) -> bool @Pc
str list_filetype ym_loaddefpatches () -> clobbers (A,X,Y) -> bool @Pc
uword list_pattern ym_loadpatch (ubyte channel @A, uword patchOrAddress @XY, bool what @Pc) -> clobbers (A,X,Y)
bool list_skip_disk_name ym_loadpatchlfn (ubyte channel @A, ubyte lfn @X) -> clobbers (X,Y) -> ubyte @A, bool @Pc
chdir (str path) ym_playdrum (ubyte channel @A, ubyte note @X) -> clobbers (A,X,Y) -> bool @Pc
curdir () -> uword ym_playnote (ubyte channel @A, ubyte kc @X, ubyte kf @Y, bool notrigger @Pc) -> clobbers (A,X,Y) -> bool @Pc
delete (uword filenameptr) ym_read (ubyte register @X, bool cooked @Pc) -> clobbers (Y) -> ubyte @A, bool @Pc
directory () -> bool ym_release (ubyte channel @A) -> clobbers (A,X,Y) -> bool @Pc
diskname () -> uword ym_setatten (ubyte channel @A, ubyte attenuation @X) -> clobbers (Y) -> bool @Pc
f_close () ym_setdrum (ubyte channel @A, ubyte note @X) -> clobbers (A,X,Y) -> bool @Pc
f_close_w () ym_setnote (ubyte channel @A, ubyte kc @X, ubyte kf @Y) -> clobbers (A,X,Y) -> bool @Pc
f_open (str filenameptr) -> bool ym_setpan (ubyte channel @A, ubyte panning @X) -> clobbers (A,X,Y) -> bool @Pc
f_open_w (str filename) -> bool ym_trigger (ubyte channel @A, bool noRelease @Pc) -> clobbers (A,X,Y) -> bool @Pc
f_open_w_seek (str filename) -> bool ym_write (ubyte value @A, ubyte register @X) -> clobbers (Y) -> bool @Pc
f_read (uword bufferpointer, uword num_bytes) -> uword
f_read_all (uword bufferpointer) -> uword
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
f_seek (uword pos_hiword, uword pos_loword)
f_seek_w (uword pos_hiword, uword pos_loword)
f_tell () -> uword @R0, uword @R1, uword @R2, uword @R3
f_write (uword bufferpointer, uword num_bytes) -> bool
fastmode (ubyte mode) -> bool
internal_f_open_w (str filename, bool open_for_seeks) -> bool
internal_f_tell ()
internal_load_routine (uword filenameptr, uword address_override, bool headerless) -> uword
internal_save_routine (uword filenameptr, uword startaddress, uword savesize, bool headerless) -> bool
lf_end_list ()
lf_next_entry () -> bool
lf_start_list (uword pattern_ptr) -> bool
list_filenames (uword pattern_ptr, uword filenames_buffer, uword filenames_buf_size) -> ubyte
load (uword filenameptr, uword address_override) -> uword
load_raw (uword filenameptr, uword startaddress) -> uword
load_size (ubyte startbank, uword startaddress, uword endaddress) -> uword
mkdir (str name)
relabel (str name)
rename (uword oldfileptr, uword newfileptr)
reset_read_channel ()
reset_write_channel ()
rmdir (str name)
save (uword filenameptr, uword startaddress, uword savesize) -> bool
save_raw (uword filenameptr, uword startaddress, uword savesize) -> bool
send_command (uword commandptr)
status () -> uword
status_code () -> ubyte
vload (str name @R0, ubyte bank @A, uword startaddress @R1) -> clobbers (X,Y) -> bool @A
vload_raw (str name @R0, ubyte bank @A, uword startaddress @R1) -> clobbers (X,Y) -> bool @A
}
LIBRARY MODULE NAME: textio
---------------------------
txt {
const ubyte DEFAULT_HEIGHT
const ubyte DEFAULT_WIDTH
const uword VERA_TEXTMATRIX_ADDR
const ubyte VERA_TEXTMATRIX_BANK
ubyte[] color_to_charcode
bell ()
chrout (ubyte character @A) = $ffd2
chrout_lit (ubyte character @A)
clear_screen ()
clear_screenchars (ubyte character @A) -> clobbers (X,Y)
clear_screencolors (ubyte color @A) -> clobbers (X,Y)
cls ()
color (ubyte txtcol)
color2 (ubyte txtcol, ubyte bgcol)
column (ubyte col @A) -> clobbers (A,X,Y)
cp437 ()
fill_screen (ubyte character @A, ubyte color @Y) -> clobbers (A,X)
get_column () -> ubyte @Y
get_cursor (uword colptr, uword rowptr)
get_row () -> ubyte @X
getchr (ubyte col @A, ubyte row @Y) -> ubyte @A
getclr (ubyte col @A, ubyte row @Y) -> ubyte @A
height () -> clobbers (X,Y) -> ubyte @A
home ()
input_chars (uword buffer @AY) -> clobbers (A) -> ubyte @Y
iso ()
iso16 ()
iso5 ()
iso_off ()
kata ()
lowercase ()
nl ()
petscii2scr (ubyte petscii_char @A) -> ubyte @A
petscii2scr_str (str petscii_string @AY)
plot (ubyte col @Y, ubyte row @X)
print (str text @AY) -> clobbers (A,Y)
print_b (byte value @A) -> clobbers (A,X,Y)
print_bool (bool value)
print_lit (str text @AY) -> clobbers (A,Y)
print_ub (ubyte value @A) -> clobbers (A,X,Y)
print_ub0 (ubyte value @A) -> clobbers (A,X,Y)
print_ubbin (ubyte value @A, bool prefix @Pc) -> clobbers (A,X,Y)
print_ubhex (ubyte value @A, bool prefix @Pc) -> clobbers (A,X,Y)
print_uw (uword value @AY) -> clobbers (A,X,Y)
print_uw0 (uword value @AY) -> clobbers (A,X,Y)
print_uwbin (uword value @AY, bool prefix @Pc) -> clobbers (A,X,Y)
print_uwhex (uword value @AY, bool prefix @Pc) -> clobbers (A,X,Y)
print_w (word value @AY) -> clobbers (A,X,Y)
row (ubyte rownum @A) -> clobbers (A,X,Y)
scroll_down () -> clobbers (A,X,Y)
scroll_left () -> clobbers (A,X,Y)
scroll_right () -> clobbers (A,X,Y)
scroll_up () -> clobbers (A,X,Y)
setcc (ubyte col, ubyte row, ubyte character, ubyte charcolor)
setcc2 (ubyte col, ubyte row, ubyte character, ubyte colors)
setchr (ubyte col @X, ubyte row @Y, ubyte character @A) -> clobbers (A)
setclr (ubyte col @X, ubyte row @Y, ubyte color @A) -> clobbers (A)
spc ()
uppercase ()
waitkey () -> ubyte @A
width () -> clobbers (X,Y) -> ubyte @A
} }
@ -694,6 +598,208 @@ sys {
} }
LIBRARY MODULE NAME: anyall
---------------------------
anyall {
all (uword arrayptr, uword num_elements) -> bool
allw (uword arrayptr, uword num_elements) -> bool
any (uword arrayptr, uword num_elements) -> bool
anyw (uword arrayptr, uword num_elements) -> bool
}
LIBRARY MODULE NAME: buffers
----------------------------
smallringbuffer {
ubyte[] buffer
ubyte fill
ubyte head
ubyte tail
get () -> ubyte
getw () -> uword
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
ringbuffer {
uword buffer_ptr
uword fill
uword head
uword tail
get () -> ubyte
getw () -> uword
inc_head ()
inc_tail ()
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
LIBRARY MODULE NAME: bmx
------------------------
bmx {
str FILEID
ubyte bitsperpixel
ubyte border
ubyte compression
uword error_message
ubyte[] header
uword height
ubyte old_drivenumber
uword @shared palette_buffer_ptr
uword palette_entries
ubyte palette_start
ubyte vera_colordepth
uword width
build_header ()
bytes_per_scanline (uword w) -> uword
close ()
continue_load (ubyte vbank, uword vaddr) -> bool
continue_load_only_palette () -> bool
continue_load_stamp (ubyte vbank, uword vaddr, uword screenwidth) -> bool
open (ubyte drivenumber, str filename) -> bool
parse_header () -> bool
read_bitmap (ubyte vbank, uword vaddr) -> bool
read_bitmap_padded (ubyte vbank, uword vaddr, uword screenwidth) -> bool
read_header () -> bool
read_palette () -> bool
read_scanline (uword size)
save (ubyte drivenumber, str filename, ubyte vbank, uword vaddr, uword screenwidth) -> bool
set_bpp (ubyte bpp)
set_vera_colordepth (ubyte depth)
write_bitmap (ubyte vbank, uword vaddr, uword screenwidth) -> bool
write_header () -> bool
write_palette () -> bool
}
LIBRARY MODULE NAME: diskio
---------------------------
diskio {
const ubyte READ_IO_CHANNEL
const ubyte WRITE_IO_CHANNEL
ubyte @shared drivenumber
bool iteration_in_progress
uword list_blocks
str list_filename
str list_filetype
uword list_pattern
bool list_skip_disk_name
chdir (str path)
curdir () -> uword
delete (uword filenameptr)
directory () -> bool
diskname () -> uword
f_close ()
f_close_w ()
f_open (str filenameptr) -> bool
f_open_w (str filename) -> bool
f_open_w_seek (str filename) -> bool
f_read (uword bufferpointer, uword num_bytes) -> uword
f_read_all (uword bufferpointer) -> uword
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
f_seek (uword pos_hiword, uword pos_loword)
f_seek_w (uword pos_hiword, uword pos_loword)
f_tell () -> uword @R0, uword @R1, uword @R2, uword @R3
f_write (uword bufferpointer, uword num_bytes) -> bool
fastmode (ubyte mode) -> bool
internal_f_open_w (str filename, bool open_for_seeks) -> bool
internal_f_tell ()
internal_load_routine (uword filenameptr, uword address_override, bool headerless) -> uword
internal_save_routine (uword filenameptr, uword startaddress, uword savesize, bool headerless) -> bool
lf_end_list ()
lf_next_entry () -> bool
lf_start_list (uword pattern_ptr) -> bool
list_filenames (uword pattern_ptr, uword filenames_buffer, uword filenames_buf_size) -> ubyte
load (uword filenameptr, uword address_override) -> uword
load_raw (uword filenameptr, uword startaddress) -> uword
load_size (ubyte startbank, uword startaddress, uword endaddress) -> uword
mkdir (str name)
read4hex () -> uword
relabel (str name)
rename (uword oldfileptr, uword newfileptr)
reset_read_channel ()
reset_write_channel ()
rmdir (str name)
save (uword filenameptr, uword startaddress, uword savesize) -> bool
save_raw (uword filenameptr, uword startaddress, uword savesize) -> bool
send_command (uword commandptr)
status () -> uword
status_code () -> ubyte
vload (str name @R0, ubyte bank @A, uword startaddress @R1) -> clobbers (X,Y) -> bool @A
vload_raw (str name @R0, ubyte bank @A, uword startaddress @R1) -> clobbers (X,Y) -> bool @A
}
LIBRARY MODULE NAME: textio
---------------------------
txt {
const ubyte DEFAULT_HEIGHT
const ubyte DEFAULT_WIDTH
const uword VERA_TEXTMATRIX_ADDR
const ubyte VERA_TEXTMATRIX_BANK
ubyte[] color_to_charcode
bell ()
chrout (ubyte character @A) = $ffd2
chrout_lit (ubyte character @A)
clear_screen ()
clear_screenchars (ubyte character @A) -> clobbers (X,Y)
clear_screencolors (ubyte color @A) -> clobbers (X,Y)
cls ()
color (ubyte txtcol)
color2 (ubyte txtcol, ubyte bgcol)
column (ubyte col @A) -> clobbers (A,X,Y)
cp437 ()
fill_screen (ubyte character @A, ubyte color @Y) -> clobbers (A,X)
get_column () -> ubyte @Y
get_cursor (uword colptr, uword rowptr)
get_row () -> ubyte @X
getchr (ubyte col @A, ubyte row @Y) -> ubyte @A
getclr (ubyte col @A, ubyte row @Y) -> ubyte @A
height () -> clobbers (X,Y) -> ubyte @A
home ()
input_chars (uword buffer @AY) -> clobbers (A) -> ubyte @Y
iso ()
iso16 ()
iso5 ()
iso_off ()
kata ()
lowercase ()
nl ()
petscii2scr (ubyte petscii_char @A) -> ubyte @A
petscii2scr_str (str petscii_string @AY)
plot (ubyte col @Y, ubyte row @X)
print (str text @AY) -> clobbers (A,Y)
print_b (byte value @A) -> clobbers (A,X,Y)
print_bool (bool value)
print_lit (str text @AY) -> clobbers (A,Y)
print_ub (ubyte value @A) -> clobbers (A,X,Y)
print_ub0 (ubyte value @A) -> clobbers (A,X,Y)
print_ubbin (ubyte value @A, bool prefix @Pc) -> clobbers (A,X,Y)
print_ubhex (ubyte value @A, bool prefix @Pc) -> clobbers (A,X,Y)
print_uw (uword value @AY) -> clobbers (A,X,Y)
print_uw0 (uword value @AY) -> clobbers (A,X,Y)
print_uwbin (uword value @AY, bool prefix @Pc) -> clobbers (A,X,Y)
print_uwhex (uword value @AY, bool prefix @Pc) -> clobbers (A,X,Y)
print_w (word value @AY) -> clobbers (A,X,Y)
row (ubyte rownum @A) -> clobbers (A,X,Y)
scroll_down () -> clobbers (A,X,Y)
scroll_left () -> clobbers (A,X,Y)
scroll_right () -> clobbers (A,X,Y)
scroll_up () -> clobbers (A,X,Y)
setcc (ubyte col, ubyte row, ubyte character, ubyte charcolor)
setcc2 (ubyte col, ubyte row, ubyte character, ubyte colors)
setchr (ubyte col @X, ubyte row @Y, ubyte character @A) -> clobbers (A)
setclr (ubyte col @X, ubyte row @Y, ubyte color @A) -> clobbers (A)
spc ()
uppercase ()
waitkey () -> ubyte @A
width () -> clobbers (X,Y) -> ubyte @A
}
LIBRARY MODULE NAME: conv LIBRARY MODULE NAME: conv
------------------------- -------------------------
conv { conv {
@ -723,6 +829,9 @@ conv {
} }
LIBRARY MODULE NAME: shared_cbm_textio_functions
------------------------------------------------
LIBRARY MODULE NAME: string LIBRARY MODULE NAME: string
--------------------------- ---------------------------
string { string {
@ -762,6 +871,9 @@ string {
} }
LIBRARY MODULE NAME: shared_string_functions
--------------------------------------------
LIBRARY MODULE NAME: cx16logo LIBRARY MODULE NAME: cx16logo
----------------------------- -----------------------------
cx16logo { cx16logo {
@ -898,6 +1010,9 @@ floats {
} }
LIBRARY MODULE NAME: shared_floats_functions
--------------------------------------------
LIBRARY MODULE NAME: gfx2 LIBRARY MODULE NAME: gfx2
------------------------- -------------------------
gfx2 { gfx2 {
@ -1057,6 +1172,9 @@ palette {
} }
LIBRARY MODULE NAME: prog8_lib
------------------------------
LIBRARY MODULE NAME: psg LIBRARY MODULE NAME: psg
------------------------ ------------------------
psg { psg {
@ -1135,3 +1253,5 @@ verafx {
transparency (bool enable) transparency (bool enable)
} }

View File

@ -1,10 +1,52 @@
Prog8 compiler v10.4.1 by Irmen de Jong (irmen@razorvine.net) Prog8 compiler v10.4.2-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
Prerelease version from git commit 5675d751 in branch master
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
Compiler target: pet32 Compiler target: pet32
LIBRARY MODULE NAME: import-all-pet32
-------------------------------------
LIBRARY MODULE NAME: anyall
---------------------------
anyall {
all (uword arrayptr, uword num_elements) -> bool
allw (uword arrayptr, uword num_elements) -> bool
any (uword arrayptr, uword num_elements) -> bool
anyw (uword arrayptr, uword num_elements) -> bool
}
LIBRARY MODULE NAME: buffers
----------------------------
smallringbuffer {
ubyte[] buffer
ubyte fill
ubyte head
ubyte tail
get () -> ubyte
getw () -> uword
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
ringbuffer {
uword buffer_ptr
uword fill
uword head
uword tail
get () -> ubyte
getw () -> uword
inc_head ()
inc_tail ()
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
LIBRARY MODULE NAME: conv LIBRARY MODULE NAME: conv
------------------------- -------------------------
@ -259,6 +301,9 @@ cx16 {
} }
LIBRARY MODULE NAME: shared_cbm_textio_functions
------------------------------------------------
LIBRARY MODULE NAME: diskio LIBRARY MODULE NAME: diskio
--------------------------- ---------------------------
diskio { diskio {
@ -337,6 +382,9 @@ string {
} }
LIBRARY MODULE NAME: shared_string_functions
--------------------------------------------
LIBRARY MODULE NAME: math LIBRARY MODULE NAME: math
------------------------- -------------------------
math { math {
@ -373,6 +421,9 @@ math {
} }
LIBRARY MODULE NAME: prog8_lib
------------------------------
LIBRARY MODULE NAME: test_stack LIBRARY MODULE NAME: test_stack
------------------------------- -------------------------------
test_stack { test_stack {

View File

@ -1,10 +1,52 @@
Prog8 compiler v10.4.1 by Irmen de Jong (irmen@razorvine.net) Prog8 compiler v10.4.2-SNAPSHOT by Irmen de Jong (irmen@razorvine.net)
Prerelease version from git commit 5675d751 in branch master
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
Compiler target: virtual Compiler target: virtual
LIBRARY MODULE NAME: import-all-virtual
---------------------------------------
LIBRARY MODULE NAME: anyall
---------------------------
anyall {
all (uword arrayptr, uword num_elements) -> bool
allw (uword arrayptr, uword num_elements) -> bool
any (uword arrayptr, uword num_elements) -> bool
anyw (uword arrayptr, uword num_elements) -> bool
}
LIBRARY MODULE NAME: buffers
----------------------------
smallringbuffer {
ubyte[] buffer
ubyte fill
ubyte head
ubyte tail
get () -> ubyte
getw () -> uword
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
ringbuffer {
uword buffer_ptr
uword fill
uword head
uword tail
get () -> ubyte
getw () -> uword
inc_head ()
inc_tail ()
init ()
put (ubyte value) -> bool
putw (uword value) -> bool
}
LIBRARY MODULE NAME: conv LIBRARY MODULE NAME: conv
------------------------- -------------------------
@ -357,6 +399,9 @@ monogfx {
} }
LIBRARY MODULE NAME: prog8_lib
------------------------------
LIBRARY MODULE NAME: string LIBRARY MODULE NAME: string
--------------------------- ---------------------------
string { string {
@ -395,6 +440,9 @@ string {
} }
LIBRARY MODULE NAME: shared_string_functions
--------------------------------------------
LIBRARY MODULE NAME: test_stack LIBRARY MODULE NAME: test_stack
------------------------------- -------------------------------
test_stack { test_stack {