added DUP optimization

This commit is contained in:
sejo 2021-08-24 21:35:25 -05:00
parent f0513064ec
commit 273a448698
1 changed files with 8 additions and 0 deletions

View File

@ -242,6 +242,14 @@ this would leave our on-mouse subroutine empty:
BRK
```
note that we could join the update pointer position with sending it to the screen, using a pair of DUP2:
```
( update pointer position and send to screen )
.Mouse/x DEI2 DUP2 .pointer/x STZ2 .Screen/x DEO2
.Mouse/y DEI2 DUP2 .pointer/y STZ2 .Screen/y DEO2
```
### using normal jumps
with what we know already, and depending on the position of draw-pointer with respect to on-mouse, we could do a relative jump: