KERNEL:better random16 generation

This commit is contained in:
Rémy GIBERT 2016-03-26 08:28:47 +01:00
parent f8be97559d
commit 700b408efc

View File

@ -131,8 +131,6 @@ S.GetKeyboardEvent
bpl .9
sta KBDSTROBE
sta A2osX.RANDOM16
and #$7F
ldy #S.EVT.DATA
sta (pEvent),y
@ -151,7 +149,7 @@ S.GetKeyboardEvent
.9 inc A2osX.RANDOM16
bne .99
inc A2osX.RANDOM16+1
dec A2osX.RANDOM16+1
.99 sec no event
rts
*--------------------------------------