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.038s
<1…22232425262728…34>
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    [quote]This way you can do the usual scr[y][x] two-dimensional syntax.[/quote] very good,thanks


    When I copied and pasted the code it crashed though
    slenkar slenkar December 2013 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    ... /> [code]
    fzx_write(buffer, (scr[y][x] < 10) ? 1 : 2);

    [code]
    if (scr[y][x] < 10)
    fzx_write(buffer ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    I'm trying to use a simple 8x8 array right now.

    Just wondering if a simple #define could work as well.

    like

    [CODE]#define ARR(y,x) arr[(y
    Timmy Timmy January 2014 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    #define ARR(y,x) arr[(y
    Paradigm Shifter Paradigm Shifter January 2014 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    [QUOTE=Paradigm Shifter;744679]#define ARR(y,x) arr[(y
    Timmy Timmy January 2014 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    It should have a comment as well

    // Pirate macro
    #define ARR /* etc. */

    EDIT: Serious point though, you should pass arr as a macro argument

    #define ARR(arr, y, x) /* etc. */
    Paradigm Shifter Paradigm Shifter January 2014 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    ...

    #define ARR(arr, y, x) /* etc. */[/QUOTE]
    I'm ...
    Timmy Timmy January 2014 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    ... calculation for static vars x,y or constants x,y. Inlining will cost more ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • DIM DATA and the likeSo...I'm trying to work out arrays in BASIC a bit more and have knocked up the following quick test bed to fiddle about with before trying anything m…

    ... /> 40 DIM x(10)
    50 LET s = 1: LET n = 3: LET g ... TO 10
    70 LET x(n) = s+INT(RND*n)*g
    100 PRINT x(n)
    110 NEXT n ...
    110 PRINT x(1)+1
    [/CODE]
    David Jones David Jones January 2014 Sinclair Basic
  • What's wrong with this code?[code]10 LET X=1+INT (RND*99999999): LET Y=1+INT (RND*99999999) 20 INK 4 30 PAPER 0 40 PRINT "Quest for ye flask!" 50 PRINT "?2014 Yoshiatom" 60 PRIN…

    ... number in. So

    LET randomname = 5

    is ... />
    LET RaNdOmNaMe = 5


    Therefore, X and x are the ... same name. So X is always equal to x ...
    Timmy Timmy February 2014 Sinclair Basic
  • The official CSSCGC 2014 threadJust to announce that the comp.sys.sinclair Crap Games Competition 2014 is now open. It's home for the year will be; [url]http://www.mykeweb.co.uk/c…

    ... my understanding is that x = horizontal and y = vertical, however, the Speccy ... as 'PRINT AT y,x.' RTL uses 'PRINT AT x,y' or 'down then ...
    MykeP MykeP February 2014 Games
  • The official CSSCGC 2014 threadJust to announce that the comp.sys.sinclair Crap Games Competition 2014 is now open. It's home for the year will be; [url]http://www.mykeweb.co.uk/c…

    ... my understanding is that x = horizontal and y = vertical, however, the Speccy ... as 'PRINT AT y,x.' RTL uses 'PRINT AT x,y' or 'down then ... as much as PRINT AT y,x would've messed with [I ...
    leespoons leespoons February 2014 Games
  • reversing an LFSRWhat's the correct way of reversing an LFSR so that it produces the same numbers but in reverse order? The little BASIC program below shows a test I …

    ... 0100 = 1a24
    X X XX
    0 1101 ... x(5): LET x(1)=0: LET x(2)=1: LET x(3)=0: LET x(4)=1: LET x ... (5)=0: DIM a$(13): LET ... /> 40 LET a$=CHR$ (48+x(1+VAL ... 45 LET v=0: FOR x=1 TO 13: LET v ... =2*v+VAL a$(x): NEXT x
    Kweepa Kweepa February 2014 Development
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... ] CLEAR 65535-768: LET hi=65536-768: LET lo=22528:
    ... DEF FN b(s)=s+INT ( ... p(23639)+8[/b]
    103 [b]LET u=23563: LET v=da ... ,768)
    107 [b]LET a$=b$[/b]
    110 ... )*256: POKE u+1,INT (v/256): RETURN[/b]
    [/code]< ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • dumping protected BASIC loadersI wrote this a few weeks ago but forgot to post it. It will load & list from tape/TAP/TZX any BASIC program which has been saved with SAVE, including…

    ... different.
    [*]Lines 2000-2130: Scans back ... br /> 10 LET a=bytes: LET iv=0: LET bt=0: ... LET n(d)=PEEK (a+d): NEXT d: GO SUB 2000 ... :
    PRINT INK ynk; FLASH ynk=2;number;: PRINT "]";: LET ... 21
    ...
    2000 LET v$="":
    FOR d= ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • CIRCLEHi, I'd like to draw a circle x,y,r using the BASIC-ROM subroutines. I've put x, y and r onto the calculator stack and used CALL #232D and RET. I g…

    ... CRGRE1 at $233B with R,Y,X on the stack and have ... /> [CODE]
    LD A,128 ; X Coord
    CALL STACKA
    LD A,88 ; Y Coord
    CALL STACKA
    dbolli dbolli March 2014 Development
  • BASin won't accept this code?Taken from the Oneliner contest 2007: [CODE]1 LET n=191: DIM i$(4,9): FOR g=2 TO 4: LET i$(g-1)=" # # # # ": NEXT g: LET b=0: LET p=16: LET a=p: LET …

    ... :

    [code]
    10 LET a=(2+3)*4

    [code]
    LET z=(b>y)*(bx)*(a" ":
    [/code ...
    Dunny Dunny April 2014 Sinclair Basic
  • WOM Memory Signetics 25120 Series 9046NHello, here: [url]http://www.ti.com/ww/en/bobpease/assets/www-national-com_rap.pdf[/url] at pages 128 und 129 you can find information about a very …

    I believe that write-only ram will be the next big thing in computers. Nice to see a chip build on the S.E.X. process... 8-)
    Rorschak Rorschak April 2014 Hardware
  • Opening my new game projectHi I am working to a new game (tentatively called "Donkey Kong Reloaded Done Better"...i was not happy with the graphics of Donkey Kong Reloaded) whi…

    ... right)
    subtract 20 from x (lift albert up 20 pixels ... )
    add 16 to y (pushes albert 16 pix right ... /> subtract 20 from x
    subtract 16 from y
    endif
    y x coordinates)
    you can change ...
    gabriele amore gabriele amore April 2014 Announcements
  • Pacman monster helpso I am trying to write a pacman game in Specbas [youtube]0R4XmkzBfHs[/youtube] got it working ok so far.... now the tricky bit the monsters in p…

    ... LET ghostposx=SPRITEx pac+8
    3230 LET ghostposy=SPRITEy pac+8
    3270 RETURN ... SPRITEx gr)*2): LET ghostposy=SPRITEy gr+((( ... SPRITEx gr)*2): LET ghostposy=SPRITEy gr+(((SPRITEy ... LET ghostposy=SPRITEy gr+((SPRITEy pac-SPRITEy gr)*2)
    3470 RETURN ...
    ASH-II ASH-II May 2014 Sinclair Basic
  • Beautiful codeSome people see beauty or something sublime in maths formulas and equations, can anyone suggest examples of beautiful or sublime programming?

    ... transforms the argument X of SIN X or COS X into a value ... that:

    Y = X/(2*PI I ? INT (X/(2*Pl ( + 0.5 ... ), where Y is greater than ... subroutine returns with: V=4*Y if -1
    chev chev May 2014 Development
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ... you'd need to do x - ( 8 * INT ( x / 8 ) ). That is, divide the attribute ... 's probably easist to do INT ( x / 8 ) - ( 8 * ( x > 63 ) ) which means divide the ... get the existing attribute x, then do ( 8 * INT ( x / 8 ) ) + ink. In other words ...
    joefish joefish June 2014 Sinclair Basic
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ... , such as PRINT AT y,x;"/\";AT y+1,x;"\/"
    (b) Generating a ...
    joefish joefish June 2014 Sinclair Basic
  • Decimal to Binary stringHi all, Anyone got a less labour intensive BASIC routine than this? Example:- take 170 and convert to a string "10101010" take 4 and convert to a s…

    ... version):
    [code]
    5 LET number=170
    10 POKE ... ,number
    20 LET s$=""
    30 FOR x=0 TO 7 ...
    40 LET s$=s$+STR ... $ (POINT (x,175))
    50 ... NEXT x
    60 PRINT ...
    Timmy Timmy August 2014 Sinclair Basic
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... br /> 11 RANDOMIZE 0: LET bc=USR InitS:
    BORDER ... 0-9] ";den: LET den=INT ABS den:
    LET den=den-(den ... ):
    IF den THEN LET den=INT (65536*den/9)
    ... ,0;"move:5,6,7,8; mark:SPC; done:ENT": ... 0; PAPER 1,,: LET r0=10: LET c0=16: OVER 1 ...
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • Did Sinclair pioneer 'tiny' computers?Most computers of the time were fairly large-ish The Atari 8-bit, the Apple II, The c64 looks at least twice the size of the rubber key speccy. Th…

    ... x 17.5 x 5.5 cm
    Oric-1 28 x 17.8 x ... x 22 x 3.8 cm, 1 kg
    COMX-35 29 x 16 x ... x 17 x 4 cm, 0.8 kg
    Camputers Lynx 32 x 20 x ... x 17 x 6.5 cm
    Panasonic JR-200U 34.8 x 20.8
    carlsson carlsson December 2014 Sinclair Miscellaneous
  • How to add a loading screen to my tap file[FONT=Calibri][SIZE=3]I?ve got my game created as a tap file generated by Pasmo. I now want to add a loading screen. Can anyone explaine the best way…

    ... some PAPER 0 : print AT Y,X to add a black area ...
    farvardin farvardin December 2014 Development
  • How to add a loading screen to my tap file[FONT=Calibri][SIZE=3]I?ve got my game created as a tap file generated by Pasmo. I now want to add a loading screen. Can anyone explaine the best way…

    ... some PAPER 0 : print AT Y,X to add a black area ...
    Alessandro Grussu Alessandro Grussu January 2015 Development
  • Testers for new z88dk clibA long (long, long, long) time ago a few people offered to help test the new clib in z88dk. Much time has passed since then and I won't hold people,…

    ... ]
    void drawchar(unsigned int x,unsigned int y,unsigned char *gfx)
    [/code ... /> unsigned int y (2 bytes)
    unsigned int x (2 bytes)
    return address

    unsigned int x (2 bytes)
    unsigned int y (2 bytes)
    Alcoholics Anonymous Alcoholics Anonymous February 2015 Development
  • ZX Basic StoryOk so here's another mundane idea. Let's make a story, like the three word story but you are only allow to used the words letters or symbols provided…

    ... Len, cats.

    LEN: LET LEN RUN OVER CAT VAL ... SIN.  PAUSE CAT
    LEN: LET NOT SIN VAL
    VAL ... : STOP LEN!
    LEN: LET LEN ATTR! LEN RUN OVER CAT THEN ...
    SnazzyParrot SnazzyParrot June 2015 Chit chat
<1…22232425262728…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