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.077s
<1…567891011…34>
  • 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…

    Something's not right there. For a start those functions aren' ... ,string[/I])
    [code]
    DEF FN M(x$,y$)=(x$ AND ... that M is already reserved for MAX(number,number) function. ... coffee?). The remaining available letters for number functions are:

    chev chev July 2009 Sinclair Basic
  • More colours II (Was: Most popular new features?)The suggested 4xCLUT multi-colour solution never took off.

    ... hard work for you:

    [code]
    10 DEF FN c$(c ... (c-INT (c/2)*2) : DEF FN c(r,g,b)=(g ... range of Red and Green. For example 7 and 6 are ... the equivalents are:

    FN c$(0) = FLASH 0; BRIGHT ... 0
    FN c$(1) = FLASH 0; BRIGHT ...
    chev chev November 2009 Emulators
  • Speccy games programmingI've got a question. Where games written in pure machine code or was it a level higher with Assembly language being the choice? I always thought it…

    ... short of supporting "VAL" and "DEF FN" as these are very complex ... the string, subtracted the code for "0" and added the result ... ever commercial program! (A commission for a computer shop in Kettering ...
    joefish joefish November 2009 Games
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    ... sure what the z is for. And you have to have ... like:

    [code]
    DEF FN w(x,y,a$)=USR ... />
    [code]
    LET n=FN w(0,0,a$+CHR ...
    chev chev December 2009 Sinclair Basic
  • Dim commandI try o find a BASIC COMPILER for ZX SPECTRUM 128 that use DIM command with two or more letter as 10 DIM AB(10) instead of 10 DIM A(10) Any iforma…

    [QUOTE=aowen;407170]A DEF FN has to have a fixed ... parameters, so you could have DEF FN w(a$, b$, c$)=1 ... all of those with FN so print FN w(a$,b$) would ... .[/QUOTE] I take your word for that :-)

    [QUOTE=aowen ...
    roko roko December 2009 Sinclair Basic
  • The Chuntey InitiativeIt's the start of a new year and with it brings a new wave of optimism and hope! :) In light of the relative success of twitter/speccynews (in the s…

    ... the whole word:

    DEF FN u$(s$)=VAL$ "CHR$ ((CODE ...
    Arjun Arjun January 2010 Sinclair Miscellaneous
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    This works for me. There should be 203 ... f$="m:example"
    1010 FOR n=1 TO LEN f ... me of ZX BASIC and DEF FN may want to move argument ... 'exists' check could just be DEF FN e(a$) = USR (prog+5 ... chk
    defs 118 ;Space for filename parameter and stack
    John Elliott John Elliott May 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... ?[/QUOTE]

    Errrm ... use DEF FN to pass arguments to USR ... [/url] above. Check your PMs for a link to the MENU ...
    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • +3 how to detect if a file exist ?Need help. I am making a generic menu to my compilations over the spectrum +3. Exist some way programatically to detect if some file exists on the d…

    ... day. Specifically, the use of FN o(f$) in these lines ... : GO SUB 9220: DEF FN o(f$)=USR 49050: DEF FN p(t,e ... LET r$=l$(item): IF FN o(r$+CHR$ 255) THEN ... file name passed in the FN o(f$) call.

    Using m/code to search for variables in the VARS area ...
    Battle Bunny Battle Bunny June 2010 Sinclair Basic
  • BITWISE operators...Hi Folks, Another question - is there a way (fast) to do bitwise operations in Sinclair BASIC? Many thanks Paddy

    ... address of first character after FN
    INC HL
    ... br />
    [CODE]
    10 DEF FN A(X,Y) = USR start_address ...
    20 PRINT FN A(10,20)
    [/CODE ... relatively straightforward to create functions for any other bitwise operators ...
    GReW GReW August 2010 Sinclair Basic
  • PFN PRINT by Garry Rowland...Hi Folks, Whilst watching Casualty last night I thought I would surf the archive and look at some "classic" software. One I tried was a program cal…

    For my sins it was me ... had the instructions, something about DEF FN and such.... I also used ...
    Dave Fountain Dave Fountain September 2010 Sinclair Miscellaneous
  • Time function?How do you do a timer? Example: Start timer If timer = 10 seconds then reset timer Thanks

    ... /> Basicly:

    [code]50 DEF FN t()= INT ((65536* PEEK 23674 ... LET now=FN t()
    70 PRINT "DO STUFF FOR 10 SECONDS ... ...";
    80 IF FN t()
    na_th_an na_th_an September 2010 Development
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ... string array. It checks for every type, and so ... />
    [code]
    4 DEF FN p(a)=PEEK a+256 ... ,k0; INVERSE 1;"SEARCHING FOR ARRAY ";o$;"$()";TAB k0;< ... 96:
    FOR i=FN p(23627) TO FN p(23641)-2 ... THEN
    FOR a=i+1 TO FN p(23641)-2 ...
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Location of variableHi everyone When basic makes an array how to you find out the location in the ram of where the data is stored. :) Also, does it store the values in…

    ...

    [CODE]10 REM DEF FN v()=PEEK (23627)+256*PEEK ... y$(15,20)
    45 FOR l=1 TO 10: NEXT ...
    9035 REM 7=Index (FOR)
    9040 REM --------------------------
    9045 ... --------------------------
    9255 REM 7.INDEX(FOR)
    9260 LET t$="7 ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... time. Unfortunately using FRAMES for timing isn't precise enough ... an accurate timing for this, or for the more complex ... Sort demo
    2 DEF FN t()=65536*PEEK 23674+256 ... v$(52,1):
    FOR i=1 TO 52:
    FOR i=1 TO 50:
    Battle Bunny Battle Bunny September 2010 Sinclair Basic
  • Keyboard mapping...Hi Folks, This is probably going to be one of those daft questions but... On the emulators (Spectrum and CPC) why are the keyboards not mapped to t…

    ... is fine. Do not use DEF FN though as it seems to ... my perspective.

    As for keyboard, I suppose one option ...
    Paddy Coleman Paddy Coleman September 2010 Emulators
  • Keyboard mapping...Hi Folks, This is probably going to be one of those daft questions but... On the emulators (Spectrum and CPC) why are the keyboards not mapped to t…

    ... is fine. Do not use DEF FN though as it seems to ... my perspective.

    As for keyboard, I suppose one option ...
    Rebelstar without a cause Rebelstar without a cause September 2010 Emulators
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... quicksort implementation...
    [code] 1 DEF FN t()=(PEEK 23672+256*PEEK ... : DIM p$(nelem,1): FOR n=1 TO nelem: LET ... /> 50 STOP
    1000 FOR n=1 TO nelem: PRINT ... $=p$(pv)
    4002 FOR i=fr+1 TO end ... depends upon the right choice for the pivot. A naive ...
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... quicksort implementation...
    [code] 1 DEF FN t()=(PEEK 23672+256*PEEK ... =0: DIM p$(nelem,1): FOR n=1 TO nelem: LET ... GO SUB 4000: LET t2=FN t()
    40 GO SUB ... ."
    50 STOP
    1000 FOR n=1 TO nelem: PRINT ... v$=p$(pv)
    4002 FOR i=fr+1 TO end ...
    Paddy Coleman Paddy Coleman October 2010 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…

    ... pity that Philip's trick for implementing recursion in Sinclair BASIC ... it... :)

    [code]10 DEF FN b$(n,d)=VAL$ "STR ... $(INT (n/d),d/2)+FN b$(n-d*INT (n ... -255): ";n
    30 PRINT FN b$(INT (n/16),4 ... );FN b$(n-16*INT (n/ ...
    mcleod_ideafix mcleod_ideafix October 2010 Sinclair Basic
  • variable variable names with VAL$It's possible to make the RH-side variable names in a LET statement be themselves variable by using VAL$. Thus, if v$ holds the [b]name[/b] of anothe…

    [QUOTE=Dr BEEP;483699][code]
    1 let b$="hello"
    2 let v$="b$"
    3 let a$=VAL$ v$
    4 print a$
    [/code][/QUOTE]

    Very nice - scope for a [B]DEF FN[/B] there ?!
    jp jp October 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... valid concern about recursion scalability. For instance, if sorting 10, ... /> 4070 RETURN
    5000 FOR i=1 TO n: PRINT ... i: PRINT : RETURN
    9000 DEF FN t()=(PEEK 23672+256*PEEK ... provide exactly the same implementation for processing the right partition ...
    Einar Saukas Einar Saukas October 2010 Sinclair Basic
<1…567891011…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