Skip to content

Commit 6516d7c

Browse files
committed
regenerate skeletons and set version 10.4
1 parent 31cf760 commit 6516d7c

File tree

8 files changed

+74
-55
lines changed

8 files changed

+74
-55
lines changed

docs/source/_static/symboldumps/skeletons-atari.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
Prog8 compiler v10.3-SNAPSHOT by Irmen de Jong ([email protected])
3-
Prerelease version from git commit 42f4b06a in branch master
2+
Prog8 compiler v10.4 by Irmen de Jong ([email protected])
43
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
54

65
Compiling program import-all-atari.p8
@@ -264,7 +263,7 @@ diskio {
264263
f_open_w (uword filenameptr) -> bool
265264
f_read (uword bufferpointer, uword num_bytes) -> uword
266265
f_read_all (uword bufferpointer) -> uword
267-
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y
266+
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
268267
f_write (uword bufferpointer, uword num_bytes) -> bool
269268
lf_end_list ()
270269
lf_next_entry () -> bool
@@ -308,6 +307,7 @@ string {
308307
ltrim (str s)
309308
ltrimmed (str s) -> str
310309
pattern_match (str string @AY, str pattern @R0) -> clobbers (Y) -> bool @A
310+
rfind (uword string @AY, ubyte character @X) -> ubyte @A, bool @Pc
311311
right (uword source @AY, ubyte length @X, uword target @R1) -> clobbers (A,Y)
312312
rstrip (str s)
313313
rtrim (str s)

docs/source/_static/symboldumps/skeletons-c128.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
Prog8 compiler v10.3-SNAPSHOT by Irmen de Jong ([email protected])
3-
Prerelease version from git commit 42f4b06a in branch master
2+
Prog8 compiler v10.4 by Irmen de Jong ([email protected])
43
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
54

65
Compiling program import-all-c128.p8
@@ -490,7 +489,7 @@ diskio {
490489
f_open_w (uword filenameptr) -> bool
491490
f_read (uword bufferpointer, uword num_bytes) -> uword
492491
f_read_all (uword bufferpointer) -> uword
493-
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y
492+
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
494493
f_write (uword bufferpointer, uword num_bytes) -> bool
495494
lf_end_list ()
496495
lf_next_entry () -> bool
@@ -534,6 +533,7 @@ string {
534533
ltrim (str s)
535534
ltrimmed (str s) -> str
536535
pattern_match (str string @AY, str pattern @R0) -> clobbers (Y) -> bool @A
536+
rfind (uword string @AY, ubyte character @X) -> ubyte @A, bool @Pc
537537
right (uword source @AY, ubyte length @X, uword target @R1) -> clobbers (A,Y)
538538
rstrip (str s)
539539
rtrim (str s)

docs/source/_static/symboldumps/skeletons-c64.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Prog8 compiler v10.3-SNAPSHOT by Irmen de Jong ([email protected])
2-
Prerelease version from git commit 42f4b06a in branch master
1+
2+
Prog8 compiler v10.4 by Irmen de Jong ([email protected])
33
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
44

55
Compiling program import-all-c64.p8
@@ -491,7 +491,7 @@ diskio {
491491
f_open_w (uword filenameptr) -> bool
492492
f_read (uword bufferpointer, uword num_bytes) -> uword
493493
f_read_all (uword bufferpointer) -> uword
494-
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y
494+
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
495495
f_write (uword bufferpointer, uword num_bytes) -> bool
496496
lf_end_list ()
497497
lf_next_entry () -> bool
@@ -535,6 +535,7 @@ string {
535535
ltrim (str s)
536536
ltrimmed (str s) -> str
537537
pattern_match (str string @AY, str pattern @R0) -> clobbers (Y) -> bool @A
538+
rfind (uword string @AY, ubyte character @X) -> ubyte @A, bool @Pc
538539
right (uword source @AY, ubyte length @X, uword target @R1) -> clobbers (A,Y)
539540
rstrip (str s)
540541
rtrim (str s)
@@ -609,9 +610,12 @@ floats {
609610
SQRA () -> clobbers (A,X,Y) = $bf74
610611
TAN () -> clobbers (A,X,Y) = $e2b4
611612
atan (float value) -> float
613+
atan2 (float y, float x) -> float
612614
ceil (float value) -> float
613615
clampf (float value, float minimum, float maximum) -> float
614616
cos (float angle) -> float
617+
cot (float value) -> float
618+
csc (float value) -> float
615619
deg (float angle) -> float
616620
floor (float value) -> float
617621
ln (float value) -> float
@@ -628,6 +632,7 @@ floats {
628632
rnd () -> float
629633
rndseed (float seed)
630634
round (float value) -> float
635+
secant (float value) -> float
631636
sin (float angle) -> float
632637
tan (float value) -> float
633638
tostr (float value @FAC1) -> clobbers (X) -> str @AY

docs/source/_static/symboldumps/skeletons-cx16.txt

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
Prog8 compiler v10.3-SNAPSHOT by Irmen de Jong ([email protected])
3-
Prerelease version from git commit 42f4b06a in branch master
2+
Prog8 compiler v10.4 by Irmen de Jong ([email protected])
43
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
54

65
Compiling program import-all-cx16.p8
@@ -69,12 +68,14 @@ diskio {
6968
f_open_w_seek (str filename) -> bool
7069
f_read (uword bufferpointer, uword num_bytes) -> uword
7170
f_read_all (uword bufferpointer) -> uword
72-
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y
71+
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
7372
f_seek (uword pos_hiword, uword pos_loword)
7473
f_seek_w (uword pos_hiword, uword pos_loword)
74+
f_tell () -> uword @R0, uword @R1, uword @R2, uword @R3
7575
f_write (uword bufferpointer, uword num_bytes) -> bool
7676
fastmode (ubyte mode) -> bool
7777
internal_f_open_w (str filename, bool open_for_seeks) -> bool
78+
internal_f_tell ()
7879
internal_load_routine (uword filenameptr, uword address_override, bool headerless) -> uword
7980
internal_save_routine (uword filenameptr, uword startaddress, uword savesize, bool headerless) -> bool
8081
lf_end_list ()
@@ -132,6 +133,7 @@ txt {
132133
iso16 ()
133134
iso5 ()
134135
iso_off ()
136+
kata ()
135137
lowercase ()
136138
nl ()
137139
petscii2scr (ubyte petscii_char @A) -> ubyte @A
@@ -169,6 +171,35 @@ txt {
169171
LIBRARY MODULE NAME: syslib
170172
---------------------------
171173
cbm {
174+
&uword CBINV
175+
&uword CINV
176+
&uword IBASIN
177+
&uword IBSOUT
178+
&uword ICHKIN
179+
&uword ICKOUT
180+
&uword ICLALL
181+
&uword ICLOSE
182+
&uword ICLRCH
183+
&uword ICRNCH
184+
&uword IERROR
185+
&uword IEVAL
186+
&uword IGETIN
187+
&uword IGONE
188+
&uword ILOAD
189+
&uword IMAIN
190+
&uword IOPEN
191+
&uword IQPLOP
192+
&uword IRQ_VEC
193+
&uword ISAVE
194+
&uword ISTOP
195+
&uword NMINV
196+
&uword NMI_VEC
197+
&uword RESET_VEC
198+
&ubyte SAREG
199+
&ubyte SPREG
200+
&ubyte SXREG
201+
&ubyte SYREG
202+
&uword USRADD
172203
ACPTR () -> ubyte @A = $ffa5
173204
CHKIN (ubyte logical @X) -> clobbers (A,X) -> bool @Pc = $ffc6
174205
CHKOUT (ubyte logical @X) -> clobbers (A,X) = $ffc9
@@ -217,8 +248,6 @@ cbm {
217248
}
218249

219250
cx16 {
220-
&uword CBINV
221-
&uword CINV
222251
const ubyte EXTAPI16_stack_enter_kernal_stack
223252
const ubyte EXTAPI16_stack_leave_kernal_stack
224253
const ubyte EXTAPI16_stack_pop
@@ -236,34 +265,8 @@ cx16 {
236265
const ubyte EXTAPI_ps2data_fetch
237266
const ubyte EXTAPI_ps2data_raw
238267
const ubyte EXTAPI_ps2kbd_typematic
239-
&uword IBASIN
240-
&uword IBSOUT
241-
&uword ICHKIN
242-
&uword ICKOUT
243-
&uword ICLALL
244-
&uword ICLOSE
245-
&uword ICLRCH
246-
&uword ICRNCH
247-
&uword IERROR
248-
&uword IEVAL
249-
&uword IGETIN
250-
&uword IGONE
251-
&uword ILOAD
252-
&uword IMAIN
253-
&uword IOPEN
254-
&uword IQPLOP
255-
&uword IRQ_VEC
256-
&uword ISAVE
257-
&uword ISTOP
268+
const ubyte EXTAPI_scnsiz
258269
&uword KEYHDL
259-
&uword NMINV
260-
&uword NMI_VEC
261-
&uword RESET_VEC
262-
&ubyte SAREG
263-
&ubyte SPREG
264-
&ubyte SXREG
265-
&ubyte SYREG
266-
&uword USRADD
267270
&uword VERA_ADDR
268271
&ubyte VERA_ADDR_H
269272
&ubyte VERA_ADDR_L
@@ -441,6 +444,7 @@ cx16 {
441444
&word r9s
442445
&byte r9sH
443446
&byte r9sL
447+
&ubyte stavec
444448
&ubyte via1acr
445449
&ubyte via1ddra
446450
&ubyte via1ddrb
@@ -534,7 +538,7 @@ cx16 {
534538
enter_basic (bool cold_or_warm @Pc) -> clobbers (A,X,Y) = $ff47
535539
entropy_get () -> ubyte @A, ubyte @X, ubyte @Y = $fecf
536540
extapi (ubyte callnumber @A) -> clobbers (A,X,Y) = $feab
537-
fetch (ubyte bank @X, ubyte index @Y) -> clobbers (X) -> ubyte @A = $ff74
541+
fetch (ubyte zp_startaddr @A, ubyte bank @X, ubyte index @Y) -> clobbers (X) -> ubyte @A = $ff74
538542
get_chrin_keyhandler () -> ubyte @R0, uword @R1
539543
get_program_args (uword buffer @R0, ubyte buf_size @R1, bool binary @Pc)
540544
get_screen_mode () -> ubyte @A, ubyte @X, ubyte @Y
@@ -559,9 +563,9 @@ cx16 {
559563
monitor () -> clobbers (A,X,Y) = $fecc
560564
mouse_config (byte shape @A, ubyte resX @X, ubyte resY @Y) -> clobbers (A,X,Y) = $ff68
561565
mouse_config2 (byte shape @A) -> clobbers (A,X,Y)
562-
mouse_get (ubyte zpdataptr @X) -> ubyte @A = $ff6b
566+
mouse_get (ubyte zdataptr @X) -> ubyte @A, byte @X = $ff6b
563567
mouse_get_sprite_offset () -> clobbers (A,X,Y) -> word @R0, word @R1
564-
mouse_pos () -> clobbers (X) -> ubyte @A, word @R0, word @R1
568+
mouse_pos () -> ubyte @A, uword @R0, uword @R1, byte @X
565569
mouse_scan () -> clobbers (A,X,Y) = $ff71
566570
mouse_set_pos (uword xpos @R0, uword ypos @R1) -> clobbers (X)
567571
mouse_set_sprite_offset (word xoffset @R0, word yoffset @R1) -> clobbers (A,X,Y)
@@ -598,9 +602,11 @@ cx16 {
598602
reset_system ()
599603
restore_vera_context () -> clobbers (A)
600604
restore_virtual_registers () -> clobbers (A,Y)
605+
rom_version () -> clobbers (Y) -> ubyte @A, bool @Pc
601606
rombank (ubyte bank @A)
602607
save_vera_context () -> clobbers (A)
603608
save_virtual_registers () -> clobbers (A,Y)
609+
scnsiz (ubyte width @X, ubyte heigth @Y) -> clobbers (A,X,Y)
604610
screen_mode (ubyte mode @A, bool getCurrent @Pc) -> ubyte @A, ubyte @X, ubyte @Y, bool @Pc = $ff5f
605611
screen_set_charset (ubyte charset @A, uword charsetptr @XY) -> clobbers (A,X,Y) = $ff62
606612
search_x16edit () -> ubyte
@@ -741,6 +747,7 @@ string {
741747
ltrim (str s)
742748
ltrimmed (str s) -> str
743749
pattern_match (str string @AY, str pattern @R0) -> clobbers (Y) -> bool @A
750+
rfind (uword string @AY, ubyte character @X) -> ubyte @A, bool @Pc
744751
right (uword source @AY, ubyte length @X, uword target @R1) -> clobbers (A,Y)
745752
rstrip (str s)
746753
rtrim (str s)
@@ -856,9 +863,12 @@ floats {
856863
VAL_1 (uword string @XY, ubyte length @A) -> clobbers (A,X,Y) -> float @FAC1 = $fe09
857864
ZEROFC () -> clobbers (A,X,Y) = $fe72
858865
atan (float value) -> float
866+
atan2 (float y, float x) -> float
859867
ceil (float value) -> float
860868
clampf (float value, float minimum, float maximum) -> float
861869
cos (float angle) -> float
870+
cot (float value) -> float
871+
csc (float value) -> float
862872
deg (float angle) -> float
863873
floor (float value) -> float
864874
ln (float value) -> float
@@ -875,6 +885,7 @@ floats {
875885
rnd () -> float
876886
rndseed (float seed)
877887
round (float value) -> float
888+
secant (float value) -> float
878889
sin (float angle) -> float
879890
tan (float value) -> float
880891
tostr (float value @FAC1) -> clobbers (X) -> str @AY
@@ -1077,7 +1088,8 @@ sprites {
10771088
data (ubyte spritenum, ubyte bank, uword addr)
10781089
flipx (ubyte spritenum, bool flipped)
10791090
flipy (ubyte spritenum, bool flipped)
1080-
get_data_ptr (ubyte spritenum)
1091+
get_data_ptr (ubyte spritenum @A) -> ubyte @R1, uword @R0
1092+
get_data_ptr_internal (ubyte spritenum)
10811093
getx (ubyte spritenum) -> word
10821094
gety (ubyte spritenum) -> word
10831095
hide (ubyte spritenum)

docs/source/_static/symboldumps/skeletons-pet32.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
Prog8 compiler v10.3-SNAPSHOT by Irmen de Jong ([email protected])
3-
Prerelease version from git commit 42f4b06a in branch master
2+
Prog8 compiler v10.4 by Irmen de Jong ([email protected])
43
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
54

65
Compiling program import-all-pet32.p8
@@ -281,7 +280,7 @@ diskio {
281280
f_open_w (uword filenameptr) -> bool
282281
f_read (uword bufferpointer, uword num_bytes) -> uword
283282
f_read_all (uword bufferpointer) -> uword
284-
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y
283+
f_readline (uword bufptr @AY) -> clobbers (X) -> ubyte @Y, ubyte @A
285284
f_write (uword bufferpointer, uword num_bytes) -> bool
286285
lf_end_list ()
287286
lf_next_entry () -> bool
@@ -325,6 +324,7 @@ string {
325324
ltrim (str s)
326325
ltrimmed (str s) -> str
327326
pattern_match (str string @AY, str pattern @R0) -> clobbers (Y) -> bool @A
327+
rfind (uword string @AY, ubyte character @X) -> ubyte @A, bool @Pc
328328
right (uword source @AY, ubyte length @X, uword target @R1) -> clobbers (A,Y)
329329
rstrip (str s)
330330
rtrim (str s)

docs/source/_static/symboldumps/skeletons-virtual.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

2-
Prog8 compiler v10.3-SNAPSHOT by Irmen de Jong ([email protected])
3-
Prerelease version from git commit 42f4b06a in branch master
2+
Prog8 compiler v10.4 by Irmen de Jong ([email protected])
43
This software is licensed under the GNU GPL 3.0, see https://www.gnu.org/licenses/gpl.html
54

65
Compiling program import-all-virtual.p8
@@ -114,6 +113,7 @@ LIBRARY MODULE NAME: syslib
114113
sys {
115114
const ubyte target
116115
clear_carry ()
116+
clear_irqd ()
117117
disable_caseswitch ()
118118
enable_caseswitch ()
119119
exit (ubyte returnvalue)
@@ -134,6 +134,7 @@ sys {
134134
restore_prog8_internals ()
135135
save_prog8_internals ()
136136
set_carry ()
137+
set_irqd ()
137138
wait (uword jiffies)
138139
waitvsync ()
139140
}
@@ -258,9 +259,12 @@ floats {
258259
const float TWOPI
259260
const float π
260261
atan (float value) -> float
262+
atan2 (float y, float x) -> float
261263
ceil (float value) -> float
262264
clampf (float value, float minimum, float maximum) -> float
263265
cos (float angle) -> float
266+
cot (float value) -> float
267+
csc (float value) -> float
264268
deg (float angle) -> float
265269
floor (float value) -> float
266270
ln (float value) -> float
@@ -277,6 +281,7 @@ floats {
277281
rnd () -> float
278282
rndseed (float seed)
279283
round (float value) -> float
284+
secant (float value) -> float
280285
sin (float angle) -> float
281286
tan (float value) -> float
282287
tostr (float value) -> str
@@ -377,6 +382,7 @@ string {
377382
lstripped (str s) -> str
378383
ltrim (str s)
379384
ltrimmed (str s) -> str
385+
rfind (uword stringptr, ubyte character) -> ubyte
380386
right (str source, ubyte slen, str target)
381387
rstrip (str s)
382388
rtrim (str s)

docs/source/todo.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
TODO
22
====
33

4-
See open issues on github.
5-
6-
Re-generate the skeletons doc files.
7-
84
Improve register load order in subroutine call args assignments:
95
in certain situations, the "wrong" order of evaluation of function call arguments is done which results
106
in overwriting registers that already got their value, which requires a lot of stack juggling (especially on plain 6502 cpu!)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ org.gradle.daemon=true
55
kotlin.code.style=official
66
javaVersion=11
77
kotlinVersion=2.0.20
8-
version=10.4-SNAPSHOT
8+
version=10.4

0 commit comments

Comments
 (0)