mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-20 03:31:42 +00:00
KERNEL:better random16 generation
This commit is contained in:
parent
f8be97559d
commit
700b408efc
@ -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
|
||||
*--------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user