Posted: Mon Jul 11, 2011 11:39 pm
Well, like I tell others, if // for comments bothers you that much, change it or use something else.
I abhor :less labels because that makes any error compile as valid code.
And with :, block separators on labels become unreadable:
Defines have both start and close markers so that they are not ambiguous with labels, opcodes and directives, and can concatenate.
Try and specify define x, then define y, then the letter z. <- very clear purpose
<- !x + !yz
<- is it an opcode? A define named xyz? A label?
Otherwise, I would certainly like markerless defines. It'd basically be a true table assembler at that point.
define clc = db $18 //or whatever clc is
define adc #n = db $69,{n}
define add n = clc; adc {n}
add #$24 //clc; adc #$24
But well, whatever. The code is extremely clean. It's not at all hard to change this stuff. Given how obscure SPC700 ASM code is, just include the assembler source with your SPC700 source.
Or don't worry about minor semantics issues ;)
I abhor :less labels because that makes any error compile as valid code.
Code: Select all
clx //should've been clc, but now it's a label named clx
adc $2100Code: Select all
loop: : dec : beq end : inx : bra loop : end: : rtsCode: Select all
loop:; dec; beq end; inx; bra loop; end:; rtsTry and specify define x, then define y, then the letter z.
Code: Select all
{x}{y}zCode: Select all
!x!yzCode: Select all
xyzOtherwise, I would certainly like markerless defines. It'd basically be a true table assembler at that point.
define clc = db $18 //or whatever clc is
define adc #n = db $69,{n}
define add n = clc; adc {n}
add #$24 //clc; adc #$24
But well, whatever. The code is extremely clean. It's not at all hard to change this stuff. Given how obscure SPC700 ASM code is, just include the assembler source with your SPC700 source.
Or don't worry about minor semantics issues ;)