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.029s
<1234567…34>
  • Little BASIC gameTry to make all standard BASIC-errors and tell us how you did it. Not allowed i.e. : PRINT USR 1362 D - Break cont-repeats but ok 10 GO TO 10 RU…

    10 SAVE INKEY$ CODE CODE INKEY$, CODE INKEY$

    might give:
    F Invalid file name, 10:0

    or it might work. Depends on how quick you are pressing ENTER
    Bethan Bethan February 2007 Sinclair Basic
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    Actually you can replace this:

    [CODE]
    ... +26*(NOT v AND INKEY$"")
    [/CODE]

    with this:

    [CODE]
    ... +26*(v=0)*(INKEY$"")
    [/CODE]
    Einar Saukas Einar Saukas August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... /> ... +26*(NOT v AND INKEY$"")
    [/CODE]

    with this:

    [CODE]
    ... +26*(v=0)*(INKEY$"")
    [/CODE][/QUOTE]


    [CODE]
    ....+26*(v=0)*(INKEY$>"")
    [/CODE]

    Digital Prawn Digital Prawn August 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    [QUOTE=Digital Prawn;224819]3) Caps lock must be off.[/QUOTE]

    That's easy to solve. Instead of this:

    [CODE]
    CODE INKEY$
    [/CODE]

    try this:

    [CODE]
    PEEK 23556
    [/CODE]
    Einar Saukas Einar Saukas November 2007 Development
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    ... this case the analysis code would immediately print ... br />
    [CODE]
    CODE INKEY$
    [/CODE]

    try ... this:

    [CODE]
    PEEK 23556
    [/CODE][/QUOTE]
    < ...
    Digital Prawn Digital Prawn November 2007 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    Time to make my contribution:

    Replace
    [code]
    LET k=CODE INKEY$:
    POKE (k
    Dr BEEP Dr BEEP March 2008 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    [QUOTE=Dr BEEP;252036]Time to make my contribution:

    Replace
    [code]
    LET k=CODE INKEY$:
    POKE (k
    Einar Saukas Einar Saukas March 2008 Development
  • Keyboard routinesI'll ask here first - since this must be a long-ago solved problem, and hopefully I can avoid re-inventing the wheel... I need a keyboard routine th…

    ... [/url]

    [B]INKEY$:[/B]

    [url] ...
    Converts keypress to ASCII code. Only allows one keypress, implements ... between keypress and ASCII code generated comes from this ... ]

    Uses the INKEY$ code to do the keyboard scanning ...
    Alcoholics Anonymous Alcoholics Anonymous February 2009 Development
  • Detecting flash mode inversionsIs is possible to detect with certainty when flashing characters change from normal to inverted and vice-versa?

    ... by sight either. These various code fragments "synching to the FLASH ... that I can see.
    [code]
    2 POKE 23618,2 ... ,:
    POKE 23620,6+(INKEY$=""): POKE 23620,3+(4 AND INKEY$="")
    [/code]
    Battle Bunny Battle Bunny November 2014 Development
  • Simple program why doesn't it react to keyboard input?[code] 10 FOR x=16385 TO 22527 20 POKE x,255: POKE (x-1),0 30 IF CODE INKEY$=119 THEN BORDER 0 40 NEXT x [/code] If you press the m key while r…

    The CODE for "m" is 109, not 119. To avoid checking for the wrong code, you could have used either:
    IF CODE INKEY$=CODE "m"
    or
    IF INKEY$="m"
    Battle Bunny Battle Bunny November 2016 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. …

    ...

    [code]100 LET K=CODE INKEY$[/code]

    or


    [code]100 ... LET K=PEEK 23560[/code]

    ... of 1000 iterations the INKEY$ takes 2.7 seconds ...
    Paddy Coleman Paddy Coleman September 2017 Sinclair Basic
  • Line - a one line arcade gameHi, I have published Line, a game written in a single line of BASIC. Thanks to Einar Saukas for additional optimisations, suggestions, and fixes. …

    ... . Try replacing [code]LET k=2-4*(INKEY$="")[/code] with [code]LET k=2 ... -4*(x/2=INT (x/2))[/code ...
    JianYang JianYang August 2019 Brand new software
  • BASIC code challengeWrite a program in BASIC as short as possible that will continue after KEY-RELEASED. The program must be fully relocatable (so it must be programmed …

    ... 0 is replaced by your code to wait for keyreleased.
    0 GOTO INKEY$=""

    but this cannot ...
    Dr BEEP Dr BEEP August 2002 Sinclair Miscellaneous
  • BASin and INKEY$Hi Folks, Recently started using BASin after many years away from the Spectrum. Totally amazing piece of software and fun to use. I have noticed s…

    ... ="Courier New"]10 LET k=CODE INKEY$
    20 PRINT AT ... br />
    Left gives a code of 8 (which is correct ... )
    Right gives a code of 9 (which is also ... correct)
    Down gives a code of 14
    Up ... does not give a code at all

    ...
    Paddy Coleman Paddy Coleman August 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…

    ... real basic code)

    Pause 100
    Print Inkey

    Robin Robin October 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 ...
    hedge hedge January 2011 Development
  • 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…

    ... (don't laugh..lol) get INKEY$ to capture Y or y ... was separating the Y/N code into a subroutine that ... /> Here is the source code...

    [CODE]1 REM BALIC BALIC ... N:"
    35 LET Q$=INKEY$
    36 PAUSE 10< ... N):"
    107 LET Q$=INKEY$
    108 IF Q$=" ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • BIFROST* example: "Knights & Demons DX" source codeA package containing the source files of our multicolor game "Knights & Demons DX" is now available for download [URL="http://www.mediafire.com/?hbch…

    ... />
    [CODE]'Player movement
    350 LET k$=INKEY$ ' read key ... [CODE]'Wait for key before disabling BIFROST*
    600 IF INKEY$"" ... INKEY$="" THEN GO TO 610: END IF
    BIFROSTstop()
    RETURN[/CODE ...
    Einar Saukas Einar Saukas August 2013 Development
  • BASin + INKEY$ + SymbolShiftHow can I get BASin to recognise SymbolShifted keys with INKEY$ while running a program? The Help tells me that Control = SymbolShift, but I've tried…

    ... to recognise SymbolShifted keys with INKEY$ while running a program? ... and pasting the key code from the Windows Character ... Here's the bit of code. The character in "" in ... -523 is the token code for the symbol; 201 ... t work either.
    [code]
    500 LET zgo= ...
    Battle Bunny Battle Bunny July 2014 Sinclair Basic
  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding. I think that there might be more of these routines out there (where-ever-u-r). Isn…

    ... to collect these pieces of code somewhere ??

    I made ... emulator and to decide which code had to be emulated I ... /> MAIN...LD A,(DE) ; fetch code to be emulated (7)
    Decision made from fetch code to start emulating : 36 T ...
    Dr BEEP Dr BEEP October 2001 Sinclair Miscellaneous
  • Assembler code from tutorial, problem!I was wondering if anyone could help me decipher this z80 assembler code? ORG 60000 LOAD 60000 EA60 21BCEA LD …

    ... me decipher this z80 assembler code?

    ORG 60000
    code, but I am having trouble ...
    Duxbuz Duxbuz August 2001 Sinclair Miscellaneous
  • machine code basicsWondered if anyone can help me out. I have been playing round with some disassemblers (Zeus). And Machine code loaders. All I want to do is print my…

    ... some disassemblers (Zeus). And Machine code loaders.

    All I ...
    Duxbuz Duxbuz August 2001 Sinclair Miscellaneous
  • Best way to codeHi, I've been using Zeus Assembler to code MC programs so far. Nothing fancy just the odd scroll left or animation stuff. Wot I'd like to know is, …

    ... been using Zeus Assembler to code MC programs so far. Nothing ... , is a compiler better to code? If so which is the ... is the best one to code for a beginner? Can I ...
    Arjun Arjun August 2001 Sinclair Miscellaneous
  • Machine code loaderI was wondering how people wrote games. On the trail to this knowledge I discovered a machine code loader in basic, and also z80 assemblers. Which i…

    ... knowledge I discovered a machine code loader in basic, and also ...
    Duxbuz Duxbuz August 2001 Sinclair Miscellaneous
  • Loading with CODEHi all! I last played speccy games back in '91. that's when it died IMHO. It's good to see people are keeping the dream alive with emulators and util…

    ... be loaded with :
    LOAD "" CODE
    where was a number ...
    ember ember March 2002 Games
  • Saving machine code on EmulatorI have been dabbling with Chapter 26 of Stephen Vicker's "ZX Spectrum Manual". [url="http://www.madhippy.com/8-bit/sinclair/zxspecman/zxmanchap26.htm…

    ... explains how to input machine code and then finally tells you ... program that then loads the code to run. However, I cannot ...
    ember ember March 2002 Emulators
  • Machine CodeOk i had a spectrum when i was younger and only used it for playin games and typing simple BASIC programs - i mean really simple! Things like 10 Pri…

    ... to do something in machine code. I've seen a lot ... the loaders and seein the code was all blocked out or ... info, especially about the Machine code
    Alex
    alexsut alexsut July 2002 Sinclair Miscellaneous
  • Speccy machine code info where is it?Recently I've been trying to learn Z80 and I've managed to make limited progress (some of my routines even compile now!) but I seem to be having trou…

    ... dark art of speccy machine code is obscure and mysterious, thats ...
    Sharopolis Sharopolis June 2003 Sinclair Miscellaneous
<1234567…34>

Latest Posts

  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Minor British Sports that did become games on the ZX Spectrum
    dmsmith on April 8
  • Frankie's ZX Spectrum Digouts
    Zup on April 8
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8
  • 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

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