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.009s
<1…19202122232425…34>
  • What am I doing wrong here?[code]IF INKEY$=SCREEN$ (21,4) THEN LET SCORE=SCORE+1[/code] It's delivering a positive every time.

    ... /> LET b=CODE INKEY$
    PRINT a,b[/code]

    [quote]Characters taken from tokens print normally, as single characters, and ... return as a null (empty) string, however. The same applies if ...
    Zup Zup May 2016 Sinclair Basic
  • What am I doing wrong here?[code]IF INKEY$=SCREEN$ (21,4) THEN LET SCORE=SCORE+1[/code] It's delivering a positive every time.

    ... machine stack so that this string
    ;becomes the output from ...
    9 LET score=0: PRINT AT 21,16;score
    PRINT AT r,c;a$;AT ...
    LET score=score+1: PRINT AT 21,16;score; AT ...
    Battle Bunny Battle Bunny May 2016 Sinclair Basic
  • Basic BASIC help needed RNDHi all, I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers. I know little now, an…

    ... that construct is "Piece-of-String.BAS":
    [code]
    20 ... /> defb $34,$B0 ;stk_data (short string)
    defw $023F ;address of ...
    Battle Bunny Battle Bunny May 2016 Sinclair Basic
  • TommyGun's getting a Debuggerhttp://youtu.be/B_kZVRvYV98 I have always wanted to debug the programs I write in TommyGun using TommyGun instead of the debuggers in emulators. …

    ... your own messages using the String editor in TommyGun and ... />
    5 bytes to print out a 1 byte variable ... br /> 6 bytes to print out a 2 byte variable ... br /> 19 bytes to print out a memory dump (location ... )
    5 bytes to print out a user custom defined ...
    Kiwi Kiwi July 2016 Development
  • Leading Zeroes on a Score in BASICI'm trying to print the score with leading zeroes such that it's always 6 characters wide, i.e.: 000010, 000150, 006100 etc. I quickly knocked thi…

    Time in seconds to print "000999" 100 times from 'score':< ... rather than a 1-letter string variable name;
    (b,mostly ... ).
    After calculating the PRINT position, "find & print 'score'" takes about ...
    Battle Bunny Battle Bunny July 2016 Sinclair Basic
  • Empire - port of trs80 basic programBack when I was a little kid, I had the opportunity to play around with a trs80 model 1 with level 2 basic. One of the games I often played was call…

    ... /> [code]57 PRINT@896,CHR$(30):PRINT@960,CHR$(30);:PRINT@896,"";:RETURN ... ]
    Something like:
    [code]PRINT AT 14,0;TAB 16 ... CHR$(30) and a null string?
    Battle Bunny Battle Bunny July 2016 Brand new software
  • Empire - port of trs80 basic programBack when I was a little kid, I had the opportunity to play around with a trs80 model 1 with level 2 basic. One of the games I often played was call…

    ... characters by default but each string can be grown dynamically. So ... /> [code]57 PRINT@896,CHR$(30):PRINT@960,CHR$(30);:PRINT@896,"";:RETURN ... CHR$(30) and a null string?[/quote]

    I ... there because some sort of string needs to follow the @.
    Alcoholics Anonymous Alcoholics Anonymous July 2016 Brand new software
  • Interesting VAL featureHi Folks, No doubt most people know this but it is new to me! The following code generates the answer of 10. [code]10 LET A$="X+X" 20 LET X…

    ... for BASIC functions within the string, for example for a quick ... way to convert a string of binary digits to a ... number.

    [code]
    PRINT VAL ("BIN " + b$) [/code]
    [code]
    PRINT VAL (CHR$ 196 + b$)[/code]
    GReW GReW September 2016 Sinclair Basic
  • thinking on creating an arcade... somethingHi to all For a while i have been thinking on creating an Arcade Cabinet, but the cost, time and space necessary place it in hold. Recently whi…

    ... that goes across horizontally or vertically, by using 4 vesa standard ... fit correctly.

    Example: print plan "stencil", on A4 paper ...
    RMartins RMartins September 2016 Chit chat
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... a string that contains the AT and 40 TABs and then print ... $ 6: NEXT I
    120 PRINT C$
    [/code]

    Paddy Coleman Paddy Coleman October 2016 Sinclair Basic
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... REM Build draw string
    130 REM
    140 PRINT AT 0 ... ,0;"Please wait, building string"
    150 ...
    Paddy Coleman Paddy Coleman October 2016 Sinclair Basic
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... REM Build draw string
    130 REM
    140 PRINT AT 0 ... ,0;"Please wait, building string"
    150 ...
    Paddy Coleman Paddy Coleman October 2016 Sinclair Basic
  • Akalabeth gamei found now that someone ported an ansi-basic game (coded in 1979?) to msx-basic - what about a zx-spectrum basic version of it? ;) https://plus.goo…

    ... is rather than using a string you store the data in ...
    140 REM
    150 PRINT AT 0,0;"Please wait ...
    Paddy Coleman Paddy Coleman October 2016 Sinclair Basic
  • RANDOMIZE USR, PRINT USR etcHello just wondering why is it called RANDOMIZE UsR what does randomising have to do with it ? When calling machine code routine from adress x you ty…

    ... last question first, "PRINT USR 65368" doesn't print the UDG because ... 're not telling it to print a UDG, you're telling ... starting at 65368 and then print the resultant number.

    string rather than a number, which ...
    Battle Bunny Battle Bunny October 2016 Sinclair Basic
  • Arrays in BASICHi so I'm making this crappy game and I wanna store the screen positions of some UDGs in in a 50x2 array cause I have 50 characters. So I made the ar…

    ... , Battle Bunny. Lines like "PRINT #2 OR r>=low ... /> The line:
    [code]
    PRINT #2 OR r>=low ... r>=low Then
    Print #1; AT r-21, ... 0;
    Else
    Print #2; AT r,0;
    string.

    In the ...
    GReW GReW October 2016 Sinclair Basic
  • Arrays in BASICHi so I'm making this crappy game and I wanna store the screen positions of some UDGs in in a 50x2 array cause I have 50 characters. So I made the ar…

    A string array a$() can be ... FN p(23641)-1-18: PRINT "Arrays start","= ";FN p ...
    1020 RESTORE 10000: PRINT "PROG ends","= ";FN p( ... of PROG ...
    1026 PRINT "VARS starts","= ";FN p( ... VM=PEEK VE
    2031 PRINT "VARSize","= ";VS'
    " ...
    Battle Bunny Battle Bunny October 2016 Sinclair Basic
  • Welcome to the Matrix!Ok here's something I been playing with while I'm at work and on public transport. I'm thinking I want to be able to move the large letters around th…

    Just store the message in a string variable.
    Let a$="put message here"
    Let l=len a$
    Print at 0,0; a$(1 to 31)
    Let a$=a$(2 to l) +a$(1)
    Rebelstar without a cause Rebelstar without a cause October 2016 BASIC
  • Help with Snake type game...any ideas ?Hi all I've attached me trying to write a snake type game. My first concern is me not writing over the System variables area. I'm pretty happy what i…

    ... , so we'd go with string variables to hold the trail ... actual new tail position to PRINT a UDG to if we ...
    Dunny Dunny November 2016 Sinclair Basic
  • how to fix instructions on screenI have a problem with my sequencer. I want the top half of the screen to stay fixed but allow the note values to print without pushing the instructio…

    ... general subroutine, which will print any string, and in the ... or $FF) to terminate the string.

    To ... br /> DEFM "a zero-terminated string"
    DEFB $00
    ... br /> DEFM "another zero-terminated string"
    DEFB $00
    ...
    The_Bert The_Bert November 2016 Sinclair Basic
  • flash in a stringhi, is it possible to store flash in a string? u can store colours, bright, etc.

    No need to stop with FLASH either - there are control codes for many things such as PAPER, INK, AT etc. These can all be added to a string and printed with a single PRINT command and it is quicker!

    Paddy
    Paddy Coleman Paddy Coleman January 2017 Sinclair Basic
  • flash in a stringhi, is it possible to store flash in a string? u can store colours, bright, etc.

    You can also include PRINT position values and also opcodes ... to generate the program name string when saving to tape.
    string containing the text FLASH LOAD ... two words and repositioned the PRINT position to column 0.
    Gwyn Gwyn January 2017 Sinclair Basic
  • flash in a stringhi, is it possible to store flash in a string? u can store colours, bright, etc.

    ... modifier codes directly into a string using combinations of Extended ... combination inserts two characters, which print correctly only when combined. ... codes to speed up print statements in a simple ... had hoped that;

    PRINT at x,y; ""
    ...
    Georgeo Georgeo January 2017 Sinclair Basic
  • flash in a stringhi, is it possible to store flash in a string? u can store colours, bright, etc.

    Printing a string with embedded print controls is faster than printing ... +CHR$ INT(RND*8)
    PRINT a$
    [/code]
    ... again with the
    PRINT statements removed gives timings of ... , so the timings for the PRINT
    statements themselves were ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • How difficult to do a Harry Price?how difficult do you think it was to do a Harry Price and do a total Mod of a magic knight game? He must have owned a multiface thingy to look at …

    ... to indicate whether to print horizontally or vertically, on top of other ...
    Morkin Morkin January 2017 Games
  • How difficult to do a Harry Price?how difficult do you think it was to do a Harry Price and do a total Mod of a magic knight game? He must have owned a multiface thingy to look at …

    ... to indicate whether to print horizontally or vertically, on top of other ...
    Weyoun Weyoun January 2017 Games
  • Comp.Sys.Sinclair Crap Games Competition 2017As the creator of the second-least crap game in last year's competition (and the only mug stupid enough to agree to host it this year) I am proud/ash…

    ... simple attribute-based scrolling, either vertically or horizontally. They use a ... z=USR 63032
    280 PRINT AT y,x;"A"
    570 REM Always:
    580 PRINT AT y,x;"A"
    joefish joefish January 2017 Games
  • User defined function in Sinclair BASICI'm looking to create a user defined function in Sinclair BASIC to add up numbers being input. This is the program without a user defined function be…

    ... /> 60 NEXT i
    70 PRINT s
    [/code]
    Of ... sent a number as a string and adds up the digits ...
    Richey Richey February 2017 BASIC
  • "ZX80 Brain" RPN CalculatorIt is at times like [url=https://www.worldofspectrum.org/forums/discussion/54176/depression]when threads such as this are posted[/url] that I get the…

    ... very small decimal in the string that the number display can ... when it tries to print VAL of the string.
    - no exponent ... a separate part of a string called f$ and a numerical ...
    The Mighty Dopethrone The Mighty Dopethrone March 2017 Sinclair Basic
  • Fuse 1.3.2 releasedA new release of Fuse, the Free Unix Spectrum Emulator, is now available at the SourceForge project: https://sourceforge.net/projects/fuse-emulato…

    If you are formatting it with '%s' the compiler is expecting a string, not a character. You would need to use a '%c' to print a single character only or make a string instead if you need to use a string format ('%s') for other reasons.
    Fred Fred March 2017 Emulators
<1…19202122232425…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott 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
  • European Software Titles with an English version
    harriusherbartio 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
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
print 8.5K 20.4K
string 2.8K 5.1K
vertically 649 723

Related Threads

  • How to print with colour using DiscipleHi!<br /> <br /> I was wondering if there is any way of printing in colour using the Disciple. I am using an Epson Stylus 600 Printer with one of my …
  • Sinclair User: Blue Print Double DragonI'm not sure what issue the Blue Print of Double Dragon appeared, I think it was issue 78 (September 88)<br /> <br /> Even a scan would do. Cheers
  • Scrolling string variablesCan anyone help me with this for a program I'm writing on the spectrum.<br /> There was a command in speccy basic that would let you scroll a string …
  • 42 column text, Sinclair Print Utilities, etcI'm currently developing the next of the ZXIF text adventures - "43 Minutes" and, as a side issue, I'm really interested in 42 column text for this g…
  • Print 'n' Plotter SPRITE MACHINEJust got this from an ebay seller this afternoon. I just TZXd it and sent it to the Steve at the vault, yet it might be a while before it gets put up…
  • How to get Grahics to wrap vertically around the screen?I am using the following code to draw an image to the screen.<br /> <br /> First I use HL to contain ROW and COLUM<br /> I then call the MapScreenFun…
  • Vertically Scrolling Shoot-em-upsHi everyone,<br /> <br /> I want to put together a list of vertical scrolling shoot-em-ups. I have most of the well known ones (see list) on it alrea…
  • String slicing for UDG definitionHey everyone.<br /> <br /> Got a bit of a string slicing/string to variable conversion problem.<br /> <br /> 10 let a$="01100110"<br /> 20 let pokeva…
  • print at line 22 and 23I have a faint recollection of POKES to allow print at 22,x and 23,x, anyone know what they are? (rather than using the print #0 #1 stuff..)
  • PRINT AT in assemblerHello everyone,<br /> <br /> I am very new to this forums. Like perhaps many others I had a Spectrum as a child and did pretty much simple BASIC prog…

Related Searches

  • print a char in asm
  • print variables
  • ld bc eostr string
  • print on border
  • reorder a string
  • print leading zeroes
  • change characters in string
  • print at 23
  • print through
  • asm text print
  • assembly print text
  • assembly print text at pixel
  • print one line
  • rst 16 print routine
  • inputting to a string array
  • print usr
  • print usr bc
  • print 16 bit number
  • basic print free ram
  • print string diagonal

Copyright © 2024 World of Spectrum