1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
Commit Graph

487 Commits

Author SHA1 Message Date
cuz
70bc177714 Renamed fmode.inc -> fcntl.inc
git-svn-id: svn://svn.cc65.org/cc65/trunk@1529 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-16 16:35:47 +00:00
cuz
a3c8336725 Fix open flags, minor optimization
git-svn-id: svn://svn.cc65.org/cc65/trunk@1526 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-15 23:52:39 +00:00
cuz
fc81b379d8 cbm_write is not __fastcall__
git-svn-id: svn://svn.cc65.org/cc65/trunk@1525 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-15 18:42:06 +00:00
cuz
ef9edbe357 Rewrite cbm_write() in assembler
git-svn-id: svn://svn.cc65.org/cc65/trunk@1524 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-15 18:21:32 +00:00
cuz
1407208c4c Fixed %W/%U
git-svn-id: svn://svn.cc65.org/cc65/trunk@1517 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 18:08:36 +00:00
cuz
521f30c011 Call strftime instead of formatting the time manually
git-svn-id: svn://svn.cc65.org/cc65/trunk@1515 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 13:28:45 +00:00
cuz
3ed8d565d4 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1514 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 13:26:05 +00:00
cuz
1455555c57 Fixed precision bug in printf family
git-svn-id: svn://svn.cc65.org/cc65/trunk@1513 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 13:17:28 +00:00
cuz
5dba474030 Added strftime
git-svn-id: svn://svn.cc65.org/cc65/trunk@1512 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 13:08:46 +00:00
cuz
e7db3d83ea Cosmetic changes
git-svn-id: svn://svn.cc65.org/cc65/trunk@1511 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-13 08:56:45 +00:00
cuz
704ce5ae22 Added _systime for all platforms
git-svn-id: svn://svn.cc65.org/cc65/trunk@1510 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-12 22:49:38 +00:00
cuz
de7bb15dee Call _systime instead of always returning -1
git-svn-id: svn://svn.cc65.org/cc65/trunk@1509 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-12 22:36:02 +00:00
cuz
43d8ecd567 Added lots of functions from time.h
git-svn-id: svn://svn.cc65.org/cc65/trunk@1507 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-12 22:06:02 +00:00
cuz
35aaf34e20 Add the time() function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1504 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-12 19:54:30 +00:00
cuz
bafba1d673 Handle arguments outside char range correctly
git-svn-id: svn://svn.cc65.org/cc65/trunk@1501 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-11 11:58:20 +00:00
izydorst
c8597283ef added _randomize() implementation
git-svn-id: svn://svn.cc65.org/cc65/trunk@1499 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-10 15:48:57 +00:00
izydorst
d1754b7457 Removed GEOS rand.s implementation in favor of random number generator from common library.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1498 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-10 15:35:10 +00:00
cuz
2f3f1df00f New _randomize() function, do some cleanup on apple2.inc
git-svn-id: svn://svn.cc65.org/cc65/trunk@1496 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-07 12:16:15 +00:00
cpg
f708a05d61 use always a sector size of 128 for sectors 1 to 3, ignore
sst_sectsize


git-svn-id: svn://svn.cc65.org/cc65/trunk@1495 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-06 23:02:48 +00:00
cpg
82696446fc added randomize
git-svn-id: svn://svn.cc65.org/cc65/trunk@1494 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-06 22:21:15 +00:00
cpg
b98a3bd537 zap also deletes *.tgi files
git-svn-id: svn://svn.cc65.org/cc65/trunk@1493 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-06 21:58:00 +00:00
cuz
abec29c613 Make realloc a __fastcall__ function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1490 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:21:14 +00:00
cuz
163c421db0 Renamed randomize to _randomize
git-svn-id: svn://svn.cc65.org/cc65/trunk@1489 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 20:17:38 +00:00
cuz
839b425890 Change initial seed to 1
git-svn-id: svn://svn.cc65.org/cc65/trunk@1488 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 13:19:43 +00:00
cuz
3fae969b5b New randomize() function for nearly all platforms
git-svn-id: svn://svn.cc65.org/cc65/trunk@1487 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 10:48:20 +00:00
cpg
444aa7c944 turn on cursor before returning to DOS
git-svn-id: svn://svn.cc65.org/cc65/trunk@1486 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-05 00:35:16 +00:00
cpg
345bec94f1 some fixes for last change
git-svn-id: svn://svn.cc65.org/cc65/trunk@1485 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-04 23:30:19 +00:00
cpg
e8afafce78 improved handling of cursor display and position
git-svn-id: svn://svn.cc65.org/cc65/trunk@1483 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-03 22:54:52 +00:00
cpg
6078dea817 honour cursor setting
git-svn-id: svn://svn.cc65.org/cc65/trunk@1481 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-03 22:10:55 +00:00
cuz
2275e4c2a8 Moved divt.s from runtime into common because it's a C library function, not a
runtime support function.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1479 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-11-02 10:52:36 +00:00
cuz
9f8887fe6b No support files in atmos dir
git-svn-id: svn://svn.cc65.org/cc65/trunk@1474 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-28 23:35:13 +00:00
cuz
1ee3ccfdc2 Added new div() function written by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1469 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-25 20:42:18 +00:00
cuz
82684d98fb Minor optimization suggested by Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1468 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-24 19:23:24 +00:00
cuz
89fe03a728 Fixed a problem with perror: The error code may get overwritten before it
can be output. Report from Greg King.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1467 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-18 13:38:23 +00:00
cuz
9ca21c07e0 Output an error if an invalid address is used
git-svn-id: svn://svn.cc65.org/cc65/trunk@1452 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 20:58:22 +00:00
cuz
b0559a4b19 Fixed a string in the help screen
git-svn-id: svn://svn.cc65.org/cc65/trunk@1446 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-06 12:03:24 +00:00
cuz
3f1eba36f3 Remove the swapeax routine, it is obsolete
git-svn-id: svn://svn.cc65.org/cc65/trunk@1442 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-05 17:59:42 +00:00
cuz
e00f5ba5a0 Add tgi subdir
git-svn-id: svn://svn.cc65.org/cc65/trunk@1441 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-04 19:27:45 +00:00
cuz
fc774b3006 Last change introduced a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1436 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 19:18:06 +00:00
cuz
91e26f573c Added the TGI mode table
git-svn-id: svn://svn.cc65.org/cc65/trunk@1435 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 18:19:25 +00:00
cuz
eab19873f3 Remove the ",r" spec
git-svn-id: svn://svn.cc65.org/cc65/trunk@1434 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 18:16:46 +00:00
cuz
5fec8ac5c3 Don't call the driver if we don't have one loaded
git-svn-id: svn://svn.cc65.org/cc65/trunk@1431 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 13:54:42 +00:00
cuz
7fffd12f11 Started to add tgi text output functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1428 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 11:18:49 +00:00
cuz
2f44fb05a4 Started to add text output functions
git-svn-id: svn://svn.cc65.org/cc65/trunk@1427 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-10-03 11:18:23 +00:00
cuz
689202057c Fixed the result of the % operator for longs
git-svn-id: svn://svn.cc65.org/cc65/trunk@1409 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-28 19:55:19 +00:00
cuz
3aab67401e Fixed the result of the % operator for ints
git-svn-id: svn://svn.cc65.org/cc65/trunk@1408 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-28 19:41:00 +00:00
cuz
c2b550abf9 vsscanf is a C file
git-svn-id: svn://svn.cc65.org/cc65/trunk@1399 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-09-18 20:47:22 +00:00
cuz
4b805447b6 Prepare VIC20 startup for different start addresses
git-svn-id: svn://svn.cc65.org/cc65/trunk@1390 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-11 15:11:31 +00:00
cuz
12741467f8 Add rule to make zeropage.o in runtime dir if it is missing
git-svn-id: svn://svn.cc65.org/cc65/trunk@1387 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-11 12:39:10 +00:00
cuz
94ea416652 Optimization
git-svn-id: svn://svn.cc65.org/cc65/trunk@1384 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-09 05:07:06 +00:00
cuz
76ee9a1f66 New, shorter readjoy function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1382 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-08 12:27:40 +00:00
cuz
56fd8532ed The vic20 target had the wrong CFLAGS
git-svn-id: svn://svn.cc65.org/cc65/trunk@1381 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-08 12:16:52 +00:00
cuz
93dbb62e9f Small optimizations
git-svn-id: svn://svn.cc65.org/cc65/trunk@1379 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-07 19:35:15 +00:00
cuz
99b193a482 Cleanup, fix VIC20 problem
git-svn-id: svn://svn.cc65.org/cc65/trunk@1378 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-07 19:28:39 +00:00
cuz
8a4378e60c Remove unused code, port to new version
git-svn-id: svn://svn.cc65.org/cc65/trunk@1377 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-07 19:28:23 +00:00
cuz
f0d89e09bc Added VIC20 port changes from Steve Schmidtke
git-svn-id: svn://svn.cc65.org/cc65/trunk@1376 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-08-07 05:18:13 +00:00
cuz
2a8e2d422c Reverse the last change, brain error :-(
git-svn-id: svn://svn.cc65.org/cc65/trunk@1374 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-27 07:44:51 +00:00
cuz
58ef7c8df5 Reintroduce a patch for a bug that has been lost between version 1.2 and 1.3
of the vsprintf module.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1372 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-27 07:31:13 +00:00
cpg
00a4c6ead0 first version, derived from cbm/oserrlist.s
git-svn-id: svn://svn.cc65.org/cc65/trunk@1369 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-24 21:43:57 +00:00
cpg
00302ddd71 oserrlist.o: new object file
git-svn-id: svn://svn.cc65.org/cc65/trunk@1368 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-24 21:42:27 +00:00
cuz
fcd582e3cb Added _stroserror
git-svn-id: svn://svn.cc65.org/cc65/trunk@1365 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-18 13:29:04 +00:00
cuz
baece405e5 Ignore tgi drivers
git-svn-id: svn://svn.cc65.org/cc65/trunk@1364 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-18 13:28:34 +00:00
cpg
2d7f755c32 improved chk_supp: only do the test on SpartaDOS and only if the SDOS version
is below 4 (4 is SpartaDOS-X and supports seeking on all file systems)


git-svn-id: svn://svn.cc65.org/cc65/trunk@1362 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-16 19:27:51 +00:00
cpg
3fd58b9068 initialize __dos_type variable
git-svn-id: svn://svn.cc65.org/cc65/trunk@1361 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-16 18:51:30 +00:00
cpg
2382690f6e added dos_type defines
git-svn-id: svn://svn.cc65.org/cc65/trunk@1360 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-16 18:48:48 +00:00
cuz
87fa3fbdaa Minor optimization
git-svn-id: svn://svn.cc65.org/cc65/trunk@1358 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-16 09:41:00 +00:00
cuz
d4e71bfb59 Removed a JMP (ind)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1357 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-16 09:40:45 +00:00
cuz
7e9d911d16 Add ROM function defines
git-svn-id: svn://svn.cc65.org/cc65/trunk@1355 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-15 20:07:30 +00:00
cuz
55dfc0f312 Use MEMSIZE instead of using a fixed high mem location
git-svn-id: svn://svn.cc65.org/cc65/trunk@1354 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-15 20:03:37 +00:00
cuz
380582e4a3 Copy TGI drivers into main lib dir
git-svn-id: svn://svn.cc65.org/cc65/trunk@1338 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-07 11:17:27 +00:00
cuz
e2f95ebca5 Add tgi_horline
git-svn-id: svn://svn.cc65.org/cc65/trunk@1336 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-07 11:12:41 +00:00
cuz
613cb2ff77 Add TGI driver
git-svn-id: svn://svn.cc65.org/cc65/trunk@1335 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-07 11:12:16 +00:00
cuz
104ce990cb More work on the graphics subsystem
git-svn-id: svn://svn.cc65.org/cc65/trunk@1334 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-07 10:30:31 +00:00
cuz
750f5e5028 Added a file header
git-svn-id: svn://svn.cc65.org/cc65/trunk@1332 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-05 21:11:16 +00:00
cuz
88494bf2e7 Don't call _revers for _textcolor, because both are different and the apple
does not support colors.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1331 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-07-05 14:44:44 +00:00
cuz
84cb41f625 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1328 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-23 14:02:09 +00:00
cuz
71bfc5a910 Return bg color if coords out of range
git-svn-id: svn://svn.cc65.org/cc65/trunk@1326 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 22:01:14 +00:00
cuz
207c4a9e56 Working on the TGI library
git-svn-id: svn://svn.cc65.org/cc65/trunk@1325 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 21:53:58 +00:00
cuz
fb4bb7b383 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1324 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 21:46:32 +00:00
cuz
bf944755dd Working on the TGI library
git-svn-id: svn://svn.cc65.org/cc65/trunk@1323 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 21:40:24 +00:00
cuz
897c1d8523 Added emulation and more clipping for the BAR function.
Copy colors and page count into local storage from the driver.
Added more functions.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1322 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 13:10:02 +00:00
cuz
89752c9d29 Added clipping
git-svn-id: svn://svn.cc65.org/cc65/trunk@1320 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 11:17:06 +00:00
cuz
ccb0127ed9 Target clean needs to clean the tgi dir
git-svn-id: svn://svn.cc65.org/cc65/trunk@1319 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 10:58:47 +00:00
cuz
574ac2393b Rewrote cbm_open and cbm_read in assembler saving about 80 bytes total.
git-svn-id: svn://svn.cc65.org/cc65/trunk@1318 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-22 10:58:24 +00:00
cuz
74b9e4831a Working
git-svn-id: svn://svn.cc65.org/cc65/trunk@1317 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 21:15:46 +00:00
cuz
0ee967fe17 Changed function prototype
git-svn-id: svn://svn.cc65.org/cc65/trunk@1316 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 16:26:15 +00:00
cuz
579e1ae267 TGI Implementation
git-svn-id: svn://svn.cc65.org/cc65/trunk@1315 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 16:25:56 +00:00
cuz
7fc24b058a TGI Implementation
git-svn-id: svn://svn.cc65.org/cc65/trunk@1314 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 14:16:32 +00:00
cuz
2614d20153 TGI Implementation
git-svn-id: svn://svn.cc65.org/cc65/trunk@1313 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 13:39:32 +00:00
cuz
f82ac8a91c TGI Implementation
git-svn-id: svn://svn.cc65.org/cc65/trunk@1312 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 13:28:51 +00:00
cuz
e50b24d46a Implementing TGI
git-svn-id: svn://svn.cc65.org/cc65/trunk@1311 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 12:46:52 +00:00
cuz
8c8f0ba06f New TGI module
git-svn-id: svn://svn.cc65.org/cc65/trunk@1310 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-21 12:08:57 +00:00
cuz
a1fa833da3 Fixed a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1304 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-14 13:13:27 +00:00
izydorst
fc3d55d196 put segment keywords so bss, data and rodata are used for storage
git-svn-id: svn://svn.cc65.org/cc65/trunk@1301 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-04 22:49:09 +00:00
izydorst
593797f9eb fixed LoadW for doing 16-bit offsets loads, not only constants
git-svn-id: svn://svn.cc65.org/cc65/trunk@1300 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-04 11:20:29 +00:00
cuz
eb568293d7 Added support for the Oric atmos (with some help by Debrune Jérôme
<jede@oric.org>)


git-svn-id: svn://svn.cc65.org/cc65/trunk@1297 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-06-03 20:23:15 +00:00
cpg
86f74d96ab added ICAX3, ICAX4, ICAX5
git-svn-id: svn://svn.cc65.org/cc65/trunk@1294 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-05-30 12:48:58 +00:00
cuz
33c1e82bda Move zp space out of crt0.s
git-svn-id: svn://svn.cc65.org/cc65/trunk@1291 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-05-26 09:09:10 +00:00
cuz
3aadd7f62b Combine the existing include files, move zp space out of crt0.s
git-svn-id: svn://svn.cc65.org/cc65/trunk@1290 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-05-26 09:08:52 +00:00
cuz
9556117f0f zpspace cannot be an external symbol
git-svn-id: svn://svn.cc65.org/cc65/trunk@1289 b7a2c559-68d2-44c3-8de9-860c34a00d81
2002-05-26 08:32:47 +00:00