Use mswap stdlib
This commit is contained in:
parent
bc70adb7e9
commit
e5f115da28
|
@ -135,10 +135,8 @@ JMP2r
|
|||
|
||||
@swap-cells ( a* b* -- )
|
||||
|
||||
#02 SFT2 ;world ADD2 LDAk STH ,&a STR2
|
||||
#02 SFT2 ;world ADD2 LDAk STH ,&b STR2
|
||||
STHr [ LIT2 &a $2 ] STA
|
||||
STHr [ LIT2 &b $2 ] STA
|
||||
#02 SFT2 ;world ADD2 SWP2
|
||||
#02 SFT2 ;world ADD2 mswap
|
||||
|
||||
JMP2r
|
||||
|
||||
|
@ -176,6 +174,12 @@ JMP2r
|
|||
(
|
||||
@|stdlib )
|
||||
|
||||
@mswap ( a* b* -- )
|
||||
|
||||
SWP2k LDA STH STH2 LDA STH STH2 STAr STAr
|
||||
|
||||
JMP2r
|
||||
|
||||
@prng-init ( -- )
|
||||
|
||||
( seed )
|
||||
|
|
Loading…
Reference in New Issue