myMacro #11 myMacro 11 myMacro .macro value lda \value .endm

!macro myMacro .immediate, .param { !if .immediate { lda #.param } else { lda .param } } +myMacro 0, 100 ; lda 100 +myMacro 1, 100 ; lda #100

assertGreaterOrEqual(CmdArgument(AT_IMMEDIATE, 50), CmdArgument(AT_ABSOLUTE, result), "i say that 50 isn't >= than actual")

assertGreaterOrEqual #50, result, "i say that 50 isn't >= than actual"

assertAbsoluteEqualToX(stackPointer, "stack pointer not equal") stackPointer: .byte 0

+assertEqual 10, result +assertAbsoluteEqual addressMemory, result