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.018s
<1…16171819202122…34>
  • Inkey problem||This is on a REAL speccy|| Hi everyone I have a function where the user presses a key and then it shows it on the screen. So this is what I do (no…

    ... key is pressed, then INKEY$ will give a code of zero, which ... what is happening, replace PRINT INKEY$ with PRINT CODE INKEY$

    Nx
    RST#08 RST#08 October 2010 Sinclair Basic
  • Inkey problem||This is on a REAL speccy|| Hi everyone I have a function where the user presses a key and then it shows it on the screen. So this is what I do (no…

    ... it reaches the call to INKEY$. The way around that is ... go:

    [code]
    10 LET a$=INKEY$
    20 IF ...
    30 PRINT a$
    [/code]
    gasman gasman October 2010 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... a few improvements.

    [Code]100 REM *---------------------*
    110 REM ... 2:
    LET I(6)=CODE INKEY$:
    IF I(6)=0 ...
    Paddy Coleman Paddy Coleman October 2010 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... following based on your proposal. Code works but has not been ... />
    Small change:

    [code]
    100 CLEAR 65446: BORDER ... NEXT f
    151 IF INKEY$="" THEN GO TO 120
    CODE "0"*8): LET NUMS=64000 ...
    Dr BEEP Dr BEEP October 2010 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 …

    ... />
    Some simple examples:
    [code]
    CLS

    call ...

    10 LET A=CODE INKEY$: IF A = 0 THEN GO ... key pressed


    [/code][/QUOTE]

    Now you ...
    Paddy Coleman Paddy Coleman November 2010 Development
  • 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 …

    ... could change the BASIC code to:

    [CODE]100 PRINT "[B ... ..."
    110 IF INKEY$="" THEN GO TO 110[/CODE]

    I ...
    Paddy Coleman Paddy Coleman November 2010 Development
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... .[/QUOTE]

    Changed the code to the following:

    [CODE]210 LET y=0
    ... 0
    290 LET k=CODE INKEY$
    300 IF k10 AND ... TO 230
    320 STOP [/CODE]

    N.B. I ...
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... improved as follows:

    [CODE]
    190 LET y=0 ... PAUSE 0:
    LET k=CODE INKEY$:
    LET z=y+(2 ... THEN GO TO 210
    [/CODE]

    A similar method ...
    Einar Saukas Einar Saukas November 2010 Sinclair Basic
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... clarification. OK, tried your code and I made one ...
    290 LET k=CODE INKEY$
    300 IF k10 ... TO 280
    340 STOP[/CODE]

    With ... line 300 the code just feels more sprightly when ... is because the remaining code is only executed once ...
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • Manipulating attributes...Hi Folks, I have written a routine that allows a blue bar to be scrolled up and down a list to select an item. Each item in the list occupies two l…

    ... to single lines...

    [CODE]200 LET b(1)=0 ... 0:
    LET b(4)=CODE INKEY$:
    IF b(4)10 ... TO 220
    250 STOP [/CODE]

    Paddy
    Paddy Coleman Paddy Coleman November 2010 Sinclair Basic
  • How to code a run and jumpHi all, Is there a way in basic to take action on two simultaneous key strokes. I want to add a run and jump i.e. keys Q and M but using inkey$ seem…

    ... Q and M but using inkey$ seems to limit me to ... am not ready for machine code yet so would like to ...
    Dr BEEP Dr BEEP January 2011 Development
  • Spanner seeks helpHello, and HNY, all. I am presently writing a game in BASIC. It's a bit - a lot - crap, but I'm enjoying it! Anyway, a couple of questions, if you …

    ... your own input routine using INKEY$ rather than relying on the ... (converting your program to machine code to give it a good ...
    gasman gasman January 2011 Sinclair Basic
  • Spanner seeks helpHello, and HNY, all. I am presently writing a game in BASIC. It's a bit - a lot - crap, but I'm enjoying it! Anyway, a couple of questions, if you …

    ... your own input routine using INKEY$ rather than relying on the ... (converting your program to machine code to give it a good ...
    Paddy Coleman Paddy Coleman January 2011 Sinclair Basic
  • Recent talk of developing new SpectrumsHi all, I can see from a few threads on here that some Wossers like Vasil and Aien 8 are interested in developing more powerful Spectrums or improvi…

    ... it's got INPUT# or INKEY$# and behave accordingly. See the ... also see the Spectranet source code for the streams module.

    [code]
    10 %open #4;"somefile ... br /> 100 %close #4
    [/code]

    Effectively, what the ...
    Winston Winston February 2011 Hardware
  • Compiling Basic to MCHello, I have a lot of long Basic programs. These are mostly strategy programs, good but slow. I was thinking about how to speed them up without com…

    ... compile BASIC programs into machine code. It has a few cavets ... it won't comile INKEY$ commands into machine code instructions for example ...
    Hercules Hercules February 2011 Development
  • Compiling Basic to MCHello, I have a lot of long Basic programs. These are mostly strategy programs, good but slow. I was thinking about how to speed them up without com…

    ... /ZX_BASIC:Lines.bas[/url]
    [code]
    5 REM From the ... IF INKEY$ = "" THEN GOTO 40: [b]END IF[/b]
    [/code]
    code (with USR) to do the ...
    boriel boriel February 2011 Development
  • I cant get this listing to run!Ive read this through so many times my eyes are misting up! [url]ftp://ftp.worldofspectrum.org/pub/sinclair/magazines/DUC/Issue08/Pages/DUC0800039.jp…

    ... CODE INKEY$#4+(256*CODE INKEY$#4)
    50 POINT #4;CODE INKEY$#4+(256*CODE INKEY ... $#4)
    60 PRINT CODE INKEY$#4 ... 100 LET TabDrv1=CODE INKEY$#4+(256*CODE INKEY$#4)
    110 ...
    120 PRINT CODE INKEY$#4;" There must be ...
    roko roko April 2011 Sinclair Basic
  • Load! Screen$ questionI've got a basic program listing in BASIN which among other things recalls a screen via Load! (I've Save!'ed a screen into memory before hand). How d…

    ... can be restored with LOAD "" CODE. The program will then continue ... RAMdisk files intact.

    [code]
    10 LIST : GO SUB ... chans,111:
    SAVE "screenprog"CODE 16384,ramtop-16384: GO TO ... br /> RETURN
    30 IF INKEY$"j" THEN GO TO 30 ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • multiple songs with savage enginesorry friends, another thread with my stupid questions. maybe wos should introduce a noob section for people like me? :oops: anyway, how does using …

    ... a TAB.
    [code]
    module[/code]
    And at the ... add this.
    [code]
    endmodule[/code]
    Then when you ... tritone=49152
    10 IF INKEY$="" THEN GOTO 10
    ... 20 IF INKEY$="1" THEN LET a=9 ...
    30 IF INKEY$="2" THEN LET a=11 ...
    FrankT FrankT May 2011 Development
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... is a bad idea. The code above can only choose 256 ... /> [CODE]10 PRINT "Press any key to start"
    20 IF INKEY ... =PEEK 23672
    40 IF INKEY$"" THEN GO TO 40
    60 LET i$=INKEY$: IF i$"5" THEN GO ...
    140 NEXT a
    [/CODE]
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... /> [CODE]10 PRINT "Press any key to start"
    20 IF INKEY ... /> 30 RANDOMIZE
    40 IF INKEY$"" THEN GO TO 40
    60 LET i$=INKEY$: IF i$"5" THEN GO ... b
    140 NEXT a[/CODE]

    It works even ...
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • Why doesn't my routine work?I have a "level" defined by 504 bytes (28 squares across x 18 squares down) I'm trying to write a routine that will take an X,Y coordinate in pixels…

    ... typewriter in MC:

    [code]
    next call wait4key
    [/code]

    the BASIC ... equivalent for this:
    [code]
    10 GO SUB 1000 ... INKEY$ : IF A$="" THEN GO TO 1000
    1010 RETURN
    [/code ...
    Dr BEEP Dr BEEP June 2011 Development
  • Streams - File HandlingHello there my fellow WoS'ers I am attempting to write a Z80 / Snapshot Launching program that is based on a category of files # - Z whereby each f…

    ... might be more reliable.
    [code]
    10 OPEN #4,"test ... #5; INKEY$ #4: NEXT a
    60 PRINT f$
    [/code]
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • Streams - File HandlingHello there my fellow WoS'ers I am attempting to write a Z80 / Snapshot Launching program that is based on a category of files # - Z whereby each f…

    ... size
    160 PRINT #5; INKEY$ #4
    170 NEXT a ... Saved Complete":
    STOP
    [/code]

    [B]I keep ... the error[/B]

    [code]
    C Nonsense in BASIC ... ]

    [code]
    160 PRINT #5; INKEY$ #4
    [/code]

    Zetr0 Zetr0 August 2011 Sinclair Basic
  • Streams - File HandlingHello there my fellow WoS'ers I am attempting to write a Z80 / Snapshot Launching program that is based on a category of files # - Z whereby each f…

    ... both Spin and Fuse.
    [code]
    30 DIM f$(128 ... : PRINT #5; INKEY$ #4;: NEXT a
    60 PRINT f$
    [/code]
    Battle Bunny Battle Bunny August 2011 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... the collision detection code and re-drawing code.
    [code]IF INKEY$ = "w" THEN ... = y-1: GO SUB 500[/code]
    Dock Dock September 2011 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... the collision detection code and re-drawing code.
    [code]IF INKEY$ = "w ... y-1: GO SUB 500[/code][/QUOTE]

    ... :

    [code]IF INKEY$="w" THEN LET x2=x ... " "; AT y2,x2;"o"[/code]

    If you ... look at the source code of my BASIC games ...
    Einar Saukas Einar Saukas September 2011 Sinclair Basic
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... like this:

    [code]IF INKEY$="w" THEN LET x2=x ... ,x; " "; AT y2,x2;"o"[/code]

    If you need ... a look at the source code of my BASIC games such ...
    Dock Dock September 2011 Sinclair Basic
<1…16171819202122…34>

Latest Posts

  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 9:55PM
  • Goodbye Z80
    moggy on 9:07PM
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
inkey 833 1.8K
code 41.6K 91.2K

Related Threads

  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it<br /> <br /> Note, for 48k spectrum using TASM<br /> <br /…
  • Saving BASIC code as CODE... can't start programHi guys!<br /> <br /> I'm trying to create an adventure game for the Speccy in BASIC, called The Legend Of The Red Dragon.<br /> <br /> I'm using the…
  • Converting Basic code into machine codeIm just interested to know if I can converter a game I've written in basic into Machine code, Is their a program that can do this??
  • LOAD "" CODE in machine code/store 128 bank dataHow do you LOAD "" CODE from machine code?<br /> <br /> I have written the following MC routine that fits into a REM statement in a basic program.<br…
  • Code Masters' adventures: where are they?Please help to find Dizzy and Seymour sequels. Why their distribution is denied ?
  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding.<br /> <br /> I think that there might be more of these routines out there (where-eve…
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code?<br /> <br /> ORG 60000<br /> LOAD 60000<br /> <br …
  • machine code basicsWondered if anyone can help me out. I have been playing round with some disassemblers (Zeus). And Machine code loaders.<br /> <br /> All I want to do…
  • Best way to codeHi,<br /> <br /> I've been using Zeus Assembler to code MC programs so far. Nothing fancy just the odd scroll left or animation stuff.<br /> <br /> W…

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • code 16384
  • mastering machine code on your zx spectrum by toni baker
  • mastering machine code on your zx spectrum by toni baker disassembler
  • mastering machine code on your zx spectrum by toni baker pdf
  • identify code 128k pentagon model
  • check code 128k pentagon model
  • load code hide name
  • load code hide name on screen
  • disintegrate code
  • machine code routines
  • zx spectrum games code club
  • random number code
  • ultimate games 3 machine code
  • basic save code
  • basic save code autorun

Copyright © 2024 World of Spectrum