polluks
d6349e0f92
Save a few bytes
2022-07-21 03:13:10 +02:00
polluks
5f151b1316
Revert commits
2022-07-21 03:13:10 +02:00
Greg King
baa582ac0b
Made cbm_open() be more efficient.
...
The fastcall argument doesn't need to be put on a stack. SETNAM can be called before SETLFS.
2022-07-21 03:13:09 +02:00
polluks
687c8052ae
Save a few bytes
2022-07-21 03:13:09 +02:00
Greg King
710c6c6f2f
Fixed cbm_k_readst() to work around a VIC-20 Kernal bug.
...
It properly returns the RS-232 device's status.
2021-03-25 15:22:18 -04:00
Greg King
98f8064b83
Made the directory functions compatible with the Commander X16's DOS.
...
It's directory listing's last line says, "mb free."
2021-02-15 08:56:31 -05:00
Sven Michael Klose
f59cb9af06
Use more compact loops.
2020-12-27 17:54:49 -05:00
Sven Michael Klose
99c0815cdb
Clear up comments a bit.
2020-12-27 17:54:49 -05:00
Sven Michael Klose
3957310950
Knock off two bytes from getcwd(), cbm_read() and cbm_write().
2020-12-27 17:54:49 -05:00
Oliver Schmidt
0981c020b2
Shortened names and adjusted style.
2020-04-02 22:58:16 +02:00
IrgendwerA8
08705a3fdc
Changes resulting from 2nd code review
2020-02-03 20:45:09 +01:00
IrgendwerA8
ce80624f62
ctype size optimization
2020-02-03 20:45:09 +01:00
Greg King
b66f7272af
Updated the cx16 library to the ROM's prerelease 36.
2020-01-11 02:20:52 -05:00
Greg King
3fa253d31f
Updated the cx16 library to the Commander X16 Kernal's prerelease 35.
2019-12-25 10:56:32 -05:00
Bas Wassink
2eac69a943
Remove trailings spaces from CBM-related asm files
2019-03-22 22:54:05 +01:00
Christian Groessler
df3c43bede
Atari: implement clock_getres()
2018-09-28 09:47:20 +02:00
Oliver Schmidt
59a8149556
Added clock_getres() for CBMs.
...
All CBMs have a clock (CIA TOD) resolution of 1/10 second.
2018-08-15 19:40:27 +02:00
Olli Savia
fdce8fb34d
Added a blank line between .include statements and .import/.export statements
2018-07-04 17:40:28 +03:00
Olli Savia
f7636fe8f2
Removed .import for std kernal entries. Added .include "cbm.inc"
2018-07-03 22:47:42 +03:00
Olli Savia
032a3877e0
Added .import for std kernal entries
2018-07-03 22:44:59 +03:00
compyx
8ffe623e74
Add CBM kernal call SECOND to CBM library (see issue #525 )
2018-05-23 17:32:02 +02:00
Oliver Schmidt
746e3d1454
Merge pull request #656 from Compyx/master
...
Add CBM kernal call TKSA to CBM library (see issue #525 )
2018-05-23 09:47:41 +02:00
compyx
30ada49458
Add CBM kernal call TKSA to CBM library
...
This adds the CBM kernal call TKSA as cbm_k_tksa() to the CBM library.
2018-05-22 14:16:00 +02:00
IrgendwerA8
95b4a6f881
Beautified comment.
2018-05-22 11:25:26 +02:00
IrgendwerA8
c40ae4d774
Saved 6 bytes by using popptr1.
2018-05-21 16:21:45 +02:00
Irgendwer
32bbacbb78
Merge branch 'master' into popptr1
2018-05-21 13:33:14 +02:00
IrgendwerA8
c95ed4b8b5
Added "popptr1" which is of common use to save some bytes.
2018-05-20 15:30:18 +02:00
Oliver Schmidt
a795a27689
There's no 'closeallstreams' (anymore ?).
2018-05-17 11:11:40 +02:00
Greg King
33f602f9ad
Shortenned the CBM close() by a byte and a cycle.
2018-02-26 15:07:13 -05:00
mrdudz
8902730756
cbm stuff from greggs pull request
2017-12-11 19:52:11 +01:00
Oliver Schmidt
06794b221d
Made cbm_k_untlk() available.
2017-11-13 20:38:41 +01:00
Greg King
2c03b9a1bc
Added C-code interfaces for the CBM Kernal functions SCNKEY and UDTIM.
2016-08-07 15:50:10 -04:00
Oliver Schmidt
13482984ca
Introduced internal gotoxy that pops both parameters.
...
About all CONIO functions offering a <...>xy variant call
popa
_gotoxy
By providing an internal gotoxy variant that starts with a popa all those CONIO function can be shortened by 3 bytes. As soon as program calls more than one CONIO function this means an overall code size reduction.
2016-06-05 14:58:38 +02:00
Oliver Schmidt
419eb700b5
Renamed INITBSS to INIT and INIT to ONCE.
...
The way we want to use the INITBSS segment - and especially the fact that it won't have the type bss on all ROM based targets - means that the name INITBSS is misleading. After all INIT is the best name from my perspective as it serves several purposes and therefore needs a rather generic name.
Unfortunately this means that the current INIT segment needs to be renamed too. Looking for a short (ideally 4 letter) name I came up with ONCE as it contains all code (and data) accessed only once during initialization.
2016-03-06 21:27:19 +01:00
Oliver Schmidt
0ee9b2e446
Changed run location of INIT segment.
...
So far the INIT segment was run from the later heap+stack. Now the INIT segment is run from the later BSS. The background is that so far the INIT segment was pretty small (from $80 to $180 bytes). But upcoming changes will increase the INIT segment in certain scenarios up to ~ $1000 bytes. So programs with very limited heap+stack might just not been able to move the INIT segment to its run location. But moving the INIT segment to the later BSS allows it to occupy the later BSS+heap+stack.
In order to allow that the constructors are _NOT_ allowed anymore to access the BSS. Rather they must use the DATA segment or the new INITBSS segment. The latter isn't cleared at any point so the constructors may use it to expose values to the main program. However they must make sure to always write the values as they are not pre-initialized.
2015-10-14 22:52:09 +02:00
Oliver Schmidt
5e960d106e
Allow to override chars used for horizontal and vertical lines.
2015-10-12 21:04:06 +02:00
Oliver Schmidt
575f859a03
Keep low level VIC sprite stuff out of user code.
2015-10-09 18:33:35 +02:00
Greg King
6217f8fa3a
Made the Commodore version of exec() work in programs that are so big that they load into all of BASIC RAM.
...
The function won't cause an "out of memory" error.
2015-09-28 11:27:39 -04:00
Greg King
38231a5cc6
Made _afailed() and uncompress() be fastcall functions.
2015-03-13 07:35:47 -04:00
Greg King
66d79da3c2
Made cbm_load() be a fastcall function.
2015-03-13 05:46:40 -04:00
Greg King
a798b1d648
Made __fastcall__ be the default calling convention for non-variadic functions.
2015-03-10 05:53:52 -04:00
Greg King
8324221360
Improved some multiplication code.
2014-07-17 07:11:14 -04:00
Greg King
c6e7d835ef
Fixed a buffer overrun bug.
2014-07-17 07:05:10 -04:00
Greg King
0390c34e88
Changed multi-line C comments into another style.
...
The left side doesn't look unbalanced.
2014-06-30 16:51:07 -04:00
Greg King
b8e65aca5a
Used longer error text.
...
Added more codes and messages.
2014-05-28 23:01:48 -04:00
Greg King
3d6f54b7a6
Updated the CBM error tables.
...
* Added more mappings between DOS and C codes.
* Changed generic error messages into specific ones.
2014-05-26 09:03:43 -04:00
Greg King
449fceebdd
Fixed typo (Ilegal).
2014-04-03 17:28:36 -04:00
Greg King
50c626d02b
Avoided a reload by using a second register.
2013-12-23 12:20:28 -05:00
Greg King
263ae3ceb1
Made the CBM stdin consoles echo '\n' to the screen.
...
That fix makes Commodore platforms be consistent with other platforms' consoles.
2013-12-23 11:48:58 -05:00
Greg King
875212a850
Added more details about how the CBM exec() works.
2013-09-04 09:16:00 -04:00