Commit Graph

  • 3ce7717bd2 Don't allow to call subroutines that aren't actual functions. uz 2009-08-04 19:23:15 +00:00
  • 70d2d9e50f Fixed an off-by-one bug uz 2009-08-04 19:22:15 +00:00
  • ca73116a03 New function IsLocalLabelName. uz 2009-08-04 19:12:34 +00:00
  • 3d95c9453f There's no longer a need to link in the startup file, it's done my magic instead. uz 2009-07-31 13:39:07 +00:00
  • 4a6a0357e3 There are no more startup object modules. uz 2009-07-31 12:56:36 +00:00
  • 7ecf7a7e58 Adjust geos startup code to new compiler handling. Introduce __STARTUP__ symbol, remove geos.o. uz 2009-07-31 12:46:38 +00:00
  • 8216bf1d6a Force an import of the special symbol __STARTUP__ in the C compiler when main() is encountered. Define this symbol in the startup code. This will automatically force linking of the startup code which can then reside inside the standard library as any other object file. uz 2009-07-31 12:05:42 +00:00
  • 66391bfc25 Inline shifts in g_asl as is already the case in g_scale. uz 2009-07-30 19:41:25 +00:00
  • 043acb1d98 Calculate time in seconds, not ticks. Implement pager output for primes. uz 2009-07-30 19:25:59 +00:00
  • a3eed9016f Fix problem with R3904: Chars on the lhs of opeq must still be accessed as such. uz 2009-07-30 15:15:13 +00:00
  • 37157a31a8 Fixed problems with R3977: While the solution was correct, the generated code is bad, since information is lost when converting functions and arrays to pointers and cannot be regained easily. So I've reverted the change and fixed the problem in a less general manner. uz 2009-07-30 14:45:50 +00:00
  • a4a1c729c8 Allow registers in sweet16 mode also to be specified as constant numbers instead of Rx. Suggestion and sample code by Gabriele Galeotti. uz 2009-07-30 13:05:41 +00:00
  • e1866ed9f8 Correct sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti. uz 2009-07-29 14:37:58 +00:00
  • f62b7a564e The "inc" target needed for the snapshot build script seems to have been lost. uz 2009-07-28 19:40:23 +00:00
  • 778f79c436 Add a dummy return to fix a Watcom warning. uz 2009-07-28 19:36:44 +00:00
  • 5ee49abd12 Fixed a compatibility problem in TypeCmp: Subtracting pointers with different signedness is not allowed. uz 2009-07-28 19:29:11 +00:00
  • fb9c097981 Fixed a problem with function pointer conversion. uz 2009-07-28 19:21:38 +00:00
  • 32348f5778 Fixed an error: If an expression is loaded into the primary, a function must be converted to pointer-to-function and an array to pointer-to-member resp. uz 2009-07-28 18:56:16 +00:00
  • dff0e86458 Prepared the code for referencing a symbol that forces the startup code to get linked in. uz 2009-07-28 18:55:23 +00:00
  • 81464a1214 Removed setoserror as an external. uz 2009-07-27 18:48:03 +00:00
  • 931add050e Added a systime implementation by Stefan Haubenthal with a few changes. The routine reads the TOD clock of CIA1 on the C64 and C128. Since systime was a dummy routine common for all CBMs before, this change adds an individual dummy routine for all other CBM systems. CBM510/610 do also have a TOD clock, so a similar function as in the C64 could be used ... uz 2009-07-27 18:44:37 +00:00
  • 087ae8173a Be sure to read disk errors after sending the command on the command channel. uz 2009-07-27 18:42:37 +00:00
  • 2363a6f5c7 Move common data and ex-/imports into an assembler include named time.inc. uz 2009-07-27 17:59:27 +00:00
  • 5b0323771a Add some code that avoids outputing a forward label in the same line as a normal label. It works but looks bad. uz 2009-07-06 20:33:06 +00:00
  • 84cf638450 Small documentation update by Stefan Haubenthal. uz 2009-07-06 19:59:29 +00:00
  • d7ff0daac3 Fixed a small error. uz 2009-07-02 14:20:38 +00:00
  • 4c8839dfe6 Minor update regarding the Apple ][. ol.sc 2009-06-26 21:23:20 +00:00
  • 56c12fd66f Fixed C&P issue. ol.sc 2009-06-21 08:41:24 +00:00
  • f1039974a6 Added some more details on the specifics of the Apple2 C-library implementation. ol.sc 2009-06-18 21:58:00 +00:00
  • 8e8993de7e Support for the .BANKBYTES, .LOBYTES and .HIBYTES pseudo functions contributed by Kevin Schuetz <scrapdog@runbox.com>. uz 2009-05-18 16:11:34 +00:00
  • 37e08cac59 Re-added cbm_dir which was acidently removed. uz 2009-05-07 18:31:57 +00:00
  • 2f39754838 use RUNAD (from atari.inc) instead of /bin/bash2E0 cpg 2009-04-29 21:37:10 +00:00
  • 482b3da7d8 add Atari MultiJoy driver from Stefan A. Haubenthal cpg 2009-04-11 18:10:44 +00:00
  • ffa8e7be82 New functions LIWarning and LIError. uz 2009-03-08 14:54:53 +00:00
  • fa417d0682 Add a paragraph about which identifiers are valid for labels. uz 2009-03-06 10:10:24 +00:00
  • 2575fd1e16 Fixed a typo in the makefile. HTML generatiom was broken. uz 2009-03-06 09:58:13 +00:00
  • b607a61866 "S" is a keyword in 65816 mode only. uz 2009-03-06 09:56:22 +00:00
  • 60f525346f Fixed asm code to source line relation in switch statements. The switch code was incorrectly attributed to the line following the switch statement. uz 2009-02-23 22:19:23 +00:00
  • 81a30cc888 Fixed source output in generated assembly when -T is used. uz 2009-02-23 22:11:18 +00:00
  • 82b998117a Added a separate output module that is used to manage the output file. uz 2009-02-23 21:25:59 +00:00
  • d352b85c87 Fixed problems with the startup code (Greg King): Interrupts must be hooked before calling initlib because initlib calls contructors and may install drivers, which enable hardware interrupts. Similar for donelib. uz 2009-02-22 18:23:31 +00:00
  • 81c7457e04 Added support for chained interrupt handlers installed with .condes type 2. uz 2009-02-22 18:16:13 +00:00
  • 0aea6d28dc Removed an unsed import. uz 2009-02-22 18:14:54 +00:00
  • d28ba06f79 Fixed problems with the startup code (Greg King): Interrupts must be hooked before calling initlib because initlib calls contructors and may install drivers, which enable hardware interrupts. Similar for donelib. uz 2009-02-22 18:10:01 +00:00
  • e5cbba264f Move the irqcount variable from BSS into DATA, since it is used by the interrupt handler, which is installed *before* zerobss is called. uz 2009-02-22 18:04:25 +00:00
  • a17d27247e initmainargs routine by Stefan Haubenthal. uz 2009-02-22 17:51:12 +00:00
  • bf810bf001 When generating forward references to functions, use the default code address size. uz 2009-02-22 16:38:07 +00:00
  • 36ed57ef80 Documented rename(), moved remove to stdio.h (where it belongs), fixed the output for a few existing examples (needs <verb>/</verb>). uz 2009-02-22 16:08:30 +00:00
  • 2edab5f201 Test program for the rename() function. Supplied by Greg King - thanks! uz 2009-02-22 15:42:40 +00:00
  • 89951068dd writefndiskcmd gets its arguments in ptr1 and Y. uz 2009-02-22 15:40:06 +00:00
  • 3c168b4323 A few minor 65C02 optimizations. uz 2009-02-22 15:39:19 +00:00
  • a0cd736adb Must open the command channel before writing to it. uz 2009-02-22 14:43:02 +00:00
  • 828b4226cf Comment additions and changes. uz 2009-02-22 14:42:32 +00:00
  • 9c193743a0 Added missing .export statements. uz 2009-02-22 14:11:34 +00:00
  • ef18b567f0 Added a new sysrename module to make the high level function rename work. Code is untested! uz 2009-02-22 14:06:12 +00:00
  • 30237d3c36 Moved some code from scratch.s into a new subroutine named writefndiskcmd in the diskcmd.s module. uz 2009-02-22 14:02:52 +00:00
  • 770d230178 fnparse will return zero flag according to error (ZF=1 means no error). uz 2009-02-22 13:54:03 +00:00
  • 4dd9c523e7 Check for division by/modulo by zero when parsing the /= and %= operators. uz 2009-02-17 21:09:59 +00:00
  • c4dac550a8 Small change to avoid endless error loops (aborted by the maximum error count) if an unexpected token is encountered in Primary(). uz 2009-02-17 20:56:13 +00:00
  • 3df8bd5436 A few minor fixes by Stefan Haubenthal. uz 2009-02-15 21:54:03 +00:00
  • 8ef3dbc9f7 Use new syntax for call to linuxdoc. uz 2009-02-15 16:57:06 +00:00
  • dce3753d31 Fixed a few problems with the docs as suggested by Spiro Trikaliotis resp. Greg King. uz 2009-02-15 16:54:58 +00:00
  • ef4062f673 Added a link to the o65 specification by Andre Fachat. uz 2009-02-15 15:23:32 +00:00
  • 148d6c5231 Fixed a typo. uz 2009-02-15 15:15:19 +00:00
  • 5d56159421 Support for the Plus/4 by john "graham" selck. uz 2009-02-11 17:37:18 +00:00
  • feb31603da Use named constants from ctype.inc instead of hard coded numeric values. uz 2009-02-10 22:11:56 +00:00
  • b6d7dba170 Removed an unused import. uz 2009-02-10 22:08:43 +00:00
  • c94e82f8b2 Check for and flag address size modifiers that are invalid for the choosen CPU. uz 2009-02-10 21:10:50 +00:00
  • 9082762519 initial check-in cpg 2009-02-10 19:16:52 +00:00
  • 2961c500f5 add strnicmp/strncasecmp cpg 2009-02-10 19:16:22 +00:00
  • b68094a2f6 add strnicmp.o cpg 2009-02-10 19:15:51 +00:00
  • 222a421969 initial check-in cpg 2009-02-10 19:15:21 +00:00
  • 823d0b7636 Makefile cleanup. Among other things, allow use of the --as-needed linker flag by rearranging arguments for the linker. uz 2009-02-08 17:19:45 +00:00
  • 4c88db2d4b fix typo cpg 2009-01-30 19:36:24 +00:00
  • f94ee2c20e small optimization cpg 2009-01-30 19:17:14 +00:00
  • a3aca2ab67 Added special error messages for Groepaz. uz 2009-01-30 16:30:27 +00:00
  • 8008a980bb now it really works (tested w/MYDOS only) cpg 2009-01-28 22:01:28 +00:00
  • 46cb2548c1 fix comments cpg 2009-01-28 21:54:02 +00:00
  • ab74b7bfd8 Another fix for the SB_SetIndex macro. uz 2009-01-26 08:28:29 +00:00
  • f45e73164d Fixed an error in the SB_SetIndex macro. uz 2009-01-26 08:08:28 +00:00
  • b169d2ad1e fix typo cpg 2009-01-25 21:22:23 +00:00
  • 9d27fe053b Function key support be Stephan Haubenthal. uz 2009-01-24 16:36:34 +00:00
  • 02d5f3025d Function key support be Stephan Haubenthal. uz 2009-01-24 16:35:42 +00:00
  • 1a54f34a84 Fixed a problem with recursive macro expansions. They didn't work if the same macro was involved more than one time. uz 2009-01-24 16:31:18 +00:00
  • dd5e5c43d8 Added a new SetIndex() function/macro. uz 2009-01-24 16:26:48 +00:00
  • b4ced298b1 Rewrite va_copy.h - the check for a C89 compiler wasn't a really good idea, since many compilers are broken in this respect. uz 2009-01-24 16:26:32 +00:00
  • 30f88d2646 Avoid spurious subsequent errors if an include file wasn't found. uz 2009-01-18 15:07:55 +00:00
  • df341b6551 Fixed an optimizer problem: A branch into a list of at least two branches pointing to themselves caused the optimizer to loop forever. uz 2009-01-12 19:48:28 +00:00
  • 8c8e0b131f Code optimizations (by Stefan Haubenthal and me). uz 2009-01-06 17:49:29 +00:00
  • 368e881288 The NES must have the joystick driver linked in. Change by Stefan Haubenthal. uz 2009-01-06 17:44:20 +00:00
  • 308ceeacf9 Fixed problems with casts, where larger values weren't truncated when casting down to char size. uz 2008-12-28 16:25:03 +00:00
  • a1fbb4fe32 Add new --tabsize option to usage/help output. uz 2008-11-11 21:23:15 +00:00
  • d6d807c3db New option --tabsize. uz 2008-11-11 21:21:10 +00:00
  • d66d72bf95 Be more tolerant with dos/windows line endings. uz 2008-11-11 21:16:51 +00:00
  • 17ac0cb4fa Fixed the macro versions of several inline functions. uz 2008-08-31 18:31:18 +00:00
  • 1e46bc16e4 More changes to support address size qualifiers. uz 2008-08-31 18:24:33 +00:00
  • 63943c3f44 Test for pointer must use IsTypePtr not a direct compare. The later may (and does) fail because of qualifiers. uz 2008-08-31 18:23:58 +00:00
  • 7e9b6e7311 Fixed problems with the startup code (Greg King): Interrupts must be hooked before calling initlib because initlib calls contructors and may install drivers, which enable hardware interrupts. Similar for donelib. uz 2008-08-31 18:22:51 +00:00
  • 0cc2bf015e Reverted a change that should not have been commited. uz 2008-08-31 18:21:17 +00:00
  • 0ec5268baa Made strxfrm fastcall, added docs. uz 2008-08-27 20:02:48 +00:00