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.065s
<1…6789101112…34>
  • PC Graphics card incompatibility issueHey all, ive had a mates PC in for repair, well, upgrade. Against my judgement he's gone and bought a PCI card (Geforce 8400GS 512mb), even though th…

    I may have a look for the other chipset drivers, see if that works, just go off the motherboard model for that shall i?

    and def chris, you aint wrong mate!
    Macc Macc 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 …

    ... bit long funciton):

    DEF FN O(x,y)=(128 AND ... INT (FN V(FN V(FN V(FN V(FN V(FN V(FN V(x ... OR INT FN V(FN V(FN V(FN V(FN V(FN V(FN V(y ... this is AND:

    DEF FN A(x,y)=(128 AND ... FN, but how, can please somebody share?[/QUOTE]Wins my vote for…
    bigjon bigjon December 2010 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... in the IDE
    [*][B]DEF FN [/B]does not work - causes ... runtime

    [B]100 DEF FN a(x,y,p$)=CODE ... y)
    110 PRINT FN a(3,4,"Paddy")
    [*]If a [B]FOR...NEXT[/B] variable is re ... in ZXSpin
    [*]Add support for the other Windows cut, copy ...
    Paddy Coleman Paddy Coleman January 2011 Sinclair Basic
  • SE Basic Type-ins^Pete suggested creating a sticky thread for SE Basic discussion. I thought a Type-ins thread might also be useful. Up to the mods if they want to ma…

    ... :

    [code] 10 DEF FN D(o,n)=n-VAL ... ]

    For example [b]BEEP 1, FN D(4, C ... of 96 double byte integers for each note. Storing these ... noise or both are played for a given channel. These ... "-32"[/code]

    For example you would set the ...
    chev chev April 2011 Sinclair Basic
  • Copying a SCREEN$ in ZX BASIC in 1 second?!Following on from the revived "[thread=20207]Saving a complete SCREEN$ in BASIC[/thread]" thread (although Arjun really only needed a suitable POKE i…

    ...
    [code]
    2 DEF FN p(a)=PEEK a+256 ... br /> DEF FN l(v)=v-256*FN h(v): DEF FN h(v ... )=INT (v/256):
    DEF FN ... B$,
    to make room for possible (VAL "nnnnn" TO ... ,FN d(PEEK (da+9)): LET dm=da:
    FOR ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... Paddy Coleman;507897]
    [*][B]DEF FN [/B]does not work - causes ...
    [quote][*]If a [B]FOR...NEXT[/B] variable is re ... ? (as direct draw uses throttling for framerates).

    [quote ... /> [quote]
    [*]Add support for the other Windows cut, copy ...
    Arda Arda May 2011 Sinclair Basic
  • BASin Problems etc.Hi Folks, Paul has asked me to open this thread to document any outstanding issues that we find within BASin. No guarantees that Paul can/will fix …

    ... questions...

    1) ([B]DEF FN[/B]) I am using version ... "a" gets defined as a FOR/NEXT variable correctly and remains ... BASin as a development environment for programs that will eventually run ... works under the covers but for me it would work something ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Storing and displaying attributes...Hi Folks, I have a requirement to store and then redisplay a line of attributes from the screen. For example: 100 DIM a$(1,32) 110 LET line=10 120…

    ... is the precursor marker byte for a FP number, in the ... the delimiter character for a DEF FN definition, telling the FN variable search routine ...
    Battle Bunny Battle Bunny June 2011 Sinclair Basic
  • 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…

    ... /> 5 CLEAR 26000
    9 DEF FN b$(n,b)=(STR$ (n ... -2^b>=0)+FN b$(n-(2^b AND ... '"a$=";
    25 LET a$=FN b$(a,15): PRINT a ... /> See my post for the formula, as for your STOP-question.
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    ... for[/B]

    [B]BIN$[/B]
    [code]
    1 def fn ... /> NOTE:
    The keyword 193 for STR$ is used, no version ...

    [code]
    1 DEF FN b$(d)=VAL$ ((CHR$ 19 ...
    Dr BEEP Dr BEEP June 2011 Sinclair Basic
  • Can anyone see a way to speed up the following line of code?Hi Folks, Been looking at bottle necks in my code using BASin's Profiler and the following line (well the 2nd LET statement) is somewhat slow. [COD…

    ... no printable character available, so for CHR$ 10 you should use ... ?
    I dont mean the DEF FN placing in LINE 0 here ... one, put the most used DEF FN ahead.
    Further, longer variable ... aa etc.

    As for comparisons with strings the rules ...
    Paddy Coleman Paddy Coleman July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... extra use of GO TO, FOR...NEXT or IF...THEN. Line ... DEF FN a()=FN r(1+INT (RND*49)):
    DEF FN r(x)=VAL (("FN ... A ARRAY
    30 FOR m=1 TO 21
    70 FOR n=1 TO 6
    80 LET a(FN a())=n
    110 ... OF 6
    115 FOR o=1 TO 49
    Battle Bunny Battle Bunny July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... any use of GO TO, FOR...NEXT or IF...THEN. ... DEF FN a()=FN r(1+INT (RND*n)):
    DEF FN r(x)=VAL (("FN ... A ARRAY
    30 FOR m=1 TO 21
    70 FOR n=49 TO 44 STEP ... 1
    80 LET a(FN a())=50-n
    110 ... OF 6
    115 FOR o=1 TO 49
    loonix loonix July 2011 Sinclair Basic
  • automatic relocating of non-relocatable codeI was pondering upon the problem of changing absolute addresses used by CALL, JP, etc. when code is moved, without reassembling at the new location; …

    ... Dr BEEP's "scanning" method for passing USR arguments which, once ... my former method of using DEF FN. The changes are that I ...
    Battle Bunny Battle Bunny August 2011 Development
  • Keys redefine routine and key check.I have written some asm code which allows me to redefine keys (for a game etc.), and also allows me to be able to check any keypresses for the redefi…

    ... LET b$="00000000"
    15 FOR b=0 TO 7:
    [code]
    1 DEF FN b$(b)="00000000"(TO 8 ... LEN STR$ FN b(b))+STR$ FN b(b):
    DEF FN b(b ... )=VAL (("b-INT (b/2)*2+10*FN b ... BC) in string B$. The FOR...NEXT loop is quicker. I ...
    Battle Bunny Battle Bunny September 2011 Development
  • 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…

    ... br />
    [CODE]
    DEF FN b$(b,u)=("" AND USR ... string "0000000000000000" inside the DEF FN, so if you change it ... /> 7 DEF FN h(h$)=16*FN n(h$(1))+FN n(h ... 1010 READ c$
    1020 FOR i=1 TO LEN c ... its starting address using the DEF FN x(a$).

    mattsteel mattsteel 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…

    ... its starting address using the DEF FN x(a$).[/QUOTE]
    for incorporating m/code ... for the DATA + ML for a$ (plus 5 bytes for the FN ... x(a$) entry and a few bytes for ... in the erroneous results for non-decimal conversions, but ...
    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…

    ... , I saw no reason for combination with DEF FN.
    Still treasures can ...
    roko roko 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…

    ... was wondering if the technique for incorporating m/code into a ... the "2A0B5C......" string in the DEF FN stmt next to the "00000...".
    roko roko 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…

    ... the "2A0B5C......" string in the DEF FN stmt next to the "00000 ... in real code added together for the real number
    Dr BEEP Dr BEEP 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…

    ... , I saw no reason for combination with DEF FN.
    Still treasures can ... /> [/QUOTE]
    I found useful DEF FN because all variables are vectorized ...
    mattsteel mattsteel 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…

    ... .

    [code]
    6 DEF FN n(n$)=CODE n$-CODE ... ")
    7 DEF FN h(h$)=16*FN n(h$(1))+FN n(h ... a=1:
    DEF FN l()=LEN a$-1: DEF FN c()=INKEY$=CHR ... $ 13

    9991 FOR b=0 ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    ... e. a function that searches for a s$ string inside ... br /> 3 DEF FN h(h$)=16*FN n(h$(1))+FN n(h ... L=23296
    1020 FOR i=1 TO LEN c ... br /> 2005 PRINT s$'''"looking for 'is'"
    2010 LET ...
    ^ ^

    looking for 'is'
    [/HTML]

    mattsteel mattsteel September 2011 Sinclair Basic
  • INSTR function...Hi Folks, Another little program that people might find useful: [CODE]100 DIM i(4) 110 LET a$="This is some sample text" 120 LET b$="text" 130 GO S…

    Here's a recursive DEF FN INSTR one-liner, cunningly ... it in a separate function "FN c(c,o$)" didn' ... work. I thought that maybe "DEF FN c()=c+LEN o$-1 ... it does, but it searches for them in the VARS area ... br />
    [code]
    4 DEF FN i(w$,o$,c)=
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • fn bug in basin?Hi. I was just trying to make myself some functions in basin and when i tryed them, the progam stopped on call. So i've tryed this simple thing: 10 …

    ... simple thing:

    10 def fn a(x)=x*10
    20 print fn a(10)

    and ... or what?

    thanks for help[/QUOTE]

    Hi ... ago. I am afraid that FN is off limits in BASin ...
    Paddy Coleman Paddy Coleman September 2011 Sinclair Basic
  • Any ideas on how to solve this equation?If I have three numbers 10:A:B where A & B are equal +ve integers <10, what formula could I apply to pairs of numbers (A,10) or (10,B) such that the …

    ... function.
    [code]
    1 DEF FN b(n,P1,P2)
    +VAL (("P1*FN P2(INT (n/P2),a ... =8 and P2=2 then, for example, the calculation INT (127 ... one) then it will work for any combination. I haven't ...
    Battle Bunny Battle Bunny September 2011 Development
  • Any ideas on how to solve this equation?If I have three numbers 10:A:B where A & B are equal +ve integers <10, what formula could I apply to pairs of numbers (A,10) or (10,B) such that the …

    ... doesn't work: [B]FN P2[/B] should be [ ... B]FN b[/B], also [B] ... :

    [CODE]1 DEF FN b(n,p,q)=n ... /q)+VAL ("0"+("+p*FN b(INT (n/q),p ... is a bad idea. For instance, converting 256 from base ... ] that you cannot use for calculations, you need to ...
    Einar Saukas Einar Saukas September 2011 Development
<1…6789101112…34>

Latest Posts

  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • 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

HitBox

Word Docs Hits
def 11.7K 12.9K
fn 866 4.4K
look 49.6K 56.6K
for 352.6K 637.2K

Related Threads

  • Fix for the DEF FN bug of zmakebasSome months ago I discovered a bug in zmakebas: it does not include the 5 bytes required after every parameter of a DEF FN.<br /> <br /> By the tim…
  • Corona Encantada for MSX and Invasion of the Zombie Monsters for CPC, from RELEVO, for saleWe have a remaining of the stock of games we offered in the crowfunding of the book "Enciclopedia Homebrew". They are Corona Encantad for MSX in cart…
  • Looking for the game Rex for spectrumHello,<br /> I am looking for the game Rex(I think there are two parts 1&amp;2) by Martech.
  • Heres one for you tooo make some money :) For MIA`sYou have a massive archive "INFOSEEK", but i know you dont allow offsite looking at this source of info.<br /> <br /> But if you produced a CD with t…
  • ANNOUNCE: Speccy-Player (AY file player for a Real Spectrum) version 0.1 available for downloadI finally managed to get my AY file player for Real Spectrum 128 (working title "Speccy-Player") into a suitable state to unleash it on the unsuspect…
  • Spectaculator - any hope for support for CTRL ?When running CP/M for +3, the CONTROL key is SSHIFT+CAPSS (i.e. EXTENDED).<br /> 1. It would be fine to emulate this to the PC's CTRL key. At present…
  • Anyone want to swap all my tapes, for all systems, for game carts?I live in terrace house, not much bigger than the ones on Coronation Street. I don't have a whole lot of spare room left, and my wife, bless her, obj…
  • Recommend a 48k music program for me, or teach me how to search for them in infoseek. ThxThe only 48k music tracker I happen to know is Wham!<br /> <br /> Which ones do you like?<br /> <br /> Can anybody point me to some old threads on th…
  • Search plugin for Firefox/Mozilla..... for WoS?Hello!<br /> <br /> Is there a searchplugin made for Firefox/Mozilla.... thats work with WoS - Sinclair Infoseek? If not can someone make one please.…

Related Searches

  • modulo function def fn
  • fuse def fn keyboard
  • def fn usr
  • def fn
  • def fn within a function
  • def fn d
  • bin def fn
  • def fn recursive bug
  • def fn bug
  • def fn recursive bin
  • def fn library
  • def fn v
  • def fn gosub fast
  • def fn battlebunny
  • def fn fast
  • spaghetti def fn
  • dr beep s recursive def fn
  • dr beep def fn
  • def fn trick
  • def fn copying

Copyright © 2024 World of Spectrum