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…18192021222324…34>
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on

    ... ->binary conversion into a string.
    [code]
    10 LET ... $="": LET dec=INT (RND*256): PRINT dec,"=";
    20 LET din ... 20+NOT dec
    21 PRINT b$: GO TO 10[/code]
    Battle Bunny Battle Bunny September 2015 Development
  • im looking for a basic routine that adds a numerical character to a stringim looking for a basic routine that adds a numerical character to a string. so a=1, "1", then a=0 "10", then a=1 "101......" and so on

    ... $ = n$ + STR$ num
    40 PRINT n$
    50 GOTO 20 ... do i convert a binary string into hex?
    digital digital September 2015 Development
  • how do i convert a binary string into hex in basic?how do i convert a binary string into hex in basic?

    ... 20 REM Random binary string generator
    30 LET ... + STR$ num
    60 PRINT n$
    70 IF LEN ... gt; 9 ) ) )
    100 PRINT: PRINT n$
    110 LET b ... b + ( 2 ^ power ): PRINT 2 ^ power; "+";
    150 ... NEXT n
    170 PRINT: PRINT b
    180 LET ...
    dbolli dbolli September 2015 Development
  • how do i convert a binary string into hex in basic?how do i convert a binary string into hex in basic?

    ... LET dec=INT (RND*256): PRINT dec;TAB 12;"=";:
    REM ... TO 8-LEN b$)+b$: PRINT b$;TAB 24;"=";: LET ... $ has 8 digits & print
    30 FOR n=LEN ... /> REM convert binary string b$ to hex string h$
    31 ... TO 2-LEN h$)+h$: PRINT h$: GO TO 10:< ...
    Battle Bunny Battle Bunny September 2015 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... as string widths in pixels.

    The bare bones fzx print ...
    Alcoholics Anonymous Alcoholics Anonymous October 2015 Development
  • Arcade Game DesignerTime I posted an update on this, I've been working on the next version - along with another developer who is writing the editors - since July. Wor…

    ... the keys. The double-height print routines have disappeared, there's ... with PRINT "message". Likewise MENU, INV and TICKER now have string arguments ...
    jonathan jonathan October 2015 Development
  • Small Machine Code Routines Which Maybe UsefulAs part of creating Flynn's Adventure in Bombland I created a lot of little routines to do all sorts of things. A lot of these I created based on inp…

    ... there will be much better print 64 routines available.

    string then call printstring
    ;control codes (see printjptable) 32 we print ... /> dw donowt
    dw pratt ;print at 1,y,x
    print routine
    ld a,h ...
    R-Tape R-Tape December 2015 Development
  • Text scroller and custom fontYesterday I was testing this text scroll routine taken from Jonathan Cauldwell's Intro Maker (labels have been inserted to allow partial code relocab…

    Your routine doesn't use PR_STRING to print the string. You just need to change one byte. If your charset is loaded at 64000, then change "ADD A,60" at line 42 to "ADD A,249". I'll leave you to work out why.
    Battle Bunny Battle Bunny January 2016 Development
  • So I did a thing...And it's nearly ready for release: [img]http://s18.postimg.org/4453ayo5j/Screen_Shot_2016_03_30_at_16_18_17.png[/img] Apologies for the enormou…

    ... now be used instead of PRINT
    Due to popular ... function caused problems
    String multiplication with negative values no ... in Linux versions
    PRINT and TEXT could cause a ... crash/error with an empty string
    Fixed filled circles - ...
    Dunny Dunny April 2016 Sinclair Basic
  • Function with push and popIm trying to see if I understand push and pop when it comes to using to pass parameters to functions: [code] LD HL,16384 LD A,5 Push AF Ld A…

    ... string in any base.

    [code]
    ld hl,16 ; print ... string to
    push hl
    ld hl,12345 ; number to print ... br /> call utoa_callee ; print number to buffer in ... />
    ; write digits to string

    ; ix = ...
    Alcoholics Anonymous Alcoholics Anonymous April 2016 Development
  • 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
  • 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
<1…18192021222324…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
diagonal 443 528

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…
  • 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…
  • Method to read byte as binary string rather than dec?Hi all<br /> <br /> Am fiddling around with the screen buffer and have written a routine to scan the screenbuffer into upper ram and then write it ba…
  • Print routine for BASIC (or BASin)For anyone interested there's a crappy binary here to print characters from BASIC at pixel positions. Import the binary at 60000, USR 60000 to initia…

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
  • diagonal
  • diagonal hex
  • diagonal movement
  • print one line
  • rst 16 print routine
  • inputting to a string array
  • print usr
  • print string vertically

Copyright © 2024 World of Spectrum