RosettaCodeData/Task/Higher-order-functions/6502-Assembly/higher-order-functions-1.6502
2023-07-01 13:44:08 -04:00

10 lines
267 B
Text

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