1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-28 10:55:43 +00:00
cc65/src/ca65
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
..
anonname.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
anonname.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
asserts.c Normalized code. 2014-03-04 01:11:19 +01:00
asserts.h Normalized code. 2014-03-04 01:11:19 +01:00
condasm.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
condasm.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dbginfo.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dbginfo.h Normalized code. 2014-03-04 01:11:19 +01:00
ea65.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
ea65.h Normalized code. 2014-03-04 01:11:19 +01:00
ea.h Normalized code. 2014-03-04 01:11:19 +01:00
easw16.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
easw16.h
enum.c Normalized code. 2014-03-04 01:11:19 +01:00
enum.h Normalized code. 2014-03-04 01:11:19 +01:00
error.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
error.h Moved workaround for MinGW's missing %m support to a central place. 2014-03-04 01:20:38 +01:00
expr.c Added .asize and .isize pseudo variables 2015-10-20 09:30:25 +10:00
expr.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
feature.c Remove .FEATURE requirement and add documentation 2015-05-19 00:06:12 -04:00
feature.h Remove .FEATURE requirement and add documentation 2015-05-19 00:06:12 -04:00
filetab.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
filetab.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
fragment.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
fragment.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
global.c Added .DEFINEDMACRO psuedo function 2015-06-27 01:39:11 -04:00
global.h Remove .FEATURE requirement and add documentation 2015-05-19 00:06:12 -04:00
incpath.c Normalized code. 2014-03-04 01:11:19 +01:00
incpath.h Normalized code. 2014-03-04 01:11:19 +01:00
instr.c Move SBC to correct location in 6280 instruction table 2015-01-11 16:10:34 -05:00
instr.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
istack.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
istack.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
lineinfo.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
lineinfo.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
listing.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
listing.h Normalized code. 2014-03-04 01:11:19 +01:00
macro.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
macro.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
main.c Merge remote-tracking branch 'upstream/master' into pcenginetarget 2015-07-11 13:05:26 +02:00
nexttok.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
nexttok.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
objcode.c Normalized code. 2014-03-04 01:11:19 +01:00
objcode.h Normalized code. 2014-03-04 01:11:19 +01:00
objfile.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
objfile.h Normalized code. 2014-03-04 01:11:19 +01:00
options.c
options.h Normalized code. 2014-03-04 01:11:19 +01:00
pseudo.c Added .asize and .isize pseudo variables 2015-10-20 09:30:25 +10:00
pseudo.h Normalized code. 2014-03-04 01:11:19 +01:00
repeat.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
repeat.h Normalized code. 2014-03-04 01:11:19 +01:00
scanner.c Added .asize and .isize pseudo variables 2015-10-20 09:30:25 +10:00
scanner.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
segdef.c Normalized code. 2014-03-04 01:11:19 +01:00
segdef.h Normalized code. 2014-03-04 01:11:19 +01:00
segment.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
segment.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sizeof.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sizeof.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
span.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
span.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
spool.c Normalized code. 2014-03-04 01:11:19 +01:00
spool.h Normalized code. 2014-03-04 01:11:19 +01:00
struct.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
struct.h Normalized code. 2014-03-04 01:11:19 +01:00
studyexpr.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
studyexpr.h Normalized code. 2014-03-04 01:11:19 +01:00
symbol.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
symbol.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
symentry.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
symentry.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
symtab.c Fix verbose symbol dumping in ca65. 2015-05-16 05:20:15 +02:00
symtab.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
token.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
token.h Added .asize and .isize pseudo variables 2015-10-20 09:30:25 +10:00
toklist.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
toklist.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
ulabel.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
ulabel.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00