mirror of
https://github.com/cc65/cc65.git
synced 2025-02-11 15:30:52 +00:00
Renamed randomize to _randomize
git-svn-id: svn://svn.cc65.org/cc65/trunk@1489 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
839b425890
commit
163c421db0
@ -1,16 +1,16 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
|
|
||||||
.include "c128.inc"
|
.include "c128.inc"
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
ldx VIC_HLINE ; Use VIC rasterline as high byte
|
ldx VIC_HLINE ; Use VIC rasterline as high byte
|
||||||
lda TIME ; Use 60HZ clock as low byte
|
lda TIME ; Use 60HZ clock as low byte
|
||||||
jmp _srand ; Initialize generator
|
jmp _srand ; Initialize generator
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
|
|
||||||
.include "c64.inc"
|
.include "c64.inc"
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
ldx VIC_HLINE ; Use VIC rasterline as high byte
|
ldx VIC_HLINE ; Use VIC rasterline as high byte
|
||||||
lda TIME ; Use 60HZ clock as low byte
|
lda TIME ; Use 60HZ clock as low byte
|
||||||
jmp _srand ; Initialize generator
|
jmp _srand ; Initialize generator
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
.importzp time
|
.importzp time
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
ldx time ; Use 50/60HZ clock
|
ldx time ; Use 50/60HZ clock
|
||||||
lda time+1
|
lda time+1
|
||||||
jmp _srand ; Initialize generator
|
jmp _srand ; Initialize generator
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
.importzp time
|
.importzp time
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
ldx time ; Use 50/60HZ clock
|
ldx time ; Use 50/60HZ clock
|
||||||
lda time+1
|
lda time+1
|
||||||
jmp _srand ; Initialize generator
|
jmp _srand ; Initialize generator
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
|
|
||||||
.include "pet.inc"
|
.include "pet.inc"
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
ldx TIME
|
ldx TIME
|
||||||
lda TIME+1 ; Use 60HZ clock
|
lda TIME+1 ; Use 60HZ clock
|
||||||
jmp _srand ; Initialize generator
|
jmp _srand ; Initialize generator
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
|
|
||||||
.include "plus4.inc"
|
.include "plus4.inc"
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
ldx TED_VLINELO ; Use TED rasterline as high byte
|
ldx TED_VLINELO ; Use TED rasterline as high byte
|
||||||
lda TIME ; Use 60HZ clock as low byte
|
lda TIME ; Use 60HZ clock as low byte
|
||||||
jmp _srand ; Initialize generator
|
jmp _srand ; Initialize generator
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
;
|
;
|
||||||
; Ullrich von Bassewitz, 05.11.2002
|
; Ullrich von Bassewitz, 05.11.2002
|
||||||
;
|
;
|
||||||
; void randomize (void);
|
; void _randomize (void);
|
||||||
; /* Initialize the random number generator */
|
; /* Initialize the random number generator */
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _randomize
|
.export __randomize
|
||||||
.import _srand
|
.import _srand
|
||||||
|
|
||||||
.include "vic20.inc"
|
.include "vic20.inc"
|
||||||
|
|
||||||
_randomize:
|
__randomize:
|
||||||
lda VIC_LINES ; Get overflow bit
|
lda VIC_LINES ; Get overflow bit
|
||||||
asl a ; Shift bit 7 into carry
|
asl a ; Shift bit 7 into carry
|
||||||
lda VIC_HLINE ; Get bit 1-8 of rasterline
|
lda VIC_HLINE ; Get bit 1-8 of rasterline
|
||||||
rol a ; Use bit 0-7
|
rol a ; Use bit 0-7
|
||||||
tax ; Use VIC rasterline as high byte
|
tax ; Use VIC rasterline as high byte
|
||||||
lda TIME ; Use 60HZ clock as low byte
|
lda TIME ; Use 60HZ clock as low byte
|
||||||
|
Loading…
x
Reference in New Issue
Block a user