-
How do I get a random numberHi, I need a simple routine to get a random number from 1 to 4. I don't need nothing very complex or that much random, it just have to produce diffe…
... />
I looked into S-RND (in ROM at addr #25F8 ... -
Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…
... call random ; fetch RND number
add a ... ld hl,(seed) ; fetch RND pointer
inc hl ... seed),hl ; store next RND-pointer
ld a ... ret ; A holds RND value
seed ... -
What happens during a reset?I always used to wonder about this, but only thought a bit more about it last night when noticing after all these years what actually happens. Obvio…
... to value 2 from address 65535 downwards, then reset to 0 ... -
Unpublished spectrum gameHi there I have a Spectrum PDS development environment and before I get rid of my old PC which has an ISA slot I thought I should ask this question i…
... code's from 16384 to 65535 and a binary file. I ... -
Amazing Short Type-InsHey all ! Been having some pretty stressfull days lately so I tought I would type in some games. There was a very nice type-in book here in Slovenia…
Hey all !
Been having some pretty stressfull days lately so I tought I would type in some games. There was a very nice type-in book here in Slovenia called "Mirko Tipka na Radirko" which is roughly translated as "Mirko types on rubber" ( ... -
Pseudo random numbersHi everybody, I 'd like to convert a little program i wrote in VisualBasic6.0 to C or C++ to make it run faster and for training as i'm a very very n…
Wow, I'm popular![quote] Welcome, wilsonsamm. You last visited: 17 Minutes Ago at 05:14 PM Private Messages: Unread 65535, Total 1. [/quote] oh, it's a bug :(
[quote]
Welcome, wilsonsamm.
You last visited: 17 Minutes Ago at 05:14 PM
Private Messages: Unread 65535, Total 1.
[/quote]
oh, it's a bug :(Floating point representationI'm planning on picking up the [url=http://matt.west.co.tt/category/spectrum/openzxrom/]OpenZXRom[/url] project from where I left off a few months ba…
... ROM treats integers up to 65535 as a special case: 00 ...Help with creating .ayI am trying to create an .AY file for Sidewalk. Now this is the first time I am trying to do anything like this, so please bear with me. Using Spin's…
...
INTERRUPT=#cf7d
SongLength=65535
FadeLength=0
CodeName ...ONELINER : Finger TwisterFINGER TWISTER Do you all know TWISTER, that crazy game where you had to place your left foot on yellow, your right hand on green etc. etc. Well, n…
... =1 TO l: LET y=RND*(6-z)+.5:
LET ... $(6
-z): LET y=RND*3+.5: LET b$(y ...The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …
... ):
10 LET x=RND* 255
20 LET y ...
30 LET p=RND* 16
40 PEN p< ...Problem with replacing all upper memory with 4164 chipsGuys, i have a problem with the high memory of a 4B issue. At first the board had OKI chips for high memory and one of them was faulty. Since its ea…
... 23733*256 the result is 65535 (48K) but when i load ...Internal functions on ZX80 keyboardHi guys, I'm trying to do some bits and pieces for the ZX80. I was wondering how you access the functions that aren't on the keyboard (RND etc.). Th…
Hi guys,
I'm trying to do some bits and pieces for the ZX80. I was wondering how you access the functions that aren't on the keyboard (RND etc.). They're described as 'integral functions'. Does anyone know I can get to them?Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…
... version of my routine used RND and ATTR to paint randomly ...Changing BASIC loader in Chuckie Egg 2Hi, My aim is to include "PAUSE 0" event at the end of the loading of the Chuckie Egg 2 game. The reason is that I use emulator to load the game and…
... this:
1 CLEAR 65535: LOAD "CE2" CODE: LOAD "CE ...Porting 8k Adventure to SpectrumSomeone has tried to help me port 8k Adventure over to the spectrum. Here is the code thus far. It doesn't seem to work with the verbs, however. I tr…
Someone has tried to help me port 8k Adventure over to the spectrum. Here is the code thus far. It doesn't seem to work with the verbs, however. I tried getting an object, but it said "Verb not recognized. Type help for clues".
Here is the ...Happy birthday RND!!Merry birthday... Get absolutely sloshed!! (And play lots of [I]Chaos[/I]) :)
Merry birthday... Get absolutely sloshed!! (And play lots of [I]Chaos[/I]) :)Just wrote my first useful working Speccy BASIC program in years...A nice UK National Lottery number generator. And not just any lotto number generator either. This one generates 8 lines of 6 numbers without replace…
A nice UK National Lottery number generator.
And not just any lotto number generator either. This one generates 8 lines of 6 numbers without replacement (i.e. using 48 of the 49 numbers from 1 to 49) without repeating any number twice.
< ...Error Message on memory testI have just tried PRINT PEEK 23732 + PEEK 23733 * 256 on what I think is a 48K rubber key machine and instead of getting either (a) for a 48k unit…
... /> (a) for a 48k unit - 65535
or
(b) for ...Couple of questions...Howdy, 1. Is there a decent way to get a random number in BASIC/MC? I've been using LET a=INT(RND*2)+1 but the numbers tend to stay at 1 or 2 most …
... been using LET a=INT(RND*2)+1 but the numbers ...Writing internet servers in ZX BASICNew Spectranet news! I have just finished adding the code to allow listening sockets to be used from BASIC. A simple example: [code] 10 %listen #4,…
Need help with interrupts againI'm fighting to understand how interrupts code handling works I'm trying to set my simple own interrupt routine, as I don't want to be dependent on …
... /> LD A,24
LD (65535),A
LD A ... at address 255*256+255 = 65535
;the next byte from ... 65535 is byte 0 which is ...