Irmen de Jong
0c0affd1bf
cx16 diskio.load_size() now returns full long size. Fixes #184
2025-10-19 21:18:46 +02:00
Irmen de Jong
a68209be37
converting untyped to typed pointers in cx16 libraries
2025-08-24 14:13:02 +02:00
Irmen de Jong
e375f6afce
fix diskio.f_read() returning 1 less than the actual size read.
...
fix diskio.f_read_all() more robust error status end of loop checking.
2025-04-21 05:02:16 +02:00
Irmen de Jong
fb44c87597
make diskio.f_read() ROM-compatible
2025-04-15 00:23:23 +02:00
Irmen de Jong
14a2b96609
scanned libraries for self-modifying code/inline vars (romable problem)
2025-04-14 21:15:32 +02:00
Irmen de Jong
05eb15d4f7
add cx16.memory_decompress_from_func()
2025-04-06 13:48:08 +02:00
Irmen de Jong
d0909d7810
added diskio.loadlib() convenience function to load library blobs
2025-03-24 22:35:34 +01:00
Irmen de Jong
90f80558d7
add more 'modified' comments to self-modifying code lines
2025-03-21 17:59:49 +01:00
markjreed
29fac122e1
fix: ignore EOF when looking for error status after reading first byte of newly-opened file ( #166 )
...
* fix: ignore EOF when looking for error status after reading first byte of newly-opened file
* fix: replace hard-coded $40 and $BF with STATUS_EOF and ~STATUS_EOF
2025-03-19 23:00:55 +01:00
Irmen de Jong
06ca68a625
add drivenumber to fileselector config
2025-02-02 23:09:27 +01:00
Irmen de Jong
0864b0a1b7
cx16: added several diskio routines to list only the files or dir entries on the disk
...
uses CBM DOS filtering $:*=d and $:*=p
2025-02-01 22:41:34 +01:00
Irmen de Jong
b014facbd3
cx16 fileselector improvements
2025-01-03 01:35:20 +01:00
Irmen de Jong
10b9162dc5
improving fileselector
2024-12-30 21:34:03 +01:00
Irmen de Jong
099fe280ba
improved diskio.diskname() error detection
2024-12-29 10:29:31 +01:00
Irmen de Jong
c0ae35b3a3
tweaks, bump version 11.0
2024-12-22 06:34:17 +01:00
Irmen de Jong
c3dc74788a
added diskio.get_loadaddress()
...
added compression.decode_tscrunch_inplace()
2024-12-22 03:17:16 +01:00
Irmen de Jong
1f49e8fe75
in diskio.f_readline make sure AY result isn't clobbered
2024-12-21 06:25:56 +01:00
Irmen de Jong
565973c520
diskio read & write routines now always reset the io channels back to the defaults before returning
...
This means you don't have to call CLRCHN yourself anymore inbetween if you want to do screen output or keyboard input while a file is open
2024-12-03 23:46:07 +01:00
Irmen de Jong
8341f9c066
diskio.status(): remove unreliable device not present error detection
2024-12-02 23:33:33 +01:00
Irmen de Jong
28cac291de
diskio.f_open_w() now also resets io channels back to defaults, like f_open() already did
2024-12-02 22:25:32 +01:00
Irmen de Jong
8fa14a10e2
Optimize diskio.f_read for size=1, also improve ST check
2024-12-02 21:25:38 +01:00
Irmen de Jong
906b137a7c
renamed 'string' module to 'strings' for consistency
2024-11-23 15:51:38 +01:00
Irmen de Jong
09cbdf410a
added diskio.exists(), made f_close_w() idempotent like f_close() already was
2024-10-31 21:25:22 +01:00
Irmen de Jong
73609636c5
gfx_lores.set_screen_mode() is now gfx_lores.graphics_mode()
...
adding all missing routines from gfx2 to gfx_lores
2024-10-30 21:39:37 +01:00
Irmen de Jong
1a6b95b388
house cleaning
2024-10-10 20:46:18 +02:00
Irmen de Jong
c7b1e8d772
fixed a variable scopedname issue where it took the fully scoped name instead of just the local name
...
this made 64tass not strip out that code if it was unused
2024-09-14 23:17:26 +02:00
Irmen de Jong
6be6eb2227
tweak diskio to not always include unused subroutine internal_f_tell() in resulting program
2024-09-11 19:51:53 +02:00
Irmen de Jong
9046fe8d3a
ringbuffer and pointer optimization todo
2024-07-16 22:59:31 +02:00
Irmen de Jong
69f953fd9b
diskio.f_readline() now also returns I/O status as secondary return value in A
2024-07-06 22:25:01 +02:00
Irmen de Jong
3ea0f0cbaa
remove 16 bit f_tell variant.
2024-05-22 21:47:02 +02:00
Irmen de Jong
f3e3311598
added diskio.f_tell() and f_tell32() on the cx16 target
2024-05-21 23:14:25 +02:00
Irmen de Jong
88ae3daa42
Merge branch 'refs/heads/master' into multi-assign
...
# Conflicts:
# examples/test.p8
2024-04-06 00:14:41 +02:00
Irmen de Jong
08b8fe01ab
added missing cmp #0 after func()==0
...
cx16: diskio.fastmode() now returns success boolean
2024-04-06 00:04:54 +02:00
Irmen de Jong
98acff802f
better checking for number of return values
...
assignment optimization if return register already is the same as the assignment target
2024-04-04 23:47:33 +02:00
Irmen de Jong
34f3169dda
tweak library routines for multiple return values.
...
cbm:
MEMTOP changed (now also returns nr of banks in A)
STOP2 removed (just use STOP)
RDTIM_safe() added TEST IRQ ENABLE
RDTIM16 changed (internally) TEST IRQ ENABLE
cx16:
screen_mode changed (now also returns width and height in X,Y)
kbdbuf_peek2 removed (just use kbdbuf_peek)
joystick_get changed (presence now returned as bool in Y)
joystick_get2 removed (just use joystick_get)
mouse_pos changed (now properly returns x and y position in R0 and R1)
set_led_brightness changed into set_led_state, with only a boolean on/off argument. There is no variable brightness.
sys.set_leds_brightness() removed. Use cx16.set_led_brightness().
2024-04-04 01:39:19 +02:00
Irmen de Jong
9af4168ae2
cx16: added diskio.fastmode() to select the fast serial disk mode for the SD card
2024-04-02 22:17:51 +02:00
Irmen de Jong
681ce9c60c
fix void warning
2024-03-27 23:05:41 +01:00
adiee5
551e5688da
Add diskio.status_code() function ( #130 )
2024-03-27 19:42:47 +01:00
Irmen de Jong
80f39e8097
Merge branch 'booleans'
...
# Conflicts:
# compiler/res/prog8lib/cx16/monogfx.p8
# compiler/res/prog8lib/virtual/monogfx.p8
# compiler/src/prog8/compiler/astprocessing/BoolRemover.kt
# compiler/test/TestTypecasts.kt
# docs/source/todo.rst
# examples/cx16/highresbitmap.p8
# examples/test.p8
# httpCompilerService/src/prog8/http/TestHttp.kt
2024-03-11 01:00:48 +01:00
Irmen de Jong
52649a8e4f
conv routines now return the string buffer address.
2024-03-08 02:12:46 +01:00
Irmen de Jong
c532e28841
fix several remaining bool return values in library routines
2024-03-02 23:19:39 +01:00
Irmen de Jong
1ca3f64bf0
libraries: add ==0 or !=0 to expressions that depend on implicit conversion from byte to bool
2024-03-02 23:19:20 +01:00
Irmen de Jong
09c6cb4d6b
replace unwritten vars by consts. Improved const eval.
...
Fixed some slight bugs in library code
2023-12-28 05:17:15 +01:00
Irmen de Jong
2b8f613a00
added %option ignore_unused to suppress warnings about unused vars and subs in that module/block.
...
Also improved error for invalid directive.
2023-12-26 23:37:59 +01:00
Irmen de Jong
0f26b39997
improve diskio error handling and device not found errors
...
for instance if you set drivenumber to 9 without having a second drive connected, it used to hang in various routines
2023-12-17 22:39:08 +01:00
Irmen de Jong
dd4c073e18
version 9.7
2023-12-09 18:54:54 +01:00
Irmen de Jong
5d9caef45f
bmx can load "stamps"
2023-11-29 21:07:22 +01:00
Irmen de Jong
a6756d2cea
removed diskio.set_drive(), just set the diskio.drivenumber variable directly
...
there already wasn't a getter
2023-11-19 22:15:56 +01:00
Irmen de Jong
f81061dd42
error msg and comments
2023-11-18 01:03:34 +01:00
Irmen de Jong
aa949165c7
diskio.f_open_w() error handling back to what it was before
...
Otherwise it eats the status message. Added comment that you have to check this manually to be sure if the call succeeded or not!
2023-11-12 21:14:06 +01:00