3ce7717bd2Don't allow to call subroutines that aren't actual functions.
uz
2009-08-04 19:23:15 +00:00
70d2d9e50fFixed an off-by-one bug
uz
2009-08-04 19:22:15 +00:00
ca73116a03New function IsLocalLabelName.
uz
2009-08-04 19:12:34 +00:00
3d95c9453fThere'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
4a6a0357e3There are no more startup object modules.
uz
2009-07-31 12:56:36 +00:00
7ecf7a7e58Adjust geos startup code to new compiler handling. Introduce __STARTUP__ symbol, remove geos.o.
uz
2009-07-31 12:46:38 +00:00
8216bf1d6aForce 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
66391bfc25Inline shifts in g_asl as is already the case in g_scale.
uz
2009-07-30 19:41:25 +00:00
043acb1d98Calculate time in seconds, not ticks. Implement pager output for primes.
uz
2009-07-30 19:25:59 +00:00
a3eed9016fFix problem with R3904: Chars on the lhs of opeq must still be accessed as such.
uz
2009-07-30 15:15:13 +00:00
37157a31a8Fixed 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
a4a1c729c8Allow 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
e1866ed9f8Correct sweet16 addressing bug with SUB instr. Patch by Gabriele Galeotti.
uz
2009-07-29 14:37:58 +00:00
f62b7a564eThe "inc" target needed for the snapshot build script seems to have been lost.
uz
2009-07-28 19:40:23 +00:00
778f79c436Add a dummy return to fix a Watcom warning.
uz
2009-07-28 19:36:44 +00:00
5ee49abd12Fixed a compatibility problem in TypeCmp: Subtracting pointers with different signedness is not allowed.
uz
2009-07-28 19:29:11 +00:00
fb9c097981Fixed a problem with function pointer conversion.
uz
2009-07-28 19:21:38 +00:00
32348f5778Fixed 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
dff0e86458Prepared the code for referencing a symbol that forces the startup code to get linked in.
uz
2009-07-28 18:55:23 +00:00
81464a1214Removed setoserror as an external.
uz
2009-07-27 18:48:03 +00:00
931add050eAdded 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
087ae8173aBe sure to read disk errors after sending the command on the command channel.
uz
2009-07-27 18:42:37 +00:00
2363a6f5c7Move common data and ex-/imports into an assembler include named time.inc.
uz
2009-07-27 17:59:27 +00:00
5b0323771aAdd 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
84cf638450Small documentation update by Stefan Haubenthal.
uz
2009-07-06 19:59:29 +00:00
d7ff0daac3Fixed a small error.
uz
2009-07-02 14:20:38 +00:00
4c8839dfe6Minor update regarding the Apple ][.
ol.sc
2009-06-26 21:23:20 +00:00
f1039974a6Added some more details on the specifics of the Apple2 C-library implementation.
ol.sc
2009-06-18 21:58:00 +00:00
8e8993de7eSupport for the .BANKBYTES, .LOBYTES and .HIBYTES pseudo functions contributed by Kevin Schuetz <scrapdog@runbox.com>.
uz
2009-05-18 16:11:34 +00:00
37e08cac59Re-added cbm_dir which was acidently removed.
uz
2009-05-07 18:31:57 +00:00
482b3da7d8add Atari MultiJoy driver from Stefan A. Haubenthal
cpg
2009-04-11 18:10:44 +00:00
ffa8e7be82New functions LIWarning and LIError.
uz
2009-03-08 14:54:53 +00:00
fa417d0682Add a paragraph about which identifiers are valid for labels.
uz
2009-03-06 10:10:24 +00:00
2575fd1e16Fixed 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
60f525346fFixed 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
81a30cc888Fixed source output in generated assembly when -T is used.
uz
2009-02-23 22:11:18 +00:00
82b998117aAdded a separate output module that is used to manage the output file.
uz
2009-02-23 21:25:59 +00:00
d352b85c87Fixed 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
81c7457e04Added support for chained interrupt handlers installed with .condes type 2.
uz
2009-02-22 18:16:13 +00:00
0aea6d28dcRemoved an unsed import.
uz
2009-02-22 18:14:54 +00:00
d28ba06f79Fixed 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
e5cbba264fMove 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
a17d27247einitmainargs routine by Stefan Haubenthal.
uz
2009-02-22 17:51:12 +00:00
bf810bf001When generating forward references to functions, use the default code address size.
uz
2009-02-22 16:38:07 +00:00
36ed57ef80Documented 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
2edab5f201Test program for the rename() function. Supplied by Greg King - thanks!
uz
2009-02-22 15:42:40 +00:00
89951068ddwritefndiskcmd gets its arguments in ptr1 and Y.
uz
2009-02-22 15:40:06 +00:00
3c168b4323A few minor 65C02 optimizations.
uz
2009-02-22 15:39:19 +00:00
a0cd736adbMust open the command channel before writing to it.
uz
2009-02-22 14:43:02 +00:00
828b4226cfComment additions and changes.
uz
2009-02-22 14:42:32 +00:00
9c193743a0Added missing .export statements.
uz
2009-02-22 14:11:34 +00:00
ef18b567f0Added a new sysrename module to make the high level function rename work. Code is untested!
uz
2009-02-22 14:06:12 +00:00
30237d3c36Moved 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
770d230178fnparse will return zero flag according to error (ZF=1 means no error).
uz
2009-02-22 13:54:03 +00:00
4dd9c523e7Check for division by/modulo by zero when parsing the /= and %= operators.
uz
2009-02-17 21:09:59 +00:00
c4dac550a8Small 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
3df8bd5436A few minor fixes by Stefan Haubenthal.
uz
2009-02-15 21:54:03 +00:00
8ef3dbc9f7Use new syntax for call to linuxdoc.
uz
2009-02-15 16:57:06 +00:00
dce3753d31Fixed a few problems with the docs as suggested by Spiro Trikaliotis resp. Greg King.
uz
2009-02-15 16:54:58 +00:00
ef4062f673Added a link to the o65 specification by Andre Fachat.
uz
2009-02-15 15:23:32 +00:00
148d6c5231Fixed a typo.
uz
2009-02-15 15:15:19 +00:00
5d56159421Support for the Plus/4 by john "graham" selck.
uz
2009-02-11 17:37:18 +00:00
feb31603daUse named constants from ctype.inc instead of hard coded numeric values.
uz
2009-02-10 22:11:56 +00:00
b6d7dba170Removed an unused import.
uz
2009-02-10 22:08:43 +00:00
c94e82f8b2Check for and flag address size modifiers that are invalid for the choosen CPU.
uz
2009-02-10 21:10:50 +00:00
823d0b7636Makefile 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
9d27fe053bFunction key support be Stephan Haubenthal.
uz
2009-01-24 16:36:34 +00:00
02d5f3025dFunction key support be Stephan Haubenthal.
uz
2009-01-24 16:35:42 +00:00
1a54f34a84Fixed 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
dd5e5c43d8Added a new SetIndex() function/macro.
uz
2009-01-24 16:26:48 +00:00
b4ced298b1Rewrite 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
30f88d2646Avoid spurious subsequent errors if an include file wasn't found.
uz
2009-01-18 15:07:55 +00:00
df341b6551Fixed 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
8c8e0b131fCode optimizations (by Stefan Haubenthal and me).
uz
2009-01-06 17:49:29 +00:00
368e881288The NES must have the joystick driver linked in. Change by Stefan Haubenthal.
uz
2009-01-06 17:44:20 +00:00
308ceeacf9Fixed problems with casts, where larger values weren't truncated when casting down to char size.
uz
2008-12-28 16:25:03 +00:00
a1fbb4fe32Add new --tabsize option to usage/help output.
uz
2008-11-11 21:23:15 +00:00
d6d807c3dbNew option --tabsize.
uz
2008-11-11 21:21:10 +00:00
d66d72bf95Be more tolerant with dos/windows line endings.
uz
2008-11-11 21:16:51 +00:00
17ac0cb4faFixed the macro versions of several inline functions.
uz
2008-08-31 18:31:18 +00:00
1e46bc16e4More changes to support address size qualifiers.
uz
2008-08-31 18:24:33 +00:00
63943c3f44Test 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
7e9b6e7311Fixed 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
0cc2bf015eReverted a change that should not have been commited.
uz
2008-08-31 18:21:17 +00:00
0ec5268baaMade strxfrm fastcall, added docs.
uz
2008-08-27 20:02:48 +00:00