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.020s
<1234567…34>
  • 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 ...
    Geoff Geoff June 2004 Sinclair Basic
  • Strange layout of Spectrum video memoryHello, does anyone have an idea why the Spectrum's video memory has such a strange layout? I understand that a resolution of 256x192 is an easy mean…

    ... /> 0 1 0 t t Y Y Y y y y x x x x x

    Sinclair layout:
    0 1 0 t t y y y Y Y Y x x x x x
    [/code]

    Where ... no.
    Y
    GOC GOC August 2004 Sinclair Miscellaneous
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    ... bottom right)
    ; b=x , c=y (x,y point to test)

    ; if x>=x1 then
    ; if x=y1 then
    ; if y
    robpearmain robpearmain March 2005 Development
  • Quickest Assembly to find if point in rectangleWhat is the fastest way to see if a point is in a rectangle. e.g rectangle is 10,10 100,10 100,40 10,40 how do i know if a point (e.g 20,20) is in…

    ... bottom right)
    ; b=x , c=y (x,y point to test)

    Dr BEEP Dr BEEP March 2005 Development
  • 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$
    40 PRINT AT y,x;s$(f); FLASH 1;"|"; FLASH ... 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$ 22 = At 22,y,x
    Chr$ 23 = Tab 23 ... ,x
    Chr$ 24-Chr$ 31= ...
    zx_if1 zx_if1 April 2005 Sinclair Basic
  • udg collision detectionhow do I detect a collision between udgs in basic?

    ... ]

    10 LET X=10 : LET Y=14 : GO SUB 1000 ...
    1010 LET A=SCREEN$(Y,X)
    1020 POKE 23606,0 ...
    Dr BEEP Dr BEEP July 2005 Sinclair Basic
  • BASIC question (in both ways)hi, im fairly new to spectrum stuff.. I bought one a couple of days ago.. im trying to write a basic program that opens a window (drawn with DRAW com…

    ... 10 LET X=100: LET Y=100
    20 PLOT X,Y: DRAW 50 ... /> 30 PRINT AT 21-(y/8),x/8;"Hello"

    Y,X instead of X,Y. The Lowres screen ... you need to divide the Y by 8, and then ... subtracting from 21. The X coordinate is a straight divide ...
    Dunny Dunny August 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. …

    ... : 10 DEF FN C$(z,y,x,item)={z
    Dr BEEP Dr BEEP August 2005 Sinclair Basic
  • IN command in BASIC to read keyboardThis weekend on a Sinclair meeting we had some BASIC-games using IN to control the character. The maker of the game assumed that the result of an IN …

    ...
    20 CLS : LET x=15: LET y=11: LET ox=15 ... =11
    30 PRINT AT y,x;"*": IF OXX OR OYY THEN ... ;" "
    35 LET OY=Y: LET OX=X
    40 IF IN ... left=leftin AND x>0 THEN LET x=x-1
    50 ... =RIGHTin AND x0 THEN LET Y=Y-1
    70 IF IN ...
    mulder mulder 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
  • 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..)

    What am I writing , I use this method in MC.

    In BASIC I would do this:

    10 IF Y
    Dr BEEP Dr BEEP October 2005 Sinclair Basic
  • Problem with rotating procedureHi folks! I wrote a proc in z80 asm, based on: x' = x * cos (z) - y * sin (z) y' = x * sin (z) + y * cos (z) I used a precalculated table of sin a…

    ... /> [code]x = x - y>>n /* for some constant n */
    y = y + x> ...
    gasman gasman July 2006 Development
  • Graphics in Basic??What is the fastest way to draw high rez graphics in Basic. Andrew.

    ... SET1
    110 PRINT AT y,x;"ABCDEFGH"
    120 PRINT AT ... ;"IJKLMNOP"
    130 PRINT AT y+2;"QRSTU";
    140 GOSUB ... "ABC"
    160 PRINT AT Y+3,x;"DEFGHIJK"
    [/code]
    Scottie_uk Scottie_uk October 2006 Development
  • Who knows how to program a "pathfinder"?Hi all. I like to play games like "Colour Lines" and I think, I will create a version of this game for the SAM Coupe. It looks easy - until this "dam…

    ... PRINT AT y,x;"."
    420 LET y$=b$(y,x,1): LET x$=b$(y,x,2 ... )
    430 IF x$" " THEN LET y ... =VAL y ... $: LET x=VAL x ...
    Dr BEEP Dr BEEP 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…

    ... objects
    db 8, 5 ; y,x
    db 5, 25
    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…

    ... printed in basic at coordinates x and y?

    For example ... x=15: let y:11
    20 print at y,x; "K"

    X ... will be moving between 0-31 and y ...
    48K 48K 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…

    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…

    ... FN a(y,x)=16384+x+(y-INT (y/32))*32+INT (y/8)*2048
    y,x)=16384+x+(y-INT (y/8)*8)*32+INT (y/8)*2048 ...
    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…

    ... function that actually copies an Y,X screen coordinate directly unto a ...
    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…

    ... FN a(y,x)=16384+x+(y-INT (y/8)*8)*32+INT (y/8)*2048 ... /> 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…

    ... FN a(y,x)=16384+x+(y-INT (y/8)*8)*32+INT (y/8)*2048 ...
    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
    x and y
    getaddr:
    ... copy the character located at (y,x) on the screen
    ; ... x defb 0 ; x character position (input; 0-31)
    y defb 0 ; y ...
    BloodBaz BloodBaz March 2007 Sinclair Basic
<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
attr 692 1.3K
y 6.2K 15.7K
x 14K 31.7K

Related Threads

  • 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…
  • 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?<br /> <br …
  • DRAW x,y,a Algorithm - how does the ROM do it?Hi all, <br /> <br /> Getting on with SpecOS, and one of the things I would love to do is to preserve the original ROM's behaviour when drawing Arcs.…
  • Boxed ZX Spectrum + with 2 x ZX microdrives, Alphacom32 printer with 3 x thermal rollHi people.<br /> <br /> I found a bargain at a carboot on Sunday from somebody who didn't know what he was selling. (Im no expert by a long shot)<br …
  • Changing the colour Atributes at y,x (+3e BASIC)Hello there my fellow WoS'ers<br /> <br /> I am currently writing away on my +3e and I am wonder is there a way I can just effect the Paper / Ink att…

Related Searches

  • y first project
  • x files
  • find screen position of all attr
  • x uno
  • as a zx spectrum inter networking enthusiast y
  • fuse for mac os x
  • radastan 128 x 96 16 colours
  • zipi y zape
  • x y z
  • x com 2
  • fuse os x
  • x y
  • screen address to x and y
  • screen x y r tape
  • screen x y
  • 2000 let atr attr y x tinta 8 int papel 63 return
  • draw x y a algorithm
  • calculate pixel position from x y
  • draw x y z
  • x y to screen position

Copyright © 2024 World of Spectrum