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.106s
<1234567…34>
  • Code optimisation! 16bit number to 5 digit stringJust for interest this one, any thoughts on how to make this as fast as possible? Little optimisations to this routine or a complete reimagining? …

    ... , HL at end of string,assume string doesn't straddle word boundary ...
    lp: inc (hl) ;increase string number
    ld a,(hl ... l,c ;HL back to start of string
    dec de ;decrease ... ,lp
    ret
    ;
    string:
    db '00000' ;16 bit ...
    R-Tape R-Tape December 2016 Development
  • How to separate a character from a number in a string?Hi I've been writing a kind of logo type program in BASIC that takes a string a$ from INPUT and then draws according to what you give it. Say you w…

    ... in BASIC that takes a string a$ from INPUT and then ... draws according to what you give it. Say ... character it reads in the string a$ is a number or ...
    ivanb303 ivanb303 May 2017 Sinclair Basic
  • Can't Get My Simple Code To RunHello again, I'm trying to run the following simple code: [code] org 32768 main ld b, 21 ; x coordinate is …

    ... of text
    ld de, string ; string to print
    ld bc, ...

    ; ***************************************
    ; de string to print
    ; be length of ... :
    [quote]
    B Integer out of range, 0:1 ...
    Scorpion_Realities Scorpion_Realities October 2017 Development
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum. There was a command in speccy basic that would let you scroll a string variab…

    ... would let you scroll a string variable left or right one ... wraparound - can anyone remember how to do it?
    eg
    I seem to remember it only worked in ...
    Neil^P Neil^P December 2003 Games
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... -Z) and 26 string functions (A$-Z$). Owing to the internal structure ... the numeric functions are restricted to dealing with 8-bit numbers ... hex string ("0000"-"FFFF")
    [i]posint8[/i] = 8-bit positive integer ...
    chev chev November 2004 Sinclair Basic
  • String slicing for UDG definitionHey everyone. Got a bit of a string slicing/string to variable conversion problem. 10 let a$="01100110" 20 let pokevalue=???? What expression do I…

    ... /> Got a bit of a string slicing/string to variable conversion problem.
    to put in line 20, to give pokevalue a ... value from 0 to 255 (i.e. the numerical ...
    BigBadMick BigBadMick April 2005 Development
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... br /> single step, run to, go to functions
    Error help ... system variables without having to remember the addresses
    integer scaling for better scaling ... />
    String formatting - right click a string and get programmed ...
    Dunny Dunny June 2005 Emulators
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... br /> single step, run to, go to functions
    Error help ... system variables without having to remember the addresses
    integer scaling for better scaling ... />
    String formatting - right click a string and get programmed ...
    Dunny Dunny June 2005 Sinclair Basic
  • Method to read byte as binary string rather than dec?Hi all Am fiddling around with the screen buffer and have written a routine to scan the screenbuffer into upper ram and then write it back in upside…

    ... and have written a routine to scan the screenbuffer into upper ... , I am trying to find a way to reverse each 8x8 square ... have an 8 byte buffer to store the 0 and 1s ...
    Womble Womble February 2006 Sinclair Basic
  • Insane string of bad luckWhat a horrendous past 3 months. :cry: All my computers died (including WoS), 2 of my guinea pigs died, my holidays got canceled and tonight my DVD p…

    ... out.
    Surely such a string of bad luck was thought ... I fully expect my house to burn down tomorrow...

    Edit: forgot to mention the 2 WoS outages ... of nine hours each due to routers dying.
    mheide mheide February 2008 Chit chat
  • Integer RangesOK, I need a little help clarifying something. I am making good progress with the emulator so far - I've emulated most ADD, INC, DEC commands (as we…

    ... registers as unsigned 16-bit integer pairs (e.g. BC, ... />
    As I'm about to start emulating the SUB commands ... I need to make sure that I ... an 8-bit register -128 to +127? Does this hold true ... .e. is the range 0 to 255 for additions)?
    < ...
    MadDoc MadDoc June 2008 Emulators
  • BASIC: Fast way of filling a string?Recently I decided to use string slicing to extract random numbers from a sequence in the one-liner Lottery picker: [quote] 20 RANDOMIZE : LET a$=""…

    Recently I decided to use string slicing to extract random numbers from a ... : LET a$="": FOR f=1 TO 49: LET a$=a$+CHR ... ): NEXT f: FOR g=1 TO 8: PRINT AT g-1 ... ";STR$ (g);":": FOR f=1 TO 6: LET b=1+INT ... -1,8+((f-1)*3);" "( TO (CODE a$(b)
    Dunny Dunny November 2008 Development
  • .DSK to .TZX?Can I convert a .DSK image to .TAP or .TZX? If not, is there a way to get information from the 'CAT' command and use it as a string so that I can sav…

    ... I convert a .DSK image to .TAP or .TZX? If not ... , is there a way to get information from the 'CAT ... and use it as a string so that I can save ... all contents to a virtual tape in Spectaculator ... .

    If I have to do it one by one ...
    zxbruno zxbruno December 2008 Sinclair Basic
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ... The string after the USR holds the card to print.
    to prove relocatable

    RET ; back to BASIC

    ...
    Dr BEEP Dr BEEP December 2008 Development
  • Draw (x1,y1) to (x2, y2)?I was never very good at math. :( Given the above variables, what should I do to draw a line between the two pixels? How do I calculate the values fo…

    ... variables, what should I do to draw a line between the ... sometimes it gives me an integer out of range error.
    zxbruno zxbruno May 2009 Sinclair Basic
  • 2 questions about matrix and string handlingI was never good at understanding how to do something random in Sinclair Basic without repeating something that was already done. Had problems unders…

    ... never good at understanding how to do something random in Sinclair ... found myself stuck while trying to help my kids with their ... be the best way to randomly scramble the string?

    ... words? Does such routine need to check A$ character by character ...
    zxbruno zxbruno October 2009 Sinclair Basic
  • More questions to ponder/argue/ignore as you wish...Just copying some stuff to a memory stick, and I found some old questions I'd intended to post on these forums to provoke debate, that I'd never got …

    ... (20455 characters). Please shorten it to 16384 characters long."
    < ... paid footballers are really inferior to lower paid footballers, even ... think I'd choose a (string) version of Pachelbel's Canon ... I can't claim to be eligable to judge properly, but I ...
    ewgf ewgf February 2010 Chit chat
  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt) where, at the time: mcworkspac…

    ... to the string and the 3rd one, being a positive integer ... ? How does 907F580000 evaluate to 65368? Is there some ... way to force the number to be held in ... form? The number seems to be understood in that form ... I change the function to be simply: DEF FN ...
    Battle Bunny Battle Bunny July 2010 Sinclair Basic
  • Multi Dimension String Arrays.Ok so I've been playing with Sinclair Basic though BASIN and I'm wanting to use multi dimension string arrays, if it is possible. I know what when a…

    ... I'm wanting to use multi dimension string arrays, if it ... For example if I was to create a 2D character array ...
    It would allow me to store 10 strings of 10 ...
    Is it then possible to say

    DIM ... ,10,10)

    To create ten arrays of ten ...
    Scottie_uk Scottie_uk August 2010 Sinclair Basic
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... thread. I suggested converting numbers to binary held in character strings ... little loop to build a binary number in a string, and also ... as that's the longest integer which the Spectrum will display ... br />
    For example, to convert 12345 to a 16-digit binary ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • problem with RND (or maybe INT)I'm using this statement: LET m=(INT (RND*sn)+k1)*k2-k1 to give a pointer m to a 2-byte segment of a string l$. Items k1 & k2 are integer constants…

    ... pointer m to a 2-byte segment of a string l$. ... Items k1 & k2 are integer constants 1 ... number of segments in the string (ie. half the length ... />
    FOR p=k0 TO k0 STEP k0: LET m ... . Any suggestions on how to define the expression so that ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Overflow Detection while Scanning a Number from a StringI've got some strange behaviour from a subroutine that reads a number from a string and converts it to a 32-bit long. It's C's strtol if it helps to…

    ... a number from a string and converts it to a 32-bit ... s strtol if it helps to nail down the details.
    to 2^n-1 cannot ... a bit soft so over to you.


    ... Edit: It amounts to proving this:

    Let ...
    Alcoholics Anonymous Alcoholics Anonymous April 2012 Development
  • appending data while saving to tapeBefore trying to do this I just wanted to check if there's a possibility that it might actually work. I have a number of string arrays which I want t…

    ... number of string arrays which I want to save as ... -LOOP, instead of jumping to finish at SA-PARITY, ... has just occurred to me, which is to DIM the ... data + headers. The string data would be interspersed with ... the string array headers but that ...
    Battle Bunny Battle Bunny September 2012 Development
  • A 128 Routine to Put Tokens in StringsI was writing a DEF FN on the +128k and decided that I'd had enough of not being able to put function tokens in strings without a great palaver and s…

    ... enough of not being able to put function tokens in ... wrote this little BASIC routine to do it for me. ... Just define the functions to be inserted as lower case ... wherever it is to occur within a quoted string. So for ... /> PRINT CHR$ p;: GO TO 9995-(3 AND b> ...
    Battle Bunny Battle Bunny December 2012 Sinclair Basic
  • Raising to the powerA curiosity of ZX Basic I found yesterday is that you can't do this: [code] 10 LET x=-3 20 LET y=x^2 [/code] While you can for example do LET y=-3^…

    ... saw an explanation as to why BASIC is ... to as a floating point number and not an integer, ... and there may be no real solution to ... a negative number raised to a non integer power. ... But no explanation on the best way to ...
    Winston Winston April 2013 Sinclair Basic
  • SpecBAS 0.789 releasedHi all! Back with another SpecBAS release - this one's mostly just about sprites and bug fixes. One new addition I do quite like is the expression c…

    ... window. Beware, a single integer will still delete program ... , however
    More dithers to GRAPHIC REMAP - dtFLOYD, dtJARVIS, ... scrolling
    Loading of string and numeric dynamic arrays ... screen information by trying to write to palette entries > ...
    Dunny Dunny September 2013 Sinclair Miscellaneous
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ...
    Yesterday, I was introduced to the [url=https://en.wikipedia ... the ability to shift to the left, and adding 3 to a ... that gives us the integer number closer to the argument, greater ... BCD ds 308,0 ;Space to store BCD representacion (616 BCD ...
    mcleod_ideafix mcleod_ideafix November 2013 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…

    ... br /> function
    go to
    goto
    ...
    then
    to
    ubound
    ... string
    byte
    ubyte
    long
    ulong
    integer ...
    pkersey pkersey February 2014 Development
  • SpecBAS 0.802 Released!Hi folks - It's that time again when I release the latest round of features and bugfixes to SpecBAS :) New for this version are ZONEs which act ver…

    ... regular USING formatting string
    USING$ function - identical to PRINT USING() but ... /> DIV now does a proper integer divide...
    Runs of arithmetic ... /> Adding an extra index to a string array reference wasn't parsed ...
    Dunny Dunny February 2014 Sinclair Basic
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    ... /> This question is related to "quick RAM copy using LET ... with 160 bytes corresponding to 16*10 tiles. Each ... a bucle from 0 to 159 bytes for read ... to end...

    This routine load/converts/make my v$ string ... I try changing POKE to v$(pos to pos+1)=chr$( ...
    Hark0 Hark0 March 2014 Sinclair Basic
<1234567…34>

Latest Posts

  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • European Software Titles with an English version
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
integer 761 1.1K
to 549.6K 1.6M
string 2.8K 5.1K

Related Threads

  • Fastest way to decide which pixel to paint in order to draw a straight line(after I saw "Bresenhams circle algorithm" in development forum, I decided to ask this in here)<br /> <br /> in fact, I want to accelerate a car towa…
  • Now seems to be a good time to add to your collectionsI have bought a few spectrum items to add to my collection recently, had i bought them a year or two ago they would have cost double. This is one of …
  • Update to Image to ZX Spec to 1.3.1I'm inbetween jobs at the moment and felt the need to add a new feature - the ability to export anim gifs.<br /> <br /> [IMG]https://lh6.googleuserco…
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…
  • Alternative to Poke 23659,0 to prevent a 'break in' to a Basic Program.Good morning everyone,<br /> <br /> My memory fails me these days but in the early days of programming I used to use Poke 23659,0 as a crude way of…
  • How to download games to micro sd card to play on Sinclair zx spectrum vegaHello<br /> Could anyone tell me how to download games from a website to a micro sd card to play on a Sinclair zx spectrum vega , I mean do I use a …
  • A game to port to... to make for... ZX Spectrum ?Hey there,<br /> <br /> I'm a game coder on Commodore computers (C64,CPlus/4,VIC20,Amiga) and I loooove the ZX Spectrum.<br /> I grew up with Comm…
  • How to copy file from tape (*.tap) to disks (*.dsk) ?I am using zx32 with win98 and i want (in the emulate +3) copy files from virtual tapes to virtual disks.<br /> <br /> I use =&gt; load "NameOfFile" …
  • how to make a (protected) .DSK to disk transfer ?I know how to make file transfers between .DSK files and physical disks (logical copy).<br /> <br /> However, how can be done a physical sector trans…
  • how to move fdd300's files to pc emulator?Hi!<br /> I have some diskettes 3" for FDD3000 drive for Timex 2048. How can I read these 3"disk and move to PC ? I have some my own demos and rest s…

Related Searches

  • from bedrooms to billions
  • z80 to tape
  • snapshot to tape
  • linux tzx to wav
  • trd files to image
  • fastest way to clear screen
  • user name and password to download emulator
  • convert src files to
  • rst8 return to basic
  • return to basic
  • unable to log in
  • how to download games
  • how to download games for vega
  • usr0 to 128
  • the adventure game i m trying to complete
  • tzx to tape
  • inputting to a string array
  • hex to dez string
  • int32 to string
  • 32 integer to string

Copyright © 2024 World of Spectrum