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…15161718192021…34>
  • Need a pointer to using the spectrum calculator from MCHi all, Can anyone point me to a good resource on using the spectrum calculator stack from machine code? I need to work out the number of seconds f…

    [QUOTE=zx128k;333340]MACHINE CODE CALCULATOR
    by Toni Baker< ... the spectrum calculator (ATTR, POINT, INKEY$, string slicing). And all the ...
    BloodBaz BloodBaz February 2009 Development
  • Couple of questions...Howdy, 1. Is there a decent way to get a random number in BASIC/MC? I've been using LET a=INT(RND*2)+1 but the numbers tend to stay at 1 or 2 most …

    ... a PAUSE statement after an INKEY$ statement, then when a key ... is pressed it passes the INKEY$ (as expected), but also shortcuts ... /> Use the following:

    [code]
    PAUSE 1: PAUSE N ...
    [/code]

    The 1st pause ...
    BloodBaz BloodBaz March 2009 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 …

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

    call ...

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


    [/code]
    Dr BEEP Dr BEEP April 2009 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 …

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

    call ...

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


    [/code][/QUOTE]



    ASH-II ASH-II April 2009 Development
  • Help loading OPUS data block ?Hi folks, A while back I obtained a Daton Software Card Games compilation which will be in the next Vault update: http://www.worldofspectrum.org/inf…

    ... menu selection:

    [code]
    Filename Type Start Length ...
    LOAD *1;"OPUS$"CODE
    LET CO=6:DIM ... NEXT Z
    IF INKEY$ ="Z"OR INKEY$ ="z" THEN IF ... TO 40
    IF INKEY$ ="X"OR INKEY$ ="x" THEN IF ... TO 40
    LET I$=INKEY$ :IF I$>= "1 ...
    Andrew Barker Andrew Barker May 2009 Sinclair Miscellaneous
  • Reading from the 128 Serial PortDon't shout at me if this is a silly question. I have Googled extensively, and searched the forums, but I can't find anything discussing what seems t…

    ... versa, but obviously using INKEY$ in a loop is ... anything useful.
    [CODE]
    10 FORMAT LPRINT ... 80 GO TO 40
    [/CODE]

    What ... If I type [CODE] INPUT #4;a$ [/CODE]the +3 ... same:
    [CODE]:?:??0???????Q ????F#~???Q[/CODE]

    trellis trellis June 2009 Sinclair Basic
  • Reading from the 128 Serial PortDon't shout at me if this is a silly question. I have Googled extensively, and searched the forums, but I can't find anything discussing what seems t…

    ... 23295
    . 20 POKE f, CODE INKEY$#4
    . 30 NEXT f ...
    roko roko June 2009 Sinclair Basic
  • Channels and streams - reading dataThe FAQ here - [url]http://www.worldofspectrum.org/faq/reference/48kreference.htm[/url] - seems to be just a touch inaccurate when it comes to readin…

    ... need to do to get INKEY$# and INPUT # working; however, you ... a CR.

    If INKEY$ really isn't working for ... actually being returned? ie PRINT CODE INKEY$#4. If it's zero ... set (ie no char available), INKEY$ will return zero.
    glancaster glancaster July 2009 Development
  • Problem with loopingHi all, I'm looking for a way to code a loop into my program and then allow the computer to come out of that loop by itself. Is such a thing possibl…

    ... I have to use the "INKEY$" command, but I have no ... 25 and 50:

    [CODE]10 LET A$=" HELLO AND ... $(1)
    25 LET k=CODE INKEY$: IF k0 THEN GOTO 50 ... TO 20
    50 STOP[/CODE]
    jp jp August 2009 Sinclair Basic
  • Problem with loopingHi all, I'm looking for a way to code a loop into my program and then allow the computer to come out of that loop by itself. Is such a thing possibl…

    ... 25 and 50:

    [CODE]10 LET A$=" HELLO AND ... $(1)
    25 LET k=CODE INKEY$: IF k0 THEN GOTO 50 ... TO 20
    50 STOP[/CODE][/QUOTE]

    Yep, that ...
    GreenCard GreenCard August 2009 Sinclair Basic
  • Problem with loopingHi all, I'm looking for a way to code a loop into my program and then allow the computer to come out of that loop by itself. Is such a thing possibl…

    ... />
    When you say "code that could possibly let the ... e.g.

    [code]
    10 PRINT ".";
    20 ... br /> 100 PRINT "Finished"
    [/code]

    Alternative "conditions" ... [*] A keypress (as per example INKEY$ example above)
    [*] A ...
    BloodBaz BloodBaz August 2009 Sinclair Basic
  • z80 program to BASIN?I have a BASIC program with UDG:s loaded in a z80 snapshot file. I would like to edit the program with Basin, but I wonder what must be done before…

    ... like
    [CODE]IF INKEY$="0" THEN GOTO 9999[/CODE]
    to be ...
    Rickard Rickard September 2009 Sinclair Basic
  • How do you start?ok just humour me, ive always wanted to code but never got round to it apart from the real basics ie:- 10 print "hello" 20 print 30 goto 10 i coul…

    ... is exactly why I wrote Code Shed to BASIC for ZX ... it is! Short snippets of code to type-in, explanations of ... what each bit of code does and why, and how ... for instance, BASIC programs use INKEY$ for most programs where single ...
    Arjun Arjun January 2010 Development
  • Print at 128,87? :)The advanced search function didn't help me find the answer to this, and I don't remember seeing anything similar in magazines or books... so please …

    ... my own work...
    [CODE]CLEAR 59999
    load 'prtstrm ... 700 [/CODE][/QUOTE]

    psst, same binary also supports INKEY$ #4 ... be tested
    20 IF INKEY$ #4 = "Q" then Print " ... IF INKEY$ #4 = "P" then Print "P is pressed".
    [/code]
    Arda Arda January 2010 Sinclair Miscellaneous
  • Image to ZX Spec 1.1 Now Freely Available!Image to ZX Spec 1.1 Now Freely Available! [IMG]http://mirror.viperfang.net/silentdevelopments/images/ent-preview1.1.zx.png[/IMG][IMG]http://mirror.…

    ... :OUT 32765,23:LOAD "img"CODE 42240), copy other image to ... 1:OUT 32765,16:IF INKEY$" " THEN GOTO 10
    [QUOTE ...
    LCD LCD March 2010 Announcements
  • J Invalid I/O devide, why ?Just tinkering with the asm code i got this error when executed the C/M: J Invalid I/O devide the liune that caused this is 'Call 15DE' that calls t…

    ... ]Just tinkering with the asm code i got this error when ... doing the equivalent of k$=INKEY$#2 without first doing OPEN ... stream.

    Doing:
    [code]LD A,1
    CALL ... 1601[/code]
    Will open #1 which ...
    Jonathan Harston Jonathan Harston June 2010 Sinclair Basic
  • Seeking alternatives to DATA statementsAnyone know of any memory saving alternatives to storing a list of numbers, other than using DATA statements or poking data into addresses?... Im ti…

    ... omitted with BasIN Paste/Add Code function.

    You can ... , 1 DATA char)

    [code]
    1 REM Mid2ASM (7th ... MININ*L,P-PITCH: IF INKEY$="" THEN GO TO 20
    27 LET n=CODE a$(1)-32
    28 ...
    BloodBaz BloodBaz August 2010 Sinclair Basic
  • 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…

    ... there was something wrong with inkey$ (in the older v14 versions ... working correctly if you put "inkey" into a variable *sometimes*.
    5 LET k$=INKEY$
    10 LET k=CODE k$
    20 ...
    Arda Arda August 2010 Sinclair Basic
  • 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…

    ...

    10 LET k=CODE INKEY$
    20 PRINT AT 1 ...
    ASH-II ASH-II August 2010 Sinclair Basic
  • Seeking alternatives to DATA statementsAnyone know of any memory saving alternatives to storing a list of numbers, other than using DATA statements or poking data into addresses?... Im ti…

    ... (A+F+1)-PITCH: IF INKEY$"" THEN GO TO 8


    FINAL CODE: A=DECIMAL, H=RegularHEX, Z ...
    kgmcneil kgmcneil August 2010 Sinclair Basic
  • New Game: Climbing ManA few years ago I created a solo boardgame that simulated in a way, climbing a rock wall. It was roughly based on the rock climbing sections of the c…

    ... IN instead of INKEY$.

    Example:

    [code]
    10 ... ;a
    30 GOTO 10[/code]

    When you'll ...
    ellvis ellvis August 2010 Announcements
  • SpecOS progressOk, As you can all see, I'm back - and I've been working away on SpecOS for a while now. There's a few videos, which you can see on my blog: [url]h…

    ... implemented:

    RND, INKEY$, PI, CODE, LEN, SIN, COS, TAN, ASN ...
    Dunny Dunny August 2010 Sinclair Miscellaneous
  • 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…

    ... one-line game:

    [CODE]
    1 DIM z(29 ... /> POKE n*a,22-3*(INKEY$="0">x):
    LET ... +2:
    LET c=c+(INKEY$="7")*(c0):
    PRINT AT ... ,1,0,0,14
    [/CODE]

    I must confess ...
    Einar Saukas Einar Saukas September 2010 Development
  • Simultaneous key presses in BASICIs there a way to check for 2 simultaneous key presses in BASIC? I use if inkey$="z" then goto... but that only lets me check for 1 key press at a…

    ... OR.. IRC

    if inkey$="z" OR "x" then goto ... />
    Not really. You that code wouldn't pass the syntax ... enter:

    if inkey$="z" OR inkey$="x" then goto...
    BloodBaz BloodBaz September 2010 Sinclair Basic
  • Looking for cursor routineIt's been a long time since I programmed a little bit in Basic, so I decided to create a simple cursor routine: [url]http://db.tt/SPnSdpx[/url] I k…

    ... ?
    [code]
    10 RANDOMIZE USR
    20 IF INKEY$ "x" THEN ... GO TO 20
    30 RANDOMIZE USR
    [/code ...
    gasman gasman September 2010 Sinclair Miscellaneous
  • 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…

    ... 2008:

    [CODE]
    1 LET n=23620 ... INPUT ':
    LET b=CODE INKEY$-47:
    POKE (b8)*n ... 4*(t(5)=0)
    [/CODE]

    And ... colors:

    [CODE]
    1 LET n=23620 ... /> INPUT ':
    LET k=CODE INKEY$-47:
    POKE (k8 ...
    Einar Saukas Einar Saukas September 2010 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…

    ... /> BORDER p:
    LET b=CODE INKEY$-48:
    POKE (b4)*n ... br /> BEEP 1,9
    [/CODE]

    The implementation above ... position replacing this:

    [CODE]
    POKE (b4)*n,13 ...
    with this:

    [CODE]
    POKE (b*(5-b)
    Einar Saukas Einar Saukas September 2010 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…

    ... /> POKE n+73,7:
    [/CODE]

    with this:

    [CODE]
    PAPER 0:
    [/CODE]

    The ... the final version:

    [CODE]
    1 LET n=23620 ... /> BORDER p:
    LET b=CODE INKEY$-48:
    POKE (b4)*n ...
    Einar Saukas Einar Saukas September 2010 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=Einar Saukas;480658]Even better, replace this:

    [CODE]
    POKE (g=0 OR g>256)*n,12:
    [/CODE]

    with this:

    [CODE]
    POKE (g*(257-g)
    Einar Saukas Einar Saukas September 2010 Development
<1…15161718192021…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