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.014s
<1…15161718192021…34>
  • How do the swingy ropes in Jet Set Willy work?Not sure if this should go in the programming forum but here goes. I remember back in '84 being totally blown away by the realistically swinging rope…

    ... fly' using a mathematical formula, a sort of basic 'physics engine', or ...
    Dr BEEP Dr BEEP September 2009 Games
  • POKING graphicsI remember using binary code (in BASIC) to POKE graphics (thanks Input magazine!) Using a FOR..NEXT loop you would POKE each square in the 8X8 charac…

    ... if you're programming in basic and you get it wrong ... then can't read your basic program because the character set ... colours for everything and use ATTR or PEEK the attribute to ...
    joefish joefish November 2009 Games
  • 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…

    ... to get the spectrum (In BASIC) to write my name with ... the fun bit learning about ATTR , POINT , PLOT , DRAW , Etc
    ASH-II ASH-II January 2010 Development
  • Most impressive game you've ever seen which has been written in speccy BASIC?What's the most impressive speccy game you've ever seen that's been written solely in speccy BASIC? +3 Basic or 48k basic. No machine code routines…

    ... ;418958]Wasn't Dictator in basic? I used to love that ... executing rebels. also the garbish attr effect was in mc. but ... rest of games is pure basic.
    Fikee Fikee January 2010 Games
  • Anyone used their Spectrum for mathematics/physics projectsI am currently doing an A level in Mathematics with ICS. It has me thinking and I would be interested to know if anyone has used their Sinclair Spect…

    ... regarding graphics , rotation using visual basic years ago at uni.. I ... a case of adapting the formula's to speccy.

    basic to generate the numbers and ...
    fog fog June 2010 Sinclair Miscellaneous
  • Problem with PRINT #stream on +128kWorking on a +128k, I want to choose whether all report output goes to screen or printer, so I use PRINT #stream where stream = 2 or 3 for screen or …

    ... to sort it out from BASIC after all. It occurred to ... black paper.

    The formula for working this out is ...
    Shaun.Bebbington Shaun.Bebbington July 2010 Sinclair Basic
  • Why does Pakistan even bother to turn up?We're talking cricket here. Bowled out for well under a hundred by England both this test and the last, surely Pakistan's team is so poor they should…

    ... and strategy is ether so basic (when to take pit stops ... like that any more - certainly Formula 1 has lost the majority ...
    ccowley ccowley August 2010 Chit chat
  • 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. …

    ... came up with the following formula to calculate the address of ... even in BASIC. However, I wanted to use this formula in a ... the address using the above formula I simply placed the text ...
    Paddy Coleman Paddy Coleman August 2010 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. …

    ... came up with the following formula to calculate the address of ... even in BASIC. However, I wanted to use this formula in a ... the address using the above formula I simply placed the text ...
    Dr BEEP Dr BEEP August 2010 Sinclair Basic
  • Keyboard demoHere's a preview of a new keyboard for the special fx engine. Press any key to start/restart. [url]http://dl.dropbox.com/u/9498358/fire_keyboard.sn…

    ... assembly source files... Its very basic and simply applys a patch ... /> CH1ATTR: DEFW $0000 ; CH1 SAVED ATTR POSITION
    CH2ATTR: DEFW $0000 ... ; CH2 SAVED ATTR POSITION


    GETNOTES ...
    kgmcneil kgmcneil September 2010 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. …

    ... interesting. In some versions of BASIC you have the REPEAT...UNTIL ... for structured looping. Unfortunately Sinclair BASIC does not have this but ... /> Even tricks in evaluating a formula are used when in order ...
    Dr BEEP Dr BEEP September 2010 Sinclair Basic
  • RIP Benoit Mandelbrot[QUOTE]'Fractal' mathematician Benoit Mandelbrot dies aged 85 Mandelbrot had been highly critical of the world's banking system Benoit Mandelbrot, w…

    ... had the formula I wrote a Mandelbrot generator in BBC Basic for ...
    JamesW JamesW October 2010 Chit chat
  • inverting graphics using basic?just curious if it could be done by poking screen memory ? and what's the structure. (foreground / background for each char ? ) reason I ask is I'd …

    ... BASIC. The logic is as follows:
    [code]Attr(new) = (Attr & 192) | ((Attr ... & 56) / 8) | ((Attr & 3 ...
    BloodBaz BloodBaz December 2010 Sinclair Basic
  • inverting graphics using basic?just curious if it could be done by poking screen memory ? and what's the structure. (foreground / background for each char ? ) reason I ask is I'd …

    [quote]but Basic uses logical operations, MC uses ... very easy to do in basic:

    [QUOTE=BloodBaz;497535 ... :
    [code]Attr(new) = (Attr & 192) | ((Attr & 56) / 8) | ((Attr & 3 ...
    Arda Arda December 2010 Sinclair Basic
  • Official CSSCGC 2010 Competition ThreadDear Wossers, As 'loser' of the 2009 competition, I am now obliged to host the 2010 competition. I have created a site which will provide a hub for …

    ... there are, the in game formula works in reverse.

    BASIC loader does not register
    Joe the Iceman Joe the Iceman January 2011 Games
  • Platformer BAS file?Does anyone have an example of a platformer in BASIC? Specifically one that uses drawn sprites, etc.

    ... "CLEAR nnn" first to get basic to move out of the ... /> eg: "CLEAR 60000" will tell basic to contain itself below address ... "") so many games have used ATTR to detect colours of UDGs ...
    Alcoholics Anonymous Alcoholics Anonymous January 2011 Sinclair Basic
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... ) you are demonstrating that the Basic RND is not very good ... each time. This assumes the basic rom interrupt routine is running ... starting number. This emans the formula used by RND to generate ...
    Alcoholics Anonymous Alcoholics Anonymous May 2011 Sinclair Basic
  • Frank N SteinThis one > [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0001849[/url] Always seems to crash about level 7 (maybe a bit more) or so with an …

    ... [/B] code back to MCODER BASIC? Impressive!

    The ... GOTO 219
    212 IF ATTR(x,y)>64 THEN ... GOTO 219
    213 IF ATTR(x+1,y)>64 ... GOTO 219
    214 IF ATTR(x,y)7 THEN GOTO ... 260
    215 IF ATTR(x+1,y)7 THEN ... 229
    223 IF ATTR(x,y+1)>64 ...
    Einar Saukas Einar Saukas May 2011 Games
  • Frank N SteinThis one > [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0001849[/url] Always seems to crash about level 7 (maybe a bit more) or so with an …

    ... [/B] code back to MCODER BASIC? Impressive![/QUOTE]
    I ... 1211
    1202 IF ATTR(x+2,y)=4 THEN ... 1211
    1203 IF ATTR(x+2,y)=5 THEN ... GOTO 1211
    1204 IF ATTR(x+2,y)=15 THEN ... 1211
    1205 IF ATTR(x+2,y)=3 THEN ... 1215
    1209 IF (ATTR(x+2,y)=69 AND ...
    Jimmy Jimmy May 2011 Games
  • Frank N SteinThis one > [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0001849[/url] Always seems to crash about level 7 (maybe a bit more) or so with an …

    ... THEN RETURN
    415 IF ATTR(x+1,y)>64 ... THEN RETURN
    420 IF ATTR(x,y)7 THEN [B ... RETURN
    515 IF ATTR(x,y+1)>64 ... RETURN
    520 IF ATTR(x,y+1)7 THEN ... in such cases. If the BASIC language had a [B]POP ... THEN RETURN
    420 IF ATTR(x,y)7 THEN [B ...
    Einar Saukas Einar Saukas May 2011 Games
  • Pixel Color IncorrectHello i am new to the ZX Spectrum and z80 assembly language. I am coding my first game and am having a small problem. I am trying to make the botom r…

    What FrankT said.

    You can set the attribute for any combination by using the formula:
    attr = 128*flash + 64*bright + paper*8 + ink

    where, flash = 1/0 (on/off), bright = 1/0(on/off), paper = 0..7, ink = 0..7
    Arjun Arjun June 2011 Development
  • Frank N SteinThis one > [url]http://www.worldofspectrum.org/infoseekid.cgi?id=0001849[/url] Always seems to crash about level 7 (maybe a bit more) or so with an …

    ... /> 8420 IF (r=1 AND ATTR(x,y)
    Jimmy Jimmy June 2011 Games
  • numbers to binaryHi everyone, I have looked through the manual and have found nothing. How do you change a number to binary easily? I know you can go binary to decim…

    ... -question.
    A recursive formula in BASIC needs a full coverage of ...
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... bytes for channel below BASIC area
    call ... represented as %00CCCCCc
    ; Formula: 0x4000 + ((row & 0x18 ... ; -----------------------------------------------------------------------------
    [/CODE]
    In BASIC, type [B]CLEAR 64860[/B ...
    Einar Saukas Einar Saukas July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... 5 bytes for channel below BASIC area
    call 0x1655 ... here represented as %00CCCCCc
    ; Formula: 0x4000 + ((row & 0x18) ... data in FONT_ADDR
    ; Formula: FONT_ADDR + 7 * INT (( ... :

    In BASIC, type CLEAR 64868, then compile ...
    Einar Saukas Einar Saukas July 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... 5 bytes for channel below BASIC area
    push ... here represented as %00CCCCCc
    ; Formula: 0x4000 + ((row & 0x18) ... font data in FONT_ADDR
    ; Formula: FONT_ADDR + 7 * INT (( ... follows:

    In BASIC, type CLEAR 64871, then compile ...
    Einar Saukas Einar Saukas August 2011 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... 5 bytes for channel below BASIC area
    push bc
    ; Formula: 0x4000 + ((row & 0x18) 1 ... font data in FONT_ADDR
    ; Formula: FONT_ADDR + 7 * INT ((char-32 ...
    Einar Saukas Einar Saukas August 2011 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. …

    ... stretching the performance of Sinclair BASIC. :smile:

    As always ... REM
    790 POKE p,ATTR (i2,i1+i7): PRINT AT ...
    Paddy Coleman Paddy Coleman August 2011 Sinclair Basic
<1…15161718192021…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
basic 24.7K 39K
attr 692 1.3K
formula 1K 1.2K

Related Threads

  • Switch from 128k BASIC to 48k BasicHello,<br /> <br /> Is there a way to start off running a program in 128k basic (so that you can use the ramdisk facilities) but then switch back dow…
  • (Basic) Sinclair BASIC mode for EmacsI saw this [URL=http://www.worldofspectrum.org/forums/showthread.php?t=14622]post[/URL] regarding a Sinclair BASIC editing mode along with some Fuse …
  • Help with Visual Basic 6.0 vs Visual Basic.netI have a program that auto generates VB.Net code..... I know VB.net syntax and am happy with the code generated.<br /> <br /> However, I have been as…
  • What did Spectrum BASIC lack (and was BBC BASIC so good?)Over the years, I've read in various multi-format magazines, that BBC BASIC was probably the best BASIC available on an 8-bit machine. I've never use…
  • 48K BASIC to ZX81 BASIC conversion possible?Looking for an automated way of converting a BASIC program done on a<br /> 48K Spectrum to one for the ZX81. It's obvious that some things cannot<br …
  • ZX Basic 1.2.5 - a BASIC CompilerWell, my old post about ZX BASIC seems to be gone (maybe this phorum purges old threads?), so I started a new one.<br /> <br /> After more than 6 mon…
  • Basic BASIC help needed RNDHi all,<br /> <br /> I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers.<br /> <br …
  • Star BASIC or *BASIC??? Anyone heard of this?Does anyone remember a thing called Star Basic or *basic?<br /> <br /> It was a tape that extended the BASIC instruction set and from memory you put …
  • Loading basic from basic?Hi Guys,<br /> <br /> Could you please help me. I want to create a menu on my plus 3 disks. If I use the line below I just get "c nonsense in basic…
  • Couple of basic BASIC questionsPlaying around with BASin again in an effort to knock up a game and am wondering 2 things<br /> <br /> 1) Why when I run the program do my UDGs not a…

Related Searches

  • rst8 return to basic
  • rst8 basic
  • return to basic
  • basic tips tricks
  • best basic manual
  • writing music in basic
  • play in basic
  • play command in basic
  • basic upper lower case
  • basic toupper tolower
  • basic lcase ucase
  • basic change upper lower case
  • basic
  • attr basic
  • attr formula
  • basic attr
  • basic attr flash
  • attr bright basic
  • attr basic flash beight ink
  • attr basic flash bright ink

Copyright © 2024 World of Spectrum