macro PrintOutput,input,addr ; input: desired function's input ; addr: function you wish to call LDA #<\addr ;#< represents this number's low byte STA z_L LDA #>\addr ;#> represents this number's high byte STA z_H LDA \input JSR doPrintOutput endm