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
..
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2013-05-09 13:57:12 +02:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:20:38 +01:00
2015-10-20 09:30:25 +10:00
2014-06-30 16:51:07 -04:00
2015-05-19 00:06:12 -04:00
2015-05-19 00:06:12 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2015-06-27 01:39:11 -04:00
2015-05-19 00:06:12 -04:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2015-01-11 16:10:34 -05:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2015-07-11 13:05:26 +02:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2013-05-09 13:57:12 +02:00
2014-03-04 01:11:19 +01:00
2015-10-20 09:30:25 +10:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2015-10-20 09:30:25 +10:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-03-04 01:11:19 +01:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2015-05-16 05:20:15 +02:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2015-10-20 09:30:25 +10:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00
2014-06-30 16:51:07 -04:00