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…17181920212223…34>
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... the technique for incorporating m/code into a BASIC program could ... the length of the m/code is ML then the space ... into a$ by a small INKEY$ function combined with FN h ... thought.

    The m/code string would need to be ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • checking bits in BASICThe question of manipulating bit patterns in BASIC was raised recently in this [thread=35728]Keys redefine routine and key check[/thread] thread. I s…

    ... a$-1: DEF FN c()=INKEY$=CHR$ 13

    9991 ... STEP 0
    9992 PAUSE (INKEY$""):
    IF NOT FN c ... () THEN
    LET a$=a$+INKEY$: LET a=NOT a:
    PRINT CODE a$(LEN a$)
    9993 PAUSE (INKEY$="" OR FN ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • Othello/Reversi Validate and Make MovesI'm working an Othello/Reversi game The board is represented as a 2d array 8*8 ie: 00000000 00000000 00000000 00012000 00021000 00000000 00000000 000…

    ... ,2
    204 IF INKEY$="q" THEN INK 7: ... -1
    205 IF INKEY$="a" THEN INK 7: ... +1
    206 IF INKEY$="o" THEN INK 7: ... -1
    207 IF INKEY$="p" THEN INK 7: ... )+20,2
    213 IF INKEY$=" " THEN RETURN
    299 ... with 200 to 299 the code to move with qaop and ...
    fortyeightkay fortyeightkay September 2011 Development
  • 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…

    ... .. or 1-4.

    [code]
    1 PAPER 0: BORDER ... ,0;" "
    560 LET x$=INKEY$
    561 REM PRINT AT ... CLS : PRINT d$: STOP
    [/code]
    fog fog October 2011 Sinclair Basic
  • 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…

    On any Spectrum, INKEY$ will return code 13 for ENTER, and codes ... /55) at present for direction. INKEY$ could still be used to ... can be handled with INKEY$, as can extended mode (returns code 14).
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • 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…

    ... cycle thru the options (using inkey).. obv. if I want to ... " or can I use say INKEY CHR ?[/QUOTE]

    Hi ... up using the following code:

    [CODE]220 POKE 23560,0 ...
    Paddy Coleman Paddy Coleman October 2011 Sinclair Basic
  • 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…

    ... ;569519]
    I hope the code above is self explanatory but ... the direct way of doing "inkey" ?

    I think it ...
    fog fog October 2011 Sinclair Basic
  • 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…

    ... the direct way of doing "inkey" ?
    I think it's ... example will demonstrate how the code works. Simply copy and paste ... one page menu).

    [Code]100 BORDER 0: PAPER 0 ...
    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…

    ... be save!d simply as CODE segments; it's just ... using the RAMdisk.
    [code]
    20 DIM s(8 ...
    40 SAVE !"t" CODE 16384,2048:
    FOR a ... 'j'"
    51 IF INKEY$"j" THEN PAUSE 0: GO ... /> 60 PAUSE 0
    [/code]
    However, if saving & ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • BASIC menus for PlusD discsIs it possible to use BASIC to code custom autoloader menus for PlusD discs? For instance, I can make a disc copy of Dizzy Collection and could make…

    ... this as well

    [code]5 BORDER 0 : PAPER 0 ... /> 50 PRINT""
    60 IF inkey$="1" then LOAD "P1"
    inkey$="2" then LOAD "P2"
    100 GOTO 60[/code]
    morcar morcar October 2011 Sinclair Basic
  • BASIC menus for PlusD discsIs it possible to use BASIC to code custom autoloader menus for PlusD discs? For instance, I can make a disc copy of Dizzy Collection and could make…

    ... this as well

    [code]5 BORDER 0 : PAPER 0 ... /> 50 PRINT""
    60 IF inkey$="1" then LOAD "P1"
    inkey$="2" then LOAD "P2"
    100 GOTO 60[/code]
    Rebelstar without a cause Rebelstar without a cause October 2011 Sinclair Basic
  • BASIC menus for PlusD discsIs it possible to use BASIC to code custom autoloader menus for PlusD discs? For instance, I can make a disc copy of Dizzy Collection and could make…

    ... this as well

    [code]5 BORDER 0 : PAPER 0 ... /> 50 PRINT""
    60 IF inkey$="1" then LOAD "P1"
    inkey$="2" then LOAD "P2"
    100 GOTO 60[/code]With ...
    zeropolis79 zeropolis79 October 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 …

    ... ascending order):
    [code]
    RND, INKEY$, PI - no spaces either ... space both sides
    [/code]
    Always qualified by the ... it was before.
    [code]
    ;PRINT USR stack ... ;RND,INKEY$,PI
    defb $c7,$c8,$c9 ;=,
    [/code]
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Noob needs helpSorry gents but decided to have a play with basic...see if I could knock up a shonky as hell space invader type game I seem to have gotten myself co…

    ... perhaps? Who knows... post some code if you need help! ;)[/QUOTE ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... I missing something?

    [CODE]10 PAUSE 0
    20 ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • A new multicolor engine called BIFROST*I'm glad to announce the release of a new multicolor engine implemented by yours truly, including high quality 16x16 tiles designed by R-Tape: [IMG]…

    ... EXIT"
    240 LET a$=INKEY$
    250 IF a$="2 ... without complains but generates incorrect code, POKEing at wrong memory ... execute everything:

    [CODE]10 CLEAR 32767
    20 ... 30 LOAD "TILES"CODE
    40 LOAD "BIFROST*"CODE
    50 RANDOMIZE ...
    Einar Saukas Einar Saukas March 2012 Brand new software
  • A new multicolor engine called BIFROST*I'm glad to announce the release of a new multicolor engine implemented by yours truly, including high quality 16x16 tiles designed by R-Tape: [IMG]…

    ... them worked either:

    [CODE] 230 PRINT AT 22,1 ... EXIT"
    240 LET a$=INKEY$
    250 IF a$="2 ... PRINT AT 22,1,,: RETURN[/CODE][/LIST][/QUOTE]

    Ops ... is the actual reason this code above didn't work.
    Einar Saukas Einar Saukas March 2012 Brand new software
  • A new multicolor engine called BIFROST*I'm glad to announce the release of a new multicolor engine implemented by yours truly, including high quality 16x16 tiles designed by R-Tape: [IMG]…

    ... library file[/URL]:
    [CODE]
    ' ----------------------------------------------------------------
    ... LOAD ""CODE
    ' LOAD "TILES"CODE
    ' LOAD "BIFROST*"CODE
    INKEY$="" THEN GO TO ... /> 240 LET a$=INKEY$
    250 IF ...
    Einar Saukas Einar Saukas March 2012 Brand new software
  • Maritrini and Cray 5 loading problemsHas anyone else here had issues loading either of these on a 128k? No matter what I try, both these games refuse to load properly. I can get both t…

    ... . Something like this:

    [code]
    BANK_M equ 5c5bh
    INKEY$: "IN". Little endian, so "NI ... again.
    ei
    ret[/code]

    Once it's ...
    mcleod_ideafix mcleod_ideafix March 2012 Games
  • Increasing the number of UDGs...Hi Folks, I know by default the Spectrum can have 21 UDGs (48K) and 19 (128K) and that the address of the bit patterns is pointed to by the UDG syst…

    ... wherever (UDG) is pointing.
    [code]
    org 23296
    UDG256 ... nz,UDGLOOP
    ret
    [/code]
    Normally PRINT_OUT deducts 144 ... typed; for UDG 'W' the INKEY$ token, and so on. However ... to be the correct CHR$ code for printing.
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... it:

    [code]4000 LET k$= INKEY$
    4010 REM DO ...
    4030 IF INKEY$=CHR$ 13 THEN GOTO 4030[/code]

    na_th_an na_th_an April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    [QUOTE=na_th_an;617901][code]4000 LET k$= INKEY$
    4010 REM DO STUFF ... /> 4030 IF INKEY$=CHR$ 13 THEN GOTO 4030[/code][/QUOTE]

    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... approach as follows:

    [CODE]3115 REM
    3120 REM ... /> 3135 POKE P,CODE "G":
    LPRINT AT CODE "H",CODE "x";"Press ... ;>>"
    3140 IF INKEY$=CHR$ VAL "13" THEN GO ...
    Paddy Coleman Paddy Coleman April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... this subroutine:

    [code]9000 IF INKEY$"" THEN GOTO 9000
    9001 RETURN[/code]

    And ... />
    [code]4000 REM do stuff
    4100 IF INKEY$CHR$(13 ...
    na_th_an na_th_an April 2012 Sinclair Basic
  • Keyboard problem...Hi Folks, I have hit a problem in MRT and I cannot see how to get around it. Please allow me to explain. I have a list of items from which one can…

    ... BASin and it works:
    [code]
    30 DEF FN p ... /> 60 GO TO 40
    [/code]
    as does this (it ... until I press "a"):
    [code]
    10 DEF FN p ... FN n()=FN p(23621)+(INKEY$="a")
    20 GO TO ... n()
    30 STOP
    [/code]
    Is it just complex ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Hisoft Devpac and the MGT Plus DI've got (potentially) a bit of an odd one here that might cut across a couple of areas so I thought I would put it in misc. I am trying to Hisoft's…

    ... LET a$="": LET a$=INKEY$#4
    30 FOR ... a$=a$+INKEY$#4: NEXT p
    [/code]
    Line ... code]
    30 FOR p=1 TO 28: LET a$=INKEY ... 40 LET length=CODE INKEY$#4+256*CODE INKEY$#4: PRINT length< ... -1:
    LET byte=CODE INKEY$#4: PRINT byte;" ";: ...
    Battle Bunny Battle Bunny April 2012 Sinclair Miscellaneous
  • 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…

    ... clarify, the intention was that INKEY$ uses the standard stream #0 ... you can alter this with INKEY$ #.

    INPUT should use ... the GW03 ROM.

    [code]
    ;; INPUT
    L2089: CALL ... will also scroll wrongly.
    [/code]
    Geoff Geoff April 2012 Sinclair Basic
  • Scrolling a mapCan someone explain in idiots terms how you scroll a map. I'm not after code as such, just an explanation of how it can be done. I'd like to scroll…

    ... " and "AO.UDG".

    [code]
    yt,xt = top left ... for map window
    [/code]
    [code]
    10 LET xm=12 ... /> 20 PAUSE 0: LET c=CODE INKEY$
    21 LET xk=(c ... ):
    NEXT r: RETURN
    [/code]
    Battle Bunny Battle Bunny May 2012 Development
  • question re. STR$ bugCould someone point me to whereabouts in the ROM this goes wrong? [code]PRINT PAPER 5;1;STR$ 234[/code] (Only the "1" prints in cyan.) It's not the m…

    ... would produce the error is INKEY$#n, which calls READ- ... IN (not plain INKEY$, which doesn't). So ... 3,"t": PRINT PAPER 5;INKEY$#3
    would show ... aside, why does INKEY$#0 or INKEY$#1 return null all ... br /> PAUSE 0: LET n=CODE INKEY$#0: PRINT n
    ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
<1…17181920212223…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