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…13141516171819…34>
  • Encode two positive int numbers into one?Hi guys) Recently I've been trying to simulate short lists in Basic, but the point is that using limited values, say, 0-99 or 0-999, I remembered ho…

    ... packing the numbers into a string is overall just as quick ... =a*1000+b
    20 PRINT a,b,big
    30 ... *INT (big/1000)
    40 PRINT a2,b2

    60 ... $ (a*1000+b)
    70 PRINT a,b,n$
    80 ... /> 90 PRINT a$,b$
    [/code]
    Plus with a string any ...
    The_Bert The_Bert June 2012 Sinclair Basic
  • Encode two positive int numbers into one?Hi guys) Recently I've been trying to simulate short lists in Basic, but the point is that using limited values, say, 0-99 or 0-999, I remembered ho…

    ... with leading zeroes in the string case?[/QUOTE]
    < ... 1000+b
    20 PRINT a,b,big
    40 PRINT a2,b2

    70 PRINT a,b,n$
    90 PRINT a$,b$
    [/code ... long as printing a string containing the same number, ...
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • Encode two positive int numbers into one?Hi guys) Recently I've been trying to simulate short lists in Basic, but the point is that using limited values, say, 0-99 or 0-999, I remembered ho…

    ... *10000-c2*100
    40 PRINT a2,b2,c2,d2
    90 PRINT a$,b$,c$,d$
    PRINT AT a,0;b
    40 NEXT a
    50 PRINT n$
    110 FOR a ... elements in a second string, with the number string holding pointer/length ...
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • Help needed... RND in machine codeI have been battling away trying to convert a simple BASIC routine (below) to machine code, but to no avail. The routine is used to fire 2 bullets a…

    ... /> defb $34,$B0 ;stk_data (short string)
    defw $023F ;address of ... the same seed, one using "PRINT (1+INT (RND*4))*5 ... -1" and one using "PRINT USR rndfun" will give the ...
    Battle Bunny Battle Bunny July 2012 Development
  • ESXDOS v0.8.0 released (with NMI Browser)Hello, To celebrate the speccy's 30th birthday, here's the latest version of ESXDOS for DivIDE users. The full changelog is too long to post here, s…

    ... "What do you want to print today?", 13
    defb ... BIN/ directory with filename PRINT. then boot esxdos and you ... could use .print command for example: .print "Hello world"
    string. i found that there is problem with .print CHR ...
    ub880d ub880d July 2012 Announcements
  • dungeon crawlerHi. I'm toying with idea of making simple dungeon crawler in spectrum basic and i actually got first version working somehow. [IMG]http://watashi.ic.…

    ... way to PRINT in BASIC is to construct the string first and ... in one go to the PRINT routine. You can use embedded ...
    chev chev July 2012 Sinclair Basic
  • dungeon crawlerHi. I'm toying with idea of making simple dungeon crawler in spectrum basic and i actually got first version working somehow. [IMG]http://watashi.ic.…

    ... 2001 sets up the attributes string c$; line 2003 associates ... r=4 TO 18: PRINT AT r,8;"abcdefghijklmno": ... r=3 TO 19: PRINT AT r,0;"********************************": NEXT ... /> DIM b$(15): PRINT PAPER 5;AT 3,7 ... ;" ": NEXT r:
    PRINT PAPER 5;AT 19,7 ...
    Battle Bunny Battle Bunny July 2012 Sinclair Basic
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... .

    However, that fast string print further back will come in ...
    R-Tape R-Tape July 2012 Development
  • Copying Files in +3e BASIC (not using COPY command)Hello there my fellow WoS'ers Yet again I find myself in need of guidance, I am sooo close to getting my prototype up. I am writing my own byte cop…

    ... -Line 160 should be 160 PRINT #4; CHR$ c;

    You PRINT was adding 2 plus chars ... the file is creating a string. Instead of adding 110 ... RETURN #5,p
    160 PRINT #4; CHR$ d;
    ... 4 : CLOSE #5 :
    210 PRINT "File End "; p ;" Bytes of ...
    Encarnado Encarnado July 2012 Sinclair Basic
  • Copying Files in +3e BASIC (not using COPY command)Hello there my fellow WoS'ers Yet again I find myself in need of guidance, I am sooo close to getting my prototype up. I am writing my own byte cop…

    ... treating files as a looooong string. I remembered Paddy Caps Lock ... didn't really checked if PRINT #4;d; writes a byte ...
    Encarnado Encarnado July 2012 Sinclair Basic
  • INKEY$ giving me troubleHello, I have been using BASin (great program by the way...) Sad though it seems during the typhoon here I have been re-learning my spec-skills an…

    ... I'd drop the whole string part of the INKEY$ routine ... is this:

    10 PRINT "Press ""S"" to start"
    40 CLS: PRINT "There you go!"
    The Starglider The Starglider August 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... : LET C=15
    30 PRINT AT L,C;CHR$ (48 ... $ is assigned to the variable string A$.

    LINE 50 ... of check on the A$ string then doing something between two ... : LET C=15
    30 PRINT AT L,C;CHR$ (48 ... : LET C=15
    30 PRINT AT L,C;CHR$ (48 ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... & limits
    * g$() - print controls (AT + INK + OVER) and ... just need a simple "PRINT g$(n)" statement due ... * Line 78 moves each object vertically on keys 6/7 (or ... g: NEXT b:
    PRINT g$(n): NEXT n
    PRINT g$(n): LET g=ABS ...
    Battle Bunny Battle Bunny August 2012 Sinclair Basic
  • PRINT a numerical value i.e. the scoreHow do you fo about printing a numerical value using the print routine in the ROM? For instance I have a value 0-255 and want to PRINT the result at…

    ... need to multiply anything. Just print two zeroes following the number ... the ROM routine generating the string for the 0-255 number ...
    Alcoholics Anonymous Alcoholics Anonymous August 2012 Development
  • DooM on Spectrum 128kHello my fellow WoS'ers My hope is that you can help me, recently I discovered a DooM clone -esque on the Humble spectrum, - here is a [URL="https:/…

    ... maybe 450 bytes for a print control string. So if I can ...
    Battle Bunny Battle Bunny August 2012 Games
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    [QUOTE=WibbleBibble;649808]So with an array whats faster for basic to work with a array of strings or a numeric array if i have data that could be used either as a numeric array or i could just put them in a char array.[/QUOTE]

    Here's a simple ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... that shouldnt mess up the print space at the top of ... 3, PLAYER 4 (trivial, 4 string arrays assigned before start of ...
    WibbleBibble WibbleBibble September 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... discarded ...

    The repetitive print sections could be merged into ... I$() is a 100 byte string containing the INK colour for ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • Type-in Checksum PuzzlerAt least one of the hex dump type-ins at [url=http://www.users.globalnet.co.uk/~jg27paw4/type-ins/typehome.htm]TTFn[/url] has a checksum routine a cu…

    ... 32767 STEP 8
    70 PRINT f;
    80 LET ... IF LEN h$16 THEN PRINT "Error in length": BEEP ... TO 70
    110 PRINT TAB 8;h$;
    120 ... GO TO 180
    200 PRINT TAB 27;" } ";c$
    ... IF digitVAL c$ THEN PRINT "Error in string - input again": BEEP ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... speed up things by using "PRINT USR a$,a[,b...,z ... can be used wherever a string expression can be used.[/QUOTE ...
    Jonathan Harston Jonathan Harston September 2012 Development
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... do something like:
    [b]PRINT USRaddr,a$,a,b$,c ... a string result with length 0, so doesn't actually print anything ...
    Jonathan Harston Jonathan Harston September 2012 Development
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... in place of a string expression, as PRINT is a command not ... to be useable wherever a string array expression could be used ... as well just use plain string array syntax with an erroneous ... ])
    to initialise the parameter string (this just tells the main ...
    Battle Bunny Battle Bunny September 2012 Development
  • need a new method for m/c parameter assignmentI've been using a variable length function of the form: "FN a$(a$,a[,b...,z])=STR$ USR md" to search a data table and return a string result. By putt…

    ... can be used wherever a string array expression could be used ... AND (function)"cat" THEN
    PRINT CODE (function)(n);
    SAVE ... ; a$ is just a simple string a few bytes long specifying ...
    Battle Bunny Battle Bunny October 2012 Development
  • Mini scroll routineI'm looking for a routine that scrolls a small section of the screen downwards and replaces it with nothing, 2 x 2 charcter blocks to be precise, to …

    ... =1 TO 16
    9002 PRINT AT 0,0;"\c\g ... ,PEEK 23675+1
    9012 PRINT AT 0,0;"\c\g ... /> [/code]
    Characters which are vertically adjacent on the screen have ...
    Battle Bunny Battle Bunny October 2012 Development
  • Covering my tracks using OVERI've got myself in a bit of a mess again I'm afraid, the routine I have written is for 4 characters to move across the screen 2 spaces at a time in I…

    ... if moving rightwards a string of length l by ... leftwards), then printing the string will automatically clean up ... less than (s+l) print positions remaining on the ... code will move the string rightwards, cleaning up as ... br /> LET p=32-c: PRINT AT 0,c;a$( TO ...
    Battle Bunny Battle Bunny October 2012 Development
  • Help needed...I am at my wits end with this pigs ear of a routine, can anyone simplify it and make it work as it should? Basically it should make the characters '…

    ... /> split equ 32-tstep
    ;PRINT AT row,0;: RANDOMIZE USR ... ,32
    call $203c ;PR-STRING
    ld hl,ttext
    Battle Bunny Battle Bunny October 2012 Development
  • Help needed...I am at my wits end with this pigs ear of a routine, can anyone simplify it and make it work as it should? Basically it should make the characters '…

    ... embedded print controls in the text, as with a plain text string ... be prepended in a separate string so that they weren't ... : PAPER 7: CLS
    20 PRINT INK 6; PAPER 1, INK ... 1; PAPER 6,
    30 PRINT AT 0,0;: RANDOMIZE USR ...
    Battle Bunny Battle Bunny October 2012 Development
  • Converting UDG to 2x2I've got a udg that I want to display in different sizes. Obviously I just print it for normal size, I can use the udg in bin format to display it ea…

    ... , y as uByte, s as String, attr as uByte)
    Dim ...
    na_th_an na_th_an October 2012 Sinclair Basic
  • help needed :) how to rotate a 3 x 3 array 90 degreesI just cant seem to get this sorted in my head ( or on paper ) , I've found multiple examples in C , python , etc but cant find any z80 examples any …

    ... just using a simple 1D string as the "array", ... rearranging stuff in a sequential string of bytes; the "rotation" ... z=1 TO d: PRINT a$((z-1)*d+1 ... z*d): NEXT z: PRINT[color=green]
    30 ... z=1 TO d: PRINT b$((z-1)*d+1 ... TO z*d): NEXT z: PRINT
    40 PAUSE 0: ...
    Battle Bunny Battle Bunny October 2012 Development
  • Converting UDG to 2x2I've got a udg that I want to display in different sizes. Obviously I just print it for normal size, I can use the udg in bin format to display it ea…

    ... -byte table and the same print boundaries as I'd used ... 's a simple PRINT routine wich deals with a string with embeded ...
    na_th_an na_th_an October 2012 Sinclair Basic
<1…13141516171819…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