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.022s
<1…28293031323334>
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... " characters in a string, no matter if the string contains tokens.

    string contains tokens, and this routine deals ...
    na_th_an na_th_an December 2011 Sinclair Basic
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ...
    ex de,hl ;HL=string pointer
    inc c ;C ... : ;leading/trailing spaces info
    ;tokens < boundary need only a ... exclusion list
    ;table of tokens which require no leading/trailing ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Calculating percentage..or even calculating percentage. Maths and asm I find verryyy tricky. Can anyone suggest the easiest/best way to calculate a percentage from two 1…

    ... the answer as a string and print the string
    call $361f ... :;copy the answer to a BASIC variable to be printed from ... BASIC
    ld hl,(23627) ;(VARS)< ...
    Battle Bunny Battle Bunny December 2011 Development
  • So easy to use.Back in the 90s I was off work for 3 months following an operation, anyway in my boredom I dusted off my old speccy+ and the manual, and got my head …

    ... appears red in the listed basic, as opposed to say:
    string containing the control codes externally ...
    Paddy Coleman Paddy Coleman January 2012 Sinclair Basic
  • Creating a new game - AssemblySo... finally I?m studying Assembly Z80... after 36 years. :) Well... it?s sooooooooooooo hard to make a game using Assembly? I bought a book (Spectr…

    ... out how to string those few very simple, basic language elements together ... you've learned what the basic instructions do, look at a ...
    ccowley ccowley January 2012 Development
  • Undefine functionHere's a routine to selectively remove variables from the VARS area and reclaim the space. This can be done partially from BASIC already by assigning…

    Nice bit of functionality. Of course your function has the advantage that the variable you are emptying doesn't need to be a constant which BASIC required if you are setting a variable to 0,empty string or a zero-element array.
    BloodBaz BloodBaz January 2012 Sinclair Basic
  • M/C mathsHow would I do the equivalent of LET A=B*7 in machine code?

    ... and assign the answer to BASIC variable A, using the ... the relevant name in the string as needed. Always remember ... value before returning to BASIC otherwise disaster will ensue.< ... any supported mathematical calculation with BASIC variables. Floating point values ...
    Battle Bunny Battle Bunny January 2012 Development
  • Is there a limit to the numberof variables you can have in BASIC..... Reason I ask is I've got an idea....but using my "lowest common denominator" approach to code I fear that I'…

    ... for UDGs on screen from BASIC, as SCREEN$ doesn't recognize ... with several floors) then a string array DIMensioned to match the ... RAMTOP or a one-dimensional string could be used if the ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • space optimisation algorithm neededScenario: * An adventure game consists of a series of locations, each of which may or may not have some text and/or graphics associated with it. * A…

    ... most efficient set of tokens (and not select tokens representing text that ... the same overall set of tokens.

    As for graphics ... might be to define some basic UDGs (such as diagonal triangles ...
    joefish joefish January 2012 Development
  • joining lines of BASICDue to overwhelming demand - well, one demand - well, more of a suggestion, really - here's a routine to join together lines of BASIC. The vertical c…

    ... a "split" command, as a BASIC statement is never going to ... of ":" being typed within a string, I suppose, but in the ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • What is the (hypothetically) largest 9999 lines BASIC program possible?If the Speccy had infinite amounts of memory, what is the largest 9999 line BASIC program that could be made? (in K and amount of instructions) (Yet…

    ... favourite tool for exploring Spectrum BASIC is BASin.

    Using ... /> Using VAL to evaluate large string expressions you can really blow ...
    Geoff Geoff February 2012 Sinclair Basic
  • What is the (hypothetically) largest 9999 lines BASIC program possible?If the Speccy had infinite amounts of memory, what is the largest 9999 line BASIC program that could be made? (in K and amount of instructions) (Yet…

    ... in 48K Basic, all the REMs you enter as tokens (via the ... 'K' mode) will remain as tokens in the resulting line (they ... or not it's valid BASIC), so the whole thing can ...
    gasman gasman February 2012 Sinclair Basic
  • DATA vs PRINT and OVERjust messing about and came across this alternative way of drawing a map....now before I start mucking about with my actual program.....is there any …

    ... room from a map in BASIC is to have a matrix ... your map. As string matrices in ZX BASIC cannot be of different ... will be defined by the string using control codes, color codes ... /> You can even have two BASIC programs: the first one fills ...
    mcleod_ideafix mcleod_ideafix February 2012 Sinclair Basic
  • DATA vs PRINT and OVERjust messing about and came across this alternative way of drawing a map....now before I start mucking about with my actual program.....is there any …

    ... potential to write self-modifying BASIC, as the DATA lines can ... find the address of any BASIC line. I used this when ... treat the DATA as a string the map could be referenced ... I guess just using a string array for the maze would ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • New Tool: CheqEdit[b]CheqEdit[/b] it's a simple and small program that helps you to draw 64x48 graphics on screen in GRAPHICS MODE. Program can output as text in CHR$ …

    ... in love with your Compressed string routine there - which is just ... almost forgotten about when using Basic from my past... Few tools ... , this is a BASIC tool, but even BASIC programmers occasionally like to ...
    kgmcneil kgmcneil February 2012 Announcements
  • stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…

    ... why I get "Nonsense in BASIC" more often than not until ... />
    As it's a string function, VAL$ needs to be ... evaluate as ""; ie. a null string.

    For the looping ... calculated before VAL$ sees the string. Thus for the function call ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... be referenced by LET from BASIC afterwards. Also, if shifting ... around VARS itself then normal BASIC assignments won't work but ... thus giving a "Nonsense in BASIC" error when the "(" is encountered ... [/b] treated as a simple string, otherwise a new location will ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ... be referenced by LET from BASIC afterwards. Also, if shifting ... around VARS itself then normal BASIC assignments won't work ... thus giving a "Nonsense in BASIC" error when the "(" is ... my documentation regarding the simple string flag.

    MRT ...
    Paddy Coleman Paddy Coleman February 2012 Sinclair Basic
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    ... the data is in a string A$ then it's already ... 's to be referenced from BASIC or m/code afterwards as ... if it's a simple string in VARS then it will ...
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • A z88dk + sp1 demo (with source)Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how e…

    [QUOTE=Timmy;594378]Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how easy it actually is. (Actually I've already published this one some time ago, but this ...
    AndyOaks AndyOaks March 2012 Development
  • A new multicolor engine called BIFROST*I'm glad to announce the release of a new multicolor engine implemented by yours truly, including high quality 16x16 tiles designed by R-Tape: [IMG]…

    ... NULL (e.g. an empty string). Using a debug mem command ... ;608593]
    Even if ZX BASIC provides its own interrupt mechanism ... /> [/QUOTE]
    Agree. Infact, ZX Basic does not use IY register ... ]
    No problem. If ZX BASIC heap occupies the beginning of ...
    boriel boriel March 2012 Brand new software
  • In Java for ZXHi All I am glad to notify you that I have opened the sources of my J2Z80 translator (0.1 version) which allows to use Java toolchain to generate Z8…

    ... use string concatenations, but you can use String as constants (a string length ... to the standard ZX-Spectrum BASIC ROM. All sources for examples ...
    Raydac Raydac March 2012 Development
  • type-ins in zmakebas formati were about coding some type-ins from MicroHobby magazine, and found that there are 'semanal' tape series available at http://www.worldofspectrum.or…

    ... br /> // RUNTIME VARIABLES SAVED WITH BASIC //

    To specify ... Quote (") delimited, with normal BASIC quote-in-quote rules

    Var [some long hex string] -

    a simple ... single \ char.

    // BASIC LINES AND LABELS

    Dunny Dunny March 2012 Support files
  • Hidden Spectrum emulator discovered in Goldeneye (N64)Commence ewgf's mind being blown in 3...2...1... [url]http://news.ycombinator.com/item?id=3770288[/url] [url]http://www.therwp.com/forums/showthread…

    ... 's larger than the entire basic N64 library, and that's ... snippet to type stuff in BASIC. (That's not included--wanted ... 0x80 END marker on each string. This is the comparable block ... exclusively in ASM for normal string display.

    NDOE @ 80024478 ...
    Zoinkity Zoinkity March 2012 Sinclair Miscellaneous
  • PLOT and DRAW in machine codeHow do you go about it? If I posted a really simple BASIC instruction could someone do a machine code routine so I could learn from it? I wouldnt k…

    ... />
    For basic users, yes. For assembly users, a string of decimal ... principles to make a ZX Basic routine to do the same ...
    Gedlion Gedlion April 2012 Development
  • Spectaculator: Com port bug?I just bought Spectaculator yesterday but probably erred as the one feature it has that no other emulator has is the ability to use COM ports with an…

    ... BASIC programs that create MS-DOS batch files by LPRINTing a string ...
    zxbruno zxbruno April 2012 Emulators
  • +3 DOS questionHey all, Is it possible to catalogue a +3 disk to a variable somehow from BASIC? I'm looking at extending my Snapshot to Microdrive utility, so it s…

    This small BASIC routine will put a +3 ... it can be retrieved. The string must be DIMed in advance ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Turn UDG to Attrribute blocksI'm trying to enlarge my UDG's to 8 x 8 character blocks per pixel, but struggling, is there any subroutine/program for enlarging UDG's x 8?

    ... And do you mean in BASIC?

    There ... e.g. string 0="____", string 1="___X",... string 11="X_XX" ... and pick the relevant string. This represents the first ... and add on the string for that number. That ... pixels. Then print that string of 8 characters, ...
    joefish joefish May 2012 Development
<1…28293031323334>

Latest Posts

  • European Software Titles with an English version
    Antiriad2097 on 6:40AM
  • 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
  • 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
string 2.8K 5.1K
tokens 374 492
basic 24.7K 39K

Related Threads

  • getting c nonsense in basic when trying to load a program through a string in +3 basicstrangely if i use load s$(to 8), it says nonsense in basic but works when i run it. but when i execute the command without a line no it works withou…
  • Switch from 128k BASIC to 48k BasicHello,<br /> <br /> Is there a way to start off running a program in 128k basic (so that you can use the ramdisk facilities) but then switch back dow…
  • (Basic) Sinclair BASIC mode for EmacsI saw this [URL=http://www.worldofspectrum.org/forums/showthread.php?t=14622]post[/URL] regarding a Sinclair BASIC editing mode along with some Fuse …
  • Help with Visual Basic 6.0 vs Visual Basic.netI have a program that auto generates VB.Net code..... I know VB.net syntax and am happy with the code generated.<br /> <br /> However, I have been as…
  • What did Spectrum BASIC lack (and was BBC BASIC so good?)Over the years, I've read in various multi-format magazines, that BBC BASIC was probably the best BASIC available on an 8-bit machine. I've never use…
  • 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:<br /> <br /> [quote]<br /> 20 RAN…
  • 48K BASIC to ZX81 BASIC conversion possible?Looking for an automated way of converting a BASIC program done on a<br /> 48K Spectrum to one for the ZX81. It's obvious that some things cannot<br …
  • ZX Basic 1.2.5 - a BASIC CompilerWell, my old post about ZX BASIC seems to be gone (maybe this phorum purges old threads?), so I started a new one.<br /> <br /> After more than 6 mon…
  • Basic BASIC help needed RNDHi all,<br /> <br /> I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers.<br /> <br …
  • Star BASIC or *BASIC??? Anyone heard of this?Does anyone remember a thing called Star Basic or *basic?<br /> <br /> It was a tape that extended the BASIC instruction set and from memory you put …

Related Searches

  • tokens
  • rst8 return to basic
  • rst8 basic
  • return to basic
  • basic tips tricks
  • best basic manual
  • writing music in basic
  • play in basic
  • play command in basic
  • basic upper lower case
  • basic toupper tolower
  • basic lcase ucase
  • basic change upper lower case
  • basic
  • basic flicker
  • string graphic blocks basic
  • basic string
  • basic memory string copy
  • basic memory fast string copy
  • basic screen string

Copyright © 2024 World of Spectrum