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…11121314151617…34>
  • IN or INKEY ?just curious which is better to use.. I have a menu done.. and use 6/7 to go up down it + space to cycle thru the options (using inkey).. obv. if I w…

    ... PRINT z$;: INK 7: PRINT " - ";: NEXT T
    14 PRINT z$;: INK 7: PRINT ... REM 4most logo
    51 PRINT AT 0,2;"\.:\::\ :\:.\ .\::\ .\:'\''\:.\ ... REM get title string length for centering
    821 PRINT ; OVER 1; PAPER ...
    fog fog October 2011 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    ... GO SUB 9000
    120 PRINT "i$(1)=";i$(1, TO ... i2):
    PRINT "i$(2)=";i$(2, TO ... i3):
    PRINT "i4=";i4
    130 STOP ... /> 9010 REM i$(1)=Whole String
    9020 REM i$(2 ... )=Search String
    9030 REM i1=Pointer ...
    Paddy Coleman Paddy Coleman October 2011 Sinclair Basic
  • Display half a screenWorking in 128 Basic and saving screens to memory via - SAVE! "image" SCREEN$ . Is it possible to display just the top half (or the bottom half) of t…

    ... FOR b=1 TO 32: PRINT a;a;: NEXT b: NEXT ... FOR a=8 TO 21: PRINT AT a,0;:
    FOR ... b=0 TO 31: PRINT CHR$ (a+57);:
    NEXT ... b: NEXT a: INVERSE 0: PRINT #0;"press 'j'"
    ... rather, in which case the string method might be preferable, if ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • FN nesting error?While playing with FN functions that call assembly, I've found something weird. Check out this code: [code]10 DEF FN f(a,b)=a+b 20 PRINT FN f(FN f(…

    ... completeness, the same occurs with string functions although I believe FN ... $,b$)=a$+b$
    20 PRINT FN a$("aaa","AAA")
    30 PRINT FN a$("bbb","BBB")
    40 PRINT FN a$(FN a$("aaa ...
    BloodBaz BloodBaz October 2011 Sinclair Basic
  • probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…

    ... you use 0 as string termination, then that print sequence would end ...
    RetroTechie RetroTechie October 2011 Development
  • probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…

    ... you use 0 as string termination, then that print sequence would end ... solution if you need to print zero in an AT is ...
    guesser guesser October 2011 Development
  • probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…

    ... print TAB 0, you can't because 0 will terminate your string ... , but doesn't terminate the string early.


    EDIT ...
    guesser guesser October 2011 Development
  • probably a stupid question about RST16I'm using the 'hello world' code borrowed from [url=http://equant-retrochallenge.blogspot.com/2008/07/zx-spectrum-assembly-programming-under.html]her…

    ... print TAB 0, you can't because 0 will terminate your string ... , but doesn't terminate the string early.[/QUOTE]
    As I ...
    rich_chandler rich_chandler October 2011 Development
  • New WIP underway - 'Dingo'.Hi, Prepare for a long post. Perhaps I can even challenge ewgf here. :razz: Anyway, I've been meaning to get into Z80 programming and making a game…

    ...
    ;
    ; prints a string which is terminated with $ff ... back
    ;call pm_do_it ; print the message
    ;ret
    print
    inc hl ; point ... the string
    ret z ; so exit
    rst 16 ; print ...
    polomint polomint October 2011 Development
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... call 5633
    ld de,string ;instructions
    ld bc ... ,theendofthestring-string
    call 8252
    ... that's 10 udgs made, print & return
    ... br /> ld bc,22 ;string length
    call 8252 ... BASIC!
    ;
    string defb 22,0,0,'In ...
    R-Tape R-Tape December 2011 Development
  • 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 …

    ... from BASIC by:
    ;PRINT USR stack,arg1[,arg2...,argn ... /> The advantage of using the "PRINT USR to calculator stack" method ... the general function call:
    PRINT USR stack,arg1[,arg2...,argn ... ],address;
    will print nothing at all (as long ...
    Battle Bunny Battle Bunny 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 …

    ... from BASIC by:
    ;PRINT USR stack,arg1[,arg2...,argn ... /> The advantage of using the "PRINT USR to calculator stack" method ... the general function call:
    PRINT USR stack,arg1[,arg2...,argn ... ],address;
    will print nothing at all (as long ...
    Dunny Dunny 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 …

    ... was before.
    [code]
    ;PRINT USR stack,string_expression,max_length,substr ... br /> ex de,hl ;HL=string pointer
    inc c ;C ... /> inc b ;don't count print controls
    PRCHAR: rst $10 ...
    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…

    ... INT (RND*500)
    40 PRINT o;": ";dividend;" is ";USR pct ... /> 50 IF o=3 THEN PRINT TAB 3;"a=";a
    OPTION1:;just print the answer
    call $2de3 ... the answer as a string and print the string
    call $361f ;STR ...
    Battle Bunny Battle Bunny December 2011 Development
  • Tool for saving prog op codes in one neat column?[deleted]

    ... selected address range, with a print width from one to sixteen ... "
    End? (hex) "2950"
    Print address? [hdn] "n"
    Bytes ... spaced? [yn] "n"
    will print Look_Vars like this:

    PRINT at line 100 could be changed to append to a string ...
    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 …

    ... /> See in my program, to print coloured words on the screen ... opposed to say:
    10 print; at 1,1; ink 2 ... . or I have built a string containing the control codes externally ...
    Paddy Coleman Paddy Coleman January 2012 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…

    ... the (variable) length of the string being scanned.

    The ... SUB VAL "1120"
    1353 PRINT AT me+k1,k0; OVER ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • Annoying colour issues with UDGsMe again... Flush with the success of finding the latest version of BASin to play with I tried to buff the graphics of the various screen items All…

    ... *RND: NEXT n
    20 PRINT AT 0,0; PAPER 8 ... />
    PAPER 8 makes the string printed not to alter the ...
    mcleod_ideafix mcleod_ideafix January 2012 Sinclair Basic
  • Using the ROMs PRINT routineI really am starting from scratch again it seems, but how do you utilize the ROM routine to print characters, I think you point te BC register to an …

    ... ; Karingal posted non ROM print routines that did an x ... ,y print at but couldn't ... inc ix ;next ascii in string
    inc e ;next ... ;is the end of the string.
    jr pstring ;continue ... /> ret
    ;
    string defb 'THE ROM FONT ISN ...
    R-Tape R-Tape January 2012 Development
  • How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…

    ... computing the character in the print routine, for the convenience of ... running vertically, less spacing? It'd take a little longer to print ... but with the bytes running vertically.
    joefish joefish January 2012 Development
  • How to safely maximise available memoryHi All, I'm toying with an idea that will require I have as much memory available as possible. I'm a little embarrassed I have to ask this tbh. As…

    ... running vertically, less spacing? It'd take a little longer to print ... but with the bytes running vertically.[/QUOTE]

    I used ...
    Geoff Geoff January 2012 Development
  • 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…

    ... line like

    100 PRINT BIN 000000000000000000000 {...} 00000000000000000000101


    Entering RUN would print 5 and using the Debug ... /> Using VAL to evaluate large string expressions you can really blow ...
    Geoff Geoff 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 …

    ... any better than a simple PRINT instuction?[/quote]

    The ... rooms in your map. As string matrices in ZX BASIC cannot ... will be defined by the string using control codes, color codes ... this:

    [code]CLS: PRINT m$(i)[/code]

    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 …

    ... lines:
    [code]
    1 PRINT AT 1,1;1;OVER ... 1,1;1
    2 PRINT AT 2,2;1;OVER ... br />
    A DATA ... READ ... PRINT loop is always going to ... 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
  • 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 …

    ... QUOTE=mcleod_ideafix;602006][code]CLS: PRINT m$(i)[/code][/QUOTE]
    PRINT...NEXT approach and although ... I use to create the string:

    [code ... : CLS
    280 PRINT c$
    290 PAUSE ... 0: CLS : PRINT LEN c$
    300 DIM ...
    Paddy Coleman Paddy Coleman 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 …

    ... Initially I did the FOR...PRINT...NEXT approach and although it ... I use to create the string:

    [code]100 ... 0: CLS
    280 PRINT c$
    290 PAUSE 0 ... : CLS : PRINT LEN c$
    300 DIM ... LET l$(1)=c$: CLS : PRINT l$(1)
    310 SAVE ...
    SKR SKR 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 …

    ... I used an array to print the map, the...errr "non ... the ink, paper combo of print statement?[/QUOTE]

    Unless ... colour control codes to your string, yes.

    Try this ... )+CHR$(4)+"WORLD"
    20 PRINT a$[/code]

    CHR ...
    na_th_an na_th_an 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…

    ... ,0,27,41
    20 PRINT "THIS IS MY SCREEN"; AT ... SUB 60
    40 CLS : PRINT "PRESS A KEY": PAUSE 0 ... the name of the DEF string?
    14,
    0,
    Paddy Coleman Paddy Coleman 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…

    ... ]

    Setting a larger string in a smaller will lead ... smaller string set
    DIM A$(4): LET A$="HELLO" : PRINT A ...
    Dr BEEP Dr BEEP 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…

    ... long as you don't PRINT on top of it or ... copy to a DEFADD destination string in free RAM which I ... above the VARS area then string functions such as FN s ... so that the free RAM string is [b]not[/b] ... treated as a simple string, otherwise a new location will ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
<1…11121314151617…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