World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.003s
<1234567…34>
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    Just saved another 238 bytes by changing...

    [CODE]RANDOMIZE USR 64564[/CODE]
    to...

    [CODE]LET r$=CHR$ 192+"64564"
    ...
    RANDOMIZE VAL r$
    ...[/CODE]

    Great stuff chaps.

    Paddy
    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... by changing...

    [CODE]RANDOMIZE USR 64564[/CODE]
    to ... $=CHR$ 192+"64564"
    ...
    RANDOMIZE VAL r$
    ...[/CODE]

    ...
    RANDOMIZE VAL r$[/code]

    Assuming ...
    mcleod_ideafix mcleod_ideafix February 2011 Sinclair Basic
  • Saving space...Hi Folks, Looking for ways to save some memory in a program I am writing. In a number of places I have the following code: [CODE]xxxx PAUSE 1: …

    ... r$="USR 64564"
    ...
    RANDOMIZE VAL r$[/code][/QUOTE]

    Paddy Coleman Paddy Coleman February 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... [/B] instead of [B]RANDOMIZE USR x[/B] to invoke ... , just tried RESTORE VAL r$ (I had RANDOMIZE VAL r$ before) and ... I will try LET var=VAL r$ now to see if ... [/B]OK, tried LET mm=VAL r$ and it works perfectly ... generation i.e. a RANDOMIZE near the beginning of the ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • CAT!RAM and PUTRAMLast year sometime I posted a couple of routines to: * catalogue the 128k RAMdisk in BASIC; * move RAMTOP and the stacks from BASIC. CAT!RAM and PUTR…

    ... preserving variables & GOSUBs
    ;RANDOMIZE val+USR putram
    org 48000 ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • ZX7: an "optimal" LZ77 packerAbout 20 years ago, I started a M.Sc. in Computing, planning to work on data compression. Although I quickly changed to another subject for a number …

    ... /> 20 LET z=VAL "27845": LET x=VAL"28900": RANDOMIZE VAL "3071": GO SUB ... VAL"9900"
    [/CODE]
    30 LET x=VAL "45320": RANDOMIZE VAL "19015": GO SUB VAL"9900"
    [/CODE ...
    antoniovillena antoniovillena January 2013 Brand new software
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... ]
    1 RANDOMIZE VAL "24045"+USR VAL "48000":
    POKE VAL "23739",CODE "o ... ":
    LOAD "gb_s" CODE : RANDOMIZE USR VAL "3e4":
    LOAD "gb" CODE ...
    Battle Bunny Battle Bunny January 2014 Development
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... ]
    1 RANDOMIZE VAL "24045"+USR VAL "48000":
    POKE VAL "23739",CODE "o ... ":
    LOAD "gb_s" CODE : RANDOMIZE USR VAL "3e4":
    LOAD "gb" CODE ...
    Speccy_James Speccy_James January 2014 Development
  • Randomize USR xxxxxA weird topic: When I was a kid I use to mess around with the RANDOMIZE USR xxxxx, sad I know!!! For instance RANDOMIZE USR 51234 would give me a loa…

    ... to mess around with the RANDOMIZE USR xxxxx, sad I know ... !!!
    For instance RANDOMIZE USR 51234 would give me ...
    Anonymous Anonymous June 2002 Sinclair Miscellaneous
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    I see some basic programs which use Let a=val "1" instead of let a=1 syntax.

    what is the difference between val "1" and 1?

    is it an effect of some compiler or converter?

    just curious.
    Arda Arda April 2003 Sinclair Basic
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects? As a start, try anything from RANDOMIZE USR 1216 to RANDOM…

    ... store of useful POKES, or RANDOMIZE USR statements with interesting effects ... start, try anything from RANDOMIZE USR 1216 to RANDOMIZE USR 1327. This ...
    The Mighty Dopethrone The Mighty Dopethrone October 2003 Sinclair Miscellaneous
  • Most pointless type-in?I think it was one I saw, probably in Program Pitstop(which mag did that?), to evaluate a string as a full expression, a la the Beeb: spend hours typ…

    ... the thing, then do a RANDOMIZE USR something to evaluate A ... two seconds typing LET A=VAL A$, which does exactly the ...
    robert@fm robert@fm October 2004 Games
  • Those RANDOMIZE USR lines that look like tape loading...I often see on here people mentioning those RANDOMIZE USR lines which when entered, seem to simulate a tape loading, with the colours and lines in th…

    ... on here people mentioning those RANDOMIZE USR lines which when entered ... I first ever found was RANDOMIZE USR 1280 which shows blue ...
    alexsut alexsut April 2007 Sinclair Miscellaneous
  • BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…

    ... br /> DATA : E : D RANDOMIZE : K : T
    DEF ...
    LET : K : L VAL : E : J
    LINE ... : E : SYM + 3 VAL$ : E : SYM + J
    icabod icabod March 2008 Sinclair Basic
  • 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…

    ... CLEAR VAL "65520": POKE VAL "23624", VAL "0": POKE VAL "23693", VAL "0": OUT (VAL "254"), VAL ... " SCREEN$
    2 PAUSE 0: RANDOMIZE USR 39735: GOTO 2
    maiki maiki March 2008 Emulators
  • Randomize usrHi, I've often wondered why/how they came up with RANDOMIZE USR <memory address> to invoke machine code couldn't they have used a better keyword (e…

    ... they came up with
    RANDOMIZE USR to invoke machine code ...
    so what does the RANDOMIZE in front do ?

    All I know about RANDOMIZE is regarding random number sequence ...
    saiwong saiwong December 2009 Sinclair Basic
  • More on Randomize commandI always used to use randomize xxxxx then peek 23670 and 23671 to turn a 16 bit number into 2 8 bit numbers but only noticed yesterday that randomize…

    I always used to use randomize xxxxx then peek 23670 and 23671 to turn a 16 bit number into 2 8 bit numbers but only noticed yesterday that randomize 0 appears to do nothing. anyone know if this does anything?
    nuggetreggae nuggetreggae December 2009 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    ... be themselves variable by using VAL$. Thus, if v$ holds the ... , then:
    [b]LET a$=VAL$ v$[/b]
    for a ... , or:
    [b]LET anumber=VAL VAL$ "v$"[/b]
    for a ...
    Battle Bunny Battle Bunny October 2010 Sinclair Basic
  • tiny routine to shift RAMTOP & stackCompressing some data areas above RAMTOP and wanting to make the released space available for BASIC arrays, I needed to move RAMTOP without using CLE…

    ... "val" without clearing variables
    ;POKE 23730,lo_val: POKE 23731,hi_val: RANDOMIZE ...
    Battle Bunny Battle Bunny November 2011 Sinclair Basic
  • VAL SCREEN$I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL S…

    I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL SCREEN$ (1,1).

    I cant get it to work now...

    Any ideas?!:-?
    daveysludge daveysludge January 2012 Sinclair Basic
  • BIFROST* Advanced Programming - part 1In BIFROST*, it's much easier to just make changes in the tile map and let the engine automatically draw & animate everything in multicolor for you. …

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... LOAD "bifrost_h1"CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original ... ()
    {
    // initialize variables
    randomize();
    for (f = 0; f ...
    Einar Saukas Einar Saukas July 2012 Development
  • BIFROST* Advanced Programming - part 2This second demo shows animated and moving tiles together, and also how to implement collision detection. This knowledge should be enough to implemen…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... LOAD "bifrost_h2"CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original ... ()
    {
    // initialize variables
    randomize();
    for (f = 0; f ...
    Einar Saukas Einar Saukas July 2012 Development
  • BIFROST* Advanced Programming - part 3This new demo demonstrates the BIFROST* built-in sprite support that I mentioned before. In BIFROST*, "sprite tiles" are 2 special tiles that BIFROS…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... LOAD "bifrost_h3"CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original ... ;

    main()
    {
    randomize();

    KEY_UP = in_LookupKey('q ...
    Einar Saukas Einar Saukas July 2012 Development
  • BIFROST* Advanced Programming - part 4In previous posts I demonstrated how to move multicolor tiles up and down smoothly by a single pixel, and sideways by an entire char (8 pixels). Thi…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "TILES ... LOAD "bifrost_h4"CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original ...
    Einar Saukas Einar Saukas August 2012 Development
  • BIFROST* Advanced Programming - part 5In my [URL="http://www.worldofspectrum.org/forums/showthread.php?t=40437"]previous post[/URL] I demonstrated how to move multicolor images smoothly i…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "tiles ... LOAD "bifrost_h5"CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original ... br />
    main()
    {
    randomize();

    // initialize control keys ...
    Einar Saukas Einar Saukas August 2012 Development
  • BIFROST* Advanced Programming - part 6The purpose of this demo is somewhat different from previous ones. Instead of teaching a new technique, the main goal here is to demonstrate how much…

    ... execute:
    *
    * 10 CLEAR VAL "32767"
    * 20 LOAD "tiles ... LOAD "bifrost_h6"CODE
    * 50 RANDOMIZE USR VAL "32768"
    *
    * Original ...
    Einar Saukas Einar Saukas September 2012 Development
  • RANDOMIZE USRI always thought that this particular basic command was not intuitive! If I understand correctly is means run the code from the memory address, is t…

    ... right?

    The term randomize implies the RAND function (random ...
    Van_Dammesque Van_Dammesque February 2013 Sinclair Basic
  • Full 16*16-digit BASIC multiplicationI liked Andre Adrian's 32-bit long multiplication routine so much that I decided to a decimal version. After all, 2^63 is only 9223372036854775808, a…

    ... p(23639)+6
    816 RANDOMIZE fnr: POKE 23563,PEEK 23670 ... $ I+FN b$(VAL r$): LET I=VAL s$(LEN s$): POKE ... r$
    903 LET r=VAL s$(TO LEN s$-1 ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Help with File Compressor by Mladen PopovicHi, I'm trying to compress BombJack (MCM) and transfer it to a +3 disk (Yes I own the original game :) ). I'm unsure about the addresses to enter in…

    ... will need to call my randomize after loading?

    It ... it just crashes when I randomize..

    original file location ...

    clear val "23999": load""code 24000,21696: randomize usr val "29440"
    Speccy_James Speccy_James January 2014 Development
  • GEDit syntax highlighting for Boriel's ZX BasicHi! I just tailored this syntax highlighting code and would like to share with he community. Suggestions are always welcome, though the file works w…

    ...
    poke
    print
    randomize
    return
    rnd
    ubound
    until
    val
    verify
    wend
    pkersey pkersey February 2014 Development
<1234567…34>

Latest Posts

  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21

HitBox

Word Docs Hits
randomize 1.9K 2.6K
val 705 2.3K

Related Threads

  • Randomize USR xxxxxA weird topic:<br /> When I was a kid I use to mess around with the RANDOMIZE USR xxxxx, sad I know!!!<br /> For instance RANDOMIZE USR 51234 would g…
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax.<br /> <br /> what is the difference between val "1" and 1?<br /> <br /> …
  • POKE, PEEK and RANDOMIZE USRAnyone got a store of useful POKES, or RANDOMIZE USR statements with interesting effects?<br /> <br /> As a start, try anything from RANDOMIZE USR 12…
  • List of RANDOMIZE USR code effects?Hi chaps,<br /> Does anyone have one of these please?<br /> Thanks.
  • Those RANDOMIZE USR lines that look like tape loading...I often see on here people mentioning those RANDOMIZE USR lines which when entered, seem to simulate a tape loading, with the colours and lines in th…
  • Happy Birthday Randomize UsrDon't know who you are, but have a good one dude! Hope you have many more.<br /> <br /> :)
  • Randomize usrHi,<br /> <br /> I've often wondered why/how they came up with<br /> RANDOMIZE USR to invoke machine code<br /> <br /> couldn't they have used a bet…
  • More on Randomize commandI always used to use randomize xxxxx then peek 23670 and 23671 to turn a 16 bit number into 2 8 bit numbers but only noticed yesterday that randomize…
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…
  • VAL SCREEN$I seem to remember being able to find out the ascii code of a character displayed on the screen by typing in something along the lines of PRINT VAL S…

Related Searches

  • val
  • randomize usr
  • strange loading randomize usr
  • tr dos randomize usr
  • randomize usr pokes
  • randomize usr 3280
  • quazatron randomize
  • randomize
  • randomize val
  • randomize usr space
  • randomize usr 8
  • randomize usr 0
  • randomize usr size
  • randomize usr 15619
  • randomize usr ascii representation
  • randomize usr representation
  • randomize usr 3503
  • randomize nmi
  • run equal randomize usr
  • beta 128 disk randomize usr

Copyright © 2024 World of Spectrum