是否可以在 nesasm 中进行内联“方法”跳转(或任何可能在 nesasm 中工作的 asm)?
我的意思是:我得到了这样的代码。
Start;
LDA $0000
; here goes more code
JSR SomeMethod ; jump to method (put back pointer on stack)
EndOfMethod: ; just help label to make code more clear
STA $0000
; here goes a lot of more code
SomeMethod:
TAX
;here goes more method code
RTS ; return to position on stack
现在我想让'SomeMethod'内联(就像在C++中一样),所以编译时它看起来像这样:
Start;
LDA $0000
; here goes more code
SomeMethod:
TAX
;here goes more method code
EndOfMethod: ; just help label to make code more clear
STA $0000
; here goes a lot of more code