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

142 Commits

Author SHA1 Message Date
Oliver Schmidt
e2419ece0b Added scrcode macro for the Apple II.
Although the Apple II generally works with plain ASCII (i.e. in the ProDOS 8 MLI) the actual screen codes differ. This fixes #260.
2016-03-27 18:26:46 +02:00
John Brandwood
ef153364ea Add indirect JMP examples and fix typos in the documentation. 2016-02-26 08:10:11 -08:00
John Brandwood
d23db09f7f Add optional feature to use brackets instead of parens for 6502 indirect addressing. 2016-02-25 12:40:31 -08:00
Greg King
3c8c62c6ab Fixed the ca65 Assembly-code variable ".paramcount".
Fixed how it's described in the ca65 document.
2015-11-17 14:21:40 -05:00
Marcus Rowe
67cd0c2197 Added .asize and .isize pseudo variables
These pseudo variables will return the size of the accumulator/index
in bits.

For the 65816 instruction set .ASIZE/.ISIZE will return either 8 or 16,
depending on the current size of the operand in immediate addressing
mode.

For all other CPU instruction sets, .ASIZE/.ISIZE will always return 8.

For example:

	; Reverse Subtract with Accumulator
	; A = memory - A
	.macro rsb param
		.if .asize = 8
			eor	#$ff
		.else
			eor	#$ffff
		.endif
		sec
		adc	param
	.endmacro
2015-10-20 09:30:25 +10:00
Greg King
05df907114 Fixed the syntax in the shortcut expansion of ".ZEROPAGE".
Added a reference from ".SEGMENT" to ".ZEROPAGE".
2015-08-01 05:50:13 -04:00
Greg King
a55b6ef3db Removed obsolete lines from a list of 65816 mnemonic aliases.
Described what the macroes in macro package "generic" do.
2015-07-29 06:55:50 -04:00
JT
e7fca18798 Added .DEFINEDMACRO psuedo function
Fixed typo/fomatting

Formatting fix

Refactor the code to test for a macro

Remove .FEATURE requirement for .DEFINEDMACRO
2015-06-27 01:39:11 -04:00
JT
c30d87f0b7 Update documentation to .ISMNEMONIC 2015-05-22 20:33:42 -04:00
JT
9ee5adc190 Remove .FEATURE requirement and add documentation 2015-05-19 00:06:12 -04:00
JT
0d765abd6c Fix typo in documentation for .ADDRSIZE 2015-04-21 16:24:27 -04:00
JT
ffa52863b3 Small changes to coding style and to ca65 documentation for .ADDRSIZE 2015-04-21 16:09:01 -04:00
JT
2d3cf98bc8 2nd Small change to .ADDRSIZE documentation 2015-04-20 19:40:41 -04:00
JT
9e9884764e Small change to .ADDRSIZE documentation 2015-04-20 19:09:18 -04:00
JT
499eab65f1 Updated documentation for .ADDRSIZE and .FEATURE addrsize 2015-04-20 18:56:34 -04:00
Stephan Mühlstrasser
810fe229e9 Document osic1p-specific constants. 2015-03-23 19:31:46 +01:00
Oliver Schmidt
2c975d3642 Create static drivers directly from source files.
Up to now static drivers were created via co65 from dynamic drivers. However there was an issue with that approach:

The dynamic drivers are "o65 simple files" which obligates that they start with the 'code' segment. However dynamic drivers need to start with the module header - which is written to. For dynamic drivers this isn't more than a conceptual issue because they are always contain a 'data' segment and may therefore only be loaded into writable memory.

However when dynamic drivers are converted to static drivers using co65 then that issue becomes a real problem as then the 'code' segment may end up in non-writable memory - and thus writing to the module header fails.

Instead of changing the way dynamic drivers work I opted to rather make static driver creation totally independent from dynamic drivers. This allows to place the module header in the 'data' segment (see 'module.mac').
2014-06-04 23:50:18 +02:00
Oliver Schmidt
99f0a56f63 Merge pull request #122 from groessler/a5200
new target: Atari 5200 console
2014-05-30 22:52:51 +02:00
Christian Groessler
c382c59579 documentation updates for Atari 5200 2014-05-16 02:26:20 +02:00
Greg King
e4f8b6fef0 Avoided makeinfo warnings when Travis CI runs LinuxDoc Tools. 2014-04-24 13:03:52 -04:00
Greg King
bb9aa7558f Fixed the SGML <htmlurl> and <url> tags.
Those tags have two attributes: "url=" and "name=".  In the non-HTML output formats, <url> shows both fields, while <htmlurl> shows only the name field (as the HTML format always does.)  Thus, the general rules are
1. If the two attributes are different, then use <url>.
2. If they are similar, then use <htmlurl>.
3. If they are the same, then consider using <url> without the "name=" attribute.
(The reason for rules 2 and 3 is that the same text shouldn't be shown twice.)

There can be exceptions.  Example: "od65.sgml" has <htmlurl> because the URL
would disturb the flow of a sentence.
2014-04-14 05:54:13 -04:00
Greg King
79d8a0d857 Streamlined the document author credits. 2014-04-08 15:36:39 -04:00
Oliver Schmidt
e227a07c8f Adjusted doc to recent drop of VER_PATCH. 2014-03-10 19:03:01 +01:00
Oliver Schmidt
7b6a6d168c Fixed typo. 2014-02-08 23:01:15 +01:00
Oliver Schmidt
a7b84bb618 Removed references to SunPlus. 2014-02-08 22:48:49 +01:00
Oliver Schmidt
c3d93d259b Updated linuxdoc sources from https://github.com/groessler/cc65/tree/gh-pages-sgml. 2014-02-04 22:51:39 +01:00
Oliver Schmidt
aa7561ec45 Revert "No linuxdoc here. Documenation is to be maintained as HTML in branch 'gh-pages'."
This reverts commit fcea8951f1.

Conflicts:
	doc/Makefile
2014-02-04 22:18:58 +01:00
Oliver Schmidt
fcea8951f1 No linuxdoc here. Documenation is to be maintained as HTML in branch 'gh-pages'. 2013-03-25 00:50:52 +01:00
silverdr
deb18b8e1e typo in the doc corrected, tabs adjusted
git-svn-id: svn://svn.cc65.org/cc65/trunk@5964 b7a2c559-68d2-44c3-8de9-860c34a00d81
2013-01-15 11:30:11 +00:00
uz
9fce84c722 Added a new feature "underline_in_numbers" requested by thefox. Using
underlines it is possible to group the digits for easier reading.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5963 b7a2c559-68d2-44c3-8de9-860c34a00d81
2013-01-12 19:07:31 +00:00
ol.sc
369f702860 Fixed typo.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5936 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-16 22:47:34 +00:00
uz
aad6cd2a14 Allow to map characters to code zero with .CHARMAP.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5921 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-06 20:36:45 +00:00
uz
4682d7542a Add -d (debug mode) to the assembler options. In studyexpr, use the debug
flag, not the verbose flag to decide if the studied expression should be
output.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5919 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-11-06 20:24:44 +00:00
uz
1ddd1288c5 Some documentation fixes. Errors reported by Michael Bazzinotti
<mbazzinotti@gmail.com>.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5813 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-09-02 20:09:39 +00:00
uz
c1bbf69d72 New option --relax-checks that disable the check for a match beween size oif
an expression and the address size. Will allow short branches between segments
among other things. Suggested by Spiro Trikaliotis.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5810 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-08-20 20:07:05 +00:00
uz
ff16f28405 Document that scopes don't have an effect on unnamed labels.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5801 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-08-01 19:32:38 +00:00
uz
4c56598dcb .SET has been missing from the list of pseudo ops.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5629 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-03-31 19:37:24 +00:00
uz
b73f86abc2 .UNION/.ENDUNION were missing from the docs.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5628 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-03-31 19:33:27 +00:00
uz
7ecb4c50b1 Add bounded expressions for immediate addressing and list the new feature in
the docs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5406 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-18 19:50:34 +00:00
uz
6c490ba16c Add some warnings about using .DEFINE.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5397 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-13 15:58:17 +00:00
uz
1fccae4cff Finish support for .BANK.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5384 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-01-04 22:45:26 +00:00
uz
dba7806ab4 New behaviour of .ALIGN, new option --large-alignment.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5339 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-12-28 14:02:09 +00:00
uz
0d04730ddf Documented the .SET operator that has been available for about 6 years now :-)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5309 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-12-10 12:09:46 +00:00
uz
e23d0e511c Describe the atari macro package.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5306 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-12-02 17:34:19 +00:00
uz
dcd91b5d53 Updated link to reference document for illegal opcodes.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5086 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-17 15:26:22 +00:00
uz
313e27035d Fix meaning of ALR.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5084 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-17 15:24:53 +00:00
uz
a6ca0b2093 Fixed a bad styled sentence.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5069 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-07-02 20:54:39 +00:00
uz
70d5eb7456 Fix it's -> its where applicable. (Stefan Haubenthal).
git-svn-id: svn://svn.cc65.org/cc65/trunk@5065 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-06-17 18:56:55 +00:00
uz
d1426aaa43 Finished implemenation of commands to delete macros. Added the new commands to
the docs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5050 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-06-12 21:29:07 +00:00
uz
a6389e6406 The assembler options -l and --listing will now take the name of the listing
file as an argument.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4967 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-02-06 20:10:19 +00:00