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.030s
<1…45678910…34>
  • Change PAPER and BORDER colours from machine codeHow do you go about changing PAPER and BORDER colours from machine code? I've forgotten the system variables for border and paper.

    ... how ROM printing routine (RST 16 or RST $10) works, due to the ...
    TK90XFan TK90XFan July 2014 Development
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    Here's the first thing which occurs to me:
    [code]
    10 INPUT A: LET s$="": LET n=A
    20 LET d1=n/2: LET d2=INT d1
    30 LET s$=CHR$ (48+(d1d2))+s$
    35 IF d2 THEN LET n=d2: GO TO 20
    40 PRINT A;"=";s$: GO TO 10
    [/code]
    Battle Bunny Battle Bunny August 2014 Sinclair Basic
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    ... Brute force method:
    [code]10 INPUT "Number? (0-255): ";n ... 1101","1110","1111"
    20 INPUT "Number? (0-255): "; ... AND n=15)
    20 INPUT "Number? (0-255): "; ... 10 DEF FN b$()=STR$(INT (RND*2))
    20 INPUT ... d>=2)))
    20 INPUT "Number? (0-255): ...
    mcleod_ideafix mcleod_ideafix August 2014 Sinclair Basic
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    Similar to Battle Bunny:

    [CODE]
    10 INPUT A: LET s$= "": PRINT A; "=";
    20 LET s$= STR$(A-2*INT(A/2)) + s$
    30 LET A= INT(A/2): IF A THEN GO TO 20
    40 PRINT s$: GO TO 10
    [/CODE]
    antoniovillena antoniovillena August 2014 Sinclair Basic
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    ... bit)

    [code]
    10 INPUT A: LET s$= "": LET N ... PRINT "Incorrect number": GO TO 10
    30 LET s$= s ... /> 60 PRINT s$: GO TO 10
    [/code]

    And ... line

    [code]
    10 INPUT A: LET S= 0: LET ...
    antoniovillena antoniovillena August 2014 Sinclair Basic
  • Simple text scrolling routine...I'm having trouble writing a very simple text scroller, the idea is to use the ROM printer routine to print 32 characters each time the routine is ca…

    ... /> Loop: ld a,(de)
    rst $10 ;print next character
    inc ...
    Battle Bunny Battle Bunny September 2014 Development
  • RANDOMIZE - still not sure what it does...Whenever I wish a random number I use RND like: 10 LET a=RND*100 20 PRINT a 30 GO TO 0 and "a" will truly be random. But if is do the following: …

    ... use this code:
    [CODE]10 INPUT n;
    20 RANDOMIZE n ... /> 30 FOR x=1 to 10: PRINT RND*1000: NEXT x ... this code:

    [CODE]10 POKE 23672,0: POKE 23672 ...
    Zup Zup January 2015 Sinclair Basic
  • SPIN AssemberHi, I'm in the early stages of learning assembler, and am now looking at some tutorials from Toni Baker in ZX Computing: [url]http://wos.meulie.net…

    You should prefix the restart as being hex, either

    [CODE]rst 0x10[/CODE]

    or

    [CODE]rst $10[/CODE]

    will work
    jp jp March 2015 Development
  • SPIN AssemberHi, I'm in the early stages of learning assembler, and am now looking at some tutorials from Toni Baker in ZX Computing: [url]http://wos.meulie.net…

    Thanks very much.

    That fixed one of the problems, but I still have invalid use of opcode and operands.

    [code]org 60000
    ld (tvflag),00
    LOOP:
    ld A,"*"
    rst $10
    jr LOOP[/code]
    jonesypeter jonesypeter March 2015 Development
  • SPIN AssemberHi, I'm in the early stages of learning assembler, and am now looking at some tutorials from Toni Baker in ZX Computing: [url]http://wos.meulie.net…

    Thanks both of you. Sadly it still errors:

    TVFLAG equ $5C3C

    org 60000

    ld (TVFLAG),00
    LOOP:
    ld A,"*"
    rst $10
    jr LOOP
    jonesypeter jonesypeter March 2015 Development
  • SPIN AssemberHi, I'm in the early stages of learning assembler, and am now looking at some tutorials from Toni Baker in ZX Computing: [url]http://wos.meulie.net…

    ... /> LOOP:
    ld A,"*"
    rst $10
    jr LOOP[/QUOTE]
    RST 10h I've always done ...
    R-Tape R-Tape March 2015 Development
  • SPIN AssemberHi, I'm in the early stages of learning assembler, and am now looking at some tutorials from Toni Baker in ZX Computing: [url]http://wos.meulie.net…

    ... /> LOOP:
    ld A,"*"
    rst $10
    jr LOOP
    [/CODE ...
    jonesypeter jonesypeter March 2015 Development
  • SPIN AssemberHi, I'm in the early stages of learning assembler, and am now looking at some tutorials from Toni Baker in ZX Computing: [url]http://wos.meulie.net…

    ... /> LOOP:
    ld A,"*"
    rst $10
    jr LOOP
    [/CODE ...
    AndyC AndyC March 2015 Development
  • Rom routine for pixel addressDear all, Having my bi-annual 'lets try machine code' project again and have come up with a problem with the pixel address rom routine at 8874. …

    You don't need the RST $10.
    HL contains the screen ... .
    As you state, The RST $10 is probably not overwriting the ...
    dbolli dbolli September 2015 Development
  • Machine Code for Beginners - error?Dear all, I've picked rather old book called Machine Code for Beginners by Usborne.1983 There's an example inside which claims to print a messa…

    Missing a RST #10 as well as preserving HL & DE. After LD A,(DE) Should be...
    [code]
    PUSH DE
    PUSH HL
    RST 10H
    POP HL
    POP DE
    [/code]
    rich_chandler rich_chandler February 2016 Development
  • Machine Code for Beginners - error?Dear all, I've picked rather old book called Machine Code for Beginners by Usborne.1983 There's an example inside which claims to print a messa…

    [quote="karingal;848699"]Missing a RST #10 as well as preserving HL & ... DE
    PUSH HL
    RST 10H
    POP HL
    rich_chandler rich_chandler February 2016 Development
  • Machine Code for Beginners - error?Dear all, I've picked rather old book called Machine Code for Beginners by Usborne.1983 There's an example inside which claims to print a messa…

    [quote="karingal;848699"]Missing a RST #10 as well as preserving HL & ... DE
    PUSH HL
    RST 10H
    POP HL
    [/quote]

    IIRC, [b]RST $10[/b] already preserves HL, DE ...
    Einar Saukas Einar Saukas February 2016 Development
  • Character Based SpritesHi, I'm working through Jonathan's excellent guide to writing games, and have mastered the animation of single UDGs. Before or move onto Pixel…

    ... were single characters printed via RST $10 (as jonathan's guide uses ... PRINT AT handling for the RST $10 calls dealt with printing each ... to the use of the RST $10 call, ie we set the ...
    mister_wavey mister_wavey July 2016 Development
  • CAPS-SHIFT KeyCodeIs there a standard Keycode for CAPS-SHIFT Key ? Looking at the ROM documentation in the Main key table KEYTABLE_A, there is no Entry for CAPS_SHI…

    ... key for RIGHT
    pr_l rst $10 ;print[/code]
    Ast_A_Moore Ast_A_Moore October 2016 Development
  • ZX Spin and a question or two......Not really used Spin before since Spectaculator covers everything I need - except now I have need of an easy to use assembler. Downloaded several, n…

    ... assembler I tried assembled the RST 10 instruction as RET (C9), so ...
    DEATH DEATH November 2016 Emulators
  • 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…

    ... into A, and calling the RST $10 restart point.
    I.E ... ]
    LD A, charcode
    RST $10
    [/code]
    To be ...
    The_Bert The_Bert 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…

    ... :
    LD A,(HL)
    RST $10
    BIT 7,(HL)
    RET Z

    RST $10
    INC HL
    JR ...
    The_Bert The_Bert November 2016 Sinclair Basic
  • ROM PRINT routine issuesHi all, I am using the ROM print routines a lot in my assembly program and I'm experiencing issues. I am changing the system variable DF CC to po…

    ...
    Ld a,(hl)
    Rst #10
    Inc hl
    Jr ... />
    Text:
    Defb 22,10,10,18,1,16,4,17 ...
    Dr BEEP Dr BEEP December 2016 Development
  • ROM PRINT routine issuesHi all, I am using the ROM print routines a lot in my assembly program and I'm experiencing issues. I am changing the system variable DF CC to po…

    ...
    Ret z
    Rst #10
    Inc hl
    ... br /> Text:
    Defb 22,10,10,18,1,16,4,17 ... ,(hl)
    Loop:
    Rst #10
    Inc hl
    ... br /> ...
    Loop:
    Rst #10
    Inc hl
    Start ...
    Einar Saukas Einar Saukas December 2016 Development
  • Anagram creation - not as easy as it looks?I'm writing a story and I have a mystery villain who is never revealed. My main clue was to have been that every alias he uses is an anagram of the f…

    ... *PEEK (a+1)
    5 INPUT "Names list exact size ";size ... size=FN p(23670)
    10 INPUT "Load binary size ";(size);" at ... $
    20 POKE 23658,8: INPUT "Name ";n$: IF NOT LEN ...
    Battle Bunny Battle Bunny January 2017 BASIC
  • 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…

    Ok I did it this works :)

    [code]
    10 INPUT a$
    20 LET b=LEN a$
    30 LET s=0
    40 FOR i to b
    50 LET s=s+ VAL a$(i)
    60 NEXT i
    70 PRINT s
    [/code]
    Of course your number is only one digit
    ivanb303 ivanb303 February 2017 BASIC
  • 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…

    ... works :)

    [code]
    10 INPUT a$
    20 LET b ...
    Richey Richey February 2017 BASIC
  • Short program10 PRINT "You know what? I just cannot be bothered any more!" 20 GOTO 10

    [code]10 INPUT "Would you like to see a 'Variable not found' error report? (y/n) ";a[/code]
    crunchy_frog crunchy_frog February 2017 Sinclair Basic
  • z80 Helper?When you are programming with z80 do you get 'lost' you are in the middle of making a routine and you can't remember which registers are holding val…

    ...
    jr z,Exit4
    rst $10
    inc bc
    inc ...
    jr z,Exit7
    rst $10
    inc bc
    inc ...
    slenkar slenkar April 2017 Development
  • I live and learnThanks to Einar's ZXDB link I found under the Books folder and English sub directory a PDF file named 'The Century Computer Programming Course for Z…

    A bit simple:

    10 INPUT a,b,c,d,e
    20 LET s=a+b+c+d+e
    30 PRINT "Sum is: ";s;" and the average is: ";s/5

    Line 10 works in ZX Spectrum Basic, I don't know if it works in other Basic dialect.
    IvanBasic IvanBasic June 2017 BASIC
<1…45678910…34>

Latest Posts

  • Frankie's ZX Spectrum Digouts
    Zup on 1:58PM
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on 1:02PM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 12:42AM
  • 1992 Spectrum Software
    harriusherbartio on April 7
  • Celebrity deaths...
    mel the bell on April 7
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 7
  • spectrum in netflix bomb and the cold war documentary
    zxbruno on April 7
  • Are there any decent Speccy Flight Sims?
    harriusherbartio on April 7
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 6
  • Tradtional games that were not programmed on the ZX Spectrum
    harriusherbartio on April 6

HitBox

Word Docs Hits
rst 1.2K 2.5K
10 35.6K 49.6K
input 7.1K 10.4K

Related Threads

  • A 10/10 from EdgeSorry to be totally un-Speccy related but a 10/10 in Edge magazine is a bit spesh!! (and I know a few of you are looking foward to playing this game)…
  • Were any speccy games ever given 10/10 or 100% in reviews?Just having a look at the review for Head Over Heals and Crash gave it 97%, and quite rightly so!!<br /> <br /> GTA San Andreas on the PS2 has had se…
  • 10/10/84I'm not that sure how I remember the date (although with it being 10/10 its easy)<br /> <br /> Anyway it was that date I brought my first Speccy, (ob…
  • SpecEmu version 2.8 build 10/10/09What's new in this build? ;-)
  • INPUT LINE and STOP in INPUTWhat was the reason for the ROM Editor routine causing "down arrow" while in an INPUT LINE to cause the "H STOP in INPUT" error report? Why doesn't i…
  • Input Binders only 99p with < 10 minutes left. Please Bid!Input Mags<br /> <br /> [url]http://www.ebay.co.uk/itm/330906999733?ssPageName=STRK:MESELX:IT&amp;_trksid=p3984.m1555.l2649[/url]
  • Win 10 or not to Win 10, that is the question.So Win 10 is going to be free.
  • INPUT ArchiveHowdy folks.<br /> <br /> I'd really appreciate some help in this. I'm planning on creating an online archive of the old coding mag INPUT (having rec…
  • INPUT magazineHowdy folks!<br /> <br /> Does anyone know of an online archive of this early programming mag? I'd like to get my hands on the issue which had a rand…
  • MIS Update 09/10/2001Hi folks,<br /> <br /> It's that time again, this time you've only had to wait 1 month instead<br /> of 2 for an update.<br /> A whopping 74 titles h…

Related Searches

  • audio input mod
  • gigascreen input folder
  • image zx spec input folder
  • input folder
  • input output gigascreen
  • input output scrreen
  • input output screen
  • spectrum 2a ear input
  • dixon s 10 pack
  • tzx windows 10
  • input
  • input number
  • validate input is a number
  • validate input is numeric
  • validate input is number
  • if input is not a number
  • dim input
  • rst 10
  • rst 10 channel 1
  • rst 10 lower lines

Copyright © 2024 World of Spectrum