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.037s
<1…891011121314…34>
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    ... IF X=2 THEN LET X$=B$
    ....
    8 IF X=8 THEN LET X$=H$
    9 IF X ... =9 THEN LET X$=I ...
    Dr BEEP Dr BEEP August 2003 Sinclair Basic
  • Let a=val "1"I see some basic programs which use Let a=val "1" instead of let a=1 syntax. what is the difference between val "1" and 1? is it an effect of some …

    ... IF X=2 THEN LET X$=B$
    ....
    8 IF X=8 THEN LET X$=H$
    9 IF X ... =9 THEN LET X$=I ...
    Philip Kendall Philip Kendall August 2003 Sinclair Basic
  • Making a mapI should learn Z80 assembly, but I don't have the time (really busy) and I feel like making a game. I've tried with Colt which gives me enough speed…

    ... 7; INK 0;AT y-1,x;"*+";AT y,x;"./": RETURN
    ... (etcetera, 30 different ... : LET jmp=9000+t: GO SUB jmp: LET x=x+2: IF x=30 THEN LET x ... =2: LET y=y+2
    9105 LET dir ...
    na_th_an na_th_an March 2004 Development
  • VariablesVariable Help: Can BASIC discriminate between odd and even variables? If so, what simple syntax can express it?

    ... />
    10 DEF FN m(x,y) = x - INT (x/y) * y
    20 PRINT FN m ... , 1.4)
    Returns 0.8.

    Example 2
    Returns -0.8.
    Geoff Geoff June 2004 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. …

    ... ...).

    10 LET x=0: LET y=10
    20 LET s$="This message ... s$
    40 PRINT AT y,x;s$(f); FLASH 1;"|"; FLASH ... /> 60 LET x=x+1
    70 IF x>31 THEN LET x=0: LET y=y+1 ...
    80 NEXT f

    x and y ...
    Arjun Arjun April 2005 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. …

    ... /> Chr$ 7 = Edit
    Chr$ 8 = Cursor back
    Chr$ 9 ...
    Chr$ 22 = At 22,y,x
    Chr$ 23 = Tab 23 ... ,x
    Chr$ 24-Chr$ 31= ...
    zx_if1 zx_if1 April 2005 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. …

    ... do something like this (where X is the coordinate of your ... />
    [code]
    10 LET X=X+(INKEY$="8")-(INKEY$="5")
    [/code]
    Colin Williams Colin Williams April 2005 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]
    10 LET X=X+(INKEY$="8")-(INKEY$="5")
    [/code]
    Dunny Dunny April 2005 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. …

    ... do something like this (where X is the coordinate of your ... />
    [code]
    10 LET X=X+(INKEY$="8")-(INKEY$="5")
    [/code]
    [code]
    10 LET X=X+(INKEY$="8" AND X0)
    [/code]
    Paul van der Laan Paul van der Laan April 2005 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. …

    [quote]
    On 2005-04-12 21:05, Colin Williams wrote:
    [code]
    10 LET X=X+(INKEY$="8")-(INKEY$="5")
    [/code]
    [/quote]

    On general principles, I'd say that should be rewritten to avoid the race condition.
    Philip Kendall Philip Kendall April 2005 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. …

    ... are in:

    1 LET x=0
    10 PRINT PEEK ... =1 TO 1000
    40 LET x=x+(INKEY$="8")-(INKEY$="5")
    50 ... -520 frames.

    1 LET x=0
    10 PRINT PEEK ...
    30 LET a$=INKEY$
    40 LET x=x+(A$="8")-(A$="5")
    Dunny Dunny April 2005 Sinclair Basic
  • BASin release 12b available for downloadOk, there were a few nasty bugs in the last release, so in fine SPIN team tradition here's a new release that possibly fixes those errors. In this r…

    Another bug (a very very very small and insignificant one):

    The syntax helper for ATTR wrongly indicates (X,Y), but the function uses (Y,X), just like AT
    Metalbrain Metalbrain October 2005 Sinclair Basic
  • BASin release 12b available for downloadOk, there were a few nasty bugs in the last release, so in fine SPIN team tradition here's a new release that possibly fixes those errors. In this r…

    ... helper for ATTR wrongly indicates (X,Y), but the function uses (Y,X), just like ...
    Dunny Dunny October 2005 Sinclair Basic
  • BASin release 12b available for downloadOk, there were a few nasty bugs in the last release, so in fine SPIN team tradition here's a new release that possibly fixes those errors. In this r…

    ... helper for ATTR wrongly indicates (X,Y), but the function uses (Y,X), just like ... [/url]:

    "ATTR: two arguments, x and y, both numbers; enclosed in ...
    Philip Kendall Philip Kendall October 2005 Sinclair Basic
  • BASin release 12b available for downloadOk, there were a few nasty bugs in the last release, so in fine SPIN team tradition here's a new release that possibly fixes those errors. In this r…

    ... helper for ATTR wrongly indicates (X,Y), but the function uses (Y,X), just like ... [/url]:

    "ATTR: two arguments, x and y, both numbers; enclosed in ...
    Dunny Dunny October 2005 Sinclair Basic
  • BASin release 12b available for downloadOk, there were a few nasty bugs in the last release, so in fine SPIN team tradition here's a new release that possibly fixes those errors. In this r…

    ... for ATTR wrongly indicates (X,Y),
    > but the function uses (Y,X), just ... properly in Chapter 16 as ATTR(line column). Well spotted. Ditto ...
    Geoff Geoff October 2005 Sinclair Basic
  • print at line 22 and 23I have a faint recollection of POKES to allow print at 22,x and 23,x, anyone know what they are? (rather than using the print #0 #1 stuff..)

    My way to print at line 23:

    [code]

    10 POKE 23659,0 : IF Y
    Dr BEEP Dr BEEP October 2005 Sinclair Basic
  • Lesser used BASIC commandsAre there any interesting articles or books that explore some of the lesser used BASIC commands/functions e.g. DEF FN, IN, OUT etc? The Spectrum BAS…

    ... FOR y=0 TO 8 STEP 2
    90 PRINT AT (8-y)/2,x ... /2;CHR$ (128+8 ... *POINT (x,y)+4*POINT (x+1,y)+2*POINT (x,y ... +1)+POINT (x+1,y+1 ...
    Dunny Dunny May 2006 Sinclair Basic
  • Help understanding some z80 asmI'm trying to work out how to represent the structure of a "sprite" in the SAM as "Grabbed" by SmallC. I can see the assembler implementation but I …

    ... MSB int x
    +8 LSB int x
    ***********************
    +7 MSB int y
    +6 LSB int y ... /> ***********************
    +1 MSB return address
    +0 LSB return address
    ***********************
    Alcoholics Anonymous Alcoholics Anonymous January 2007 Development
  • New Scumball 2 game!This game was posted in another thread some time ago now but after the ongoing Cybernoid discussion I thought I'd just overhaul the graphics a little…

    ... /> ; 3 objects
    db 8, 5 ; y,x
    db 5, 25
    ; exit position
    db 8, 8 ;y,x
    [/code]
    Woody Woody March 2007 Development
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    In BASIC:
    [CODE]
    DEF FN a(y,x)=16384+x+(y-INT (y/32))*32+INT (y/8)*2048
    [/CODE]
    zx128k zx128k March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... ]
    DEF FN a(y,x)=16384+x+(y-INT (y/32))*32+INT (y/8)*2048
    [/CODE ... /> [CODE]
    DEF FN a(y,x)=16384+x+(y-INT (y/8)*8)*32+INT (y/8)*2048
    [/CODE]
    Metalbrain Metalbrain March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... ]
    DEF FN a(y,x)=16384+x+(y-INT (y/8)*8)*32+INT (y/8)*2048
    [/CODE][/QUOTE ... /> [code]
    DEF FN a(y,x)=16384+x+32*y+1792*INT(y/8)
    [/code]
    Alcoholics Anonymous Alcoholics Anonymous March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    For a function that gives you each line too:

    [code]
    DEF FN a(y,x,l)=16128+x+32*y+1792*INT(y/8)+l*256
    [/code]

    Where l takes the values 1 to 8. Change the 16128 to 16384 if you want to use 0-7 for the line numbers.
    Matt_B Matt_B March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... ]
    DEF FN a(y,x)=16384+x+(y-INT (y/8)*8)*32+INT (y/8)*2048
    [/code][/quote ...
    zx128k zx128k March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... can
    a) handle your (y,x) to screen address and
    y,x) on the screen
    ; to ... h,b

    ; Copy 8 bytes from screen to destination ...
    ld b,8;b=copyLength
    lp2 ld ...
    BloodBaz BloodBaz March 2007 Sinclair Basic
  • Getting scr addresses from x and yCould someone please tell me how to calculate the 8 screen addresses corresponding to a character printed in basic at coordinates x and y? For examp…

    ... LET x=0: LET y=0: LET z=127: LET a=0: LET b=0: BORDER 1: LET ... +((y+b)*32), (z-PEEK (22528+x+a+((y+b)*32)))
    3150 RETURN ...

    4140 IF INKEY$="q" THEN LET y=y-1: IF ... ,9;" ALTER SIZE ": LET m=1
    4180 RETURN

    4240 ...
    48K 48K March 2007 Sinclair Basic
<1…891011121314…34>

Latest Posts

  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • European Software Titles with an English version
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
2000 2.9K 3.5K
let 29.3K 51.6K
atr 25 35
attr 692 1.3K
y 6.2K 15.7K
x 14K 31.7K
tinta 2 2
8 30.2K 46.2K
int 2.2K 6K
papel 5 6
63 920 1.8K
return 7K 10.6K

Related Threads

  • Let it Slow Let it Snow let it SnowWell, It's snowing here hard in the top left Corner of North Carolina.<br /> <br /> I heard that is it snowing hard in the UK also. My parents were s…
  • Famous 8 x 8 graphicsHi All,<br /> <br /> Part of a game I'm writing involves collecting falling 8x8 graphics, one level will be fonts (got this bit sorted) and another w…
  • Spectaculator 5.x/6.x And Multiface 3Hi there, anyone had any trouble with this at all? The instructions say that it will auto-switch between a Multiface 128 and a Multiface 3 when choos…
  • Convert x,y to Attribute Address in AssemblyWhat is the fastest way, given x,y (in hl) to return the attribute address?
  • Getting attribute location from a screen coordinates (x,y)I am having trouble figuring out how to convert an x,y coordinate pair (pointing to a specific pixel) to the location of the attribute for the block …
  • X-10 or X-20 schematics wantedDoes anyone have schematics for the Sinclair X-10 or X-20 amplifiers ?<br /> <br /> These amp-kits were sold back in 1964/65, and when I read about t…
  • Fuse for Mac OS X 0.8.0-pre1A new public preview of the next version of Fuse for Mac OS X has been released at the dedicated sourceforge project:<br /> <br /> [url]http://source…
  • Let is snow let it snowFor those of use in the south and west of the country including those in Northern Ireland its going to be a snowy one tonight and tomorow.<br /> <br …
  • Fuse for Mac OS X 0.8.0-pre2A new public preview of the next version of Fuse for Mac OS X has been released at the dedicated sourceforge project:<br /> <br /> [url]http://source…

Related Searches

  • y first project
  • x files
  • x y z
  • x y
  • flash 128 bright 64 paper 8 ink attr
  • attr y x
  • screen address to x and y
  • screen x y r tape
  • screen x y
  • 8 int
  • draw x y a algorithm
  • attr int flash
  • calculate pixel position from x y
  • 8 x sprite sheet
  • 8 x sprite sheet zx
  • 8 x udg sheet zx
  • 8 x udgs zx graphics
  • draw x y z
  • let bk3 peek val x 18
  • x y to screen position

Copyright © 2024 World of Spectrum