[A83] Re: returning to OS in call routines
[Prev][Next][Index][Thread]
[A83] Re: returning to OS in call routines
SMC = self modifying code... for instance, if you had one place to display your sprite on the screen, and just wanted to change the x value: you cuold do something like:
put_sprite:
ld a,0
ld l,56
ld ix,sprite
ld b,8
jp ionputsprite
then, to move the x, do something like ld hl,put_sprite+2 \ ld (hl),10
you get the idea... modifying your own source.