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 104 results in 0.000s
<1234>
  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt) where, at the time: mcworkspac…

    ... .

    Now, in the DEFADD area the 1st and 3rd ...
    Battle Bunny Battle Bunny July 2010 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…

    ... s$=a$:
    POKE defadd,0: POKE defadd+1,0
    50 ... a$=s$:
    POKE defadd,0: POKE defadd+1,0: PAUSE 0 ... because LOOK-VARS searches the DEFADD area (where FN variables are ... 6912. It then POKEs the DEFADD system variable (otherwise zero when ...
    Battle Bunny Battle Bunny April 2011 Sinclair Basic
  • Speeding up select processing...Hi Folks, I have the following code in my program and it works fine but is rather "sluggish". I have even moved it to the beginning of the program …

    ... the attributes (s$). Resets the DEFADD system variable.

    I ...
    Paddy Coleman Paddy Coleman June 2011 Sinclair Basic
  • saving part of a BASIC programHere's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to …

    Here's a short routine to save part of a BASIC program. The idea is that it can be merged into a program and then used to save sub-routines, etc. to be combined or merged into other programs. It's sort of a slow version of copy & paste. The two line ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • storing machine code in BASICA couple of years ago I posted a routine for storing machine code between PROG & VARS, based on an idea in Toni Baker's "Mastering Machine Code". Thi…

    ... resolve this the routine assigns DEFADD to the display file and ... them, as the interpreter searches DEFADD before VARS. The FN d ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • more on storing mazesPrompted by Wookiee's escapades, I've been pondering on how to use DATA statements directly for displaying background graphics, thus avoiding the dup…

    ... udg=FN p(23675): LET defadd=23563: LET datadd=23639

    REM assign a DEFADD entry for m$
    30 ... />
    45 POKE defadd,FN g(udg): POKE defadd+1,FN h ... m
    80 POKE defadd,0: POKE defadd+1,0
    [/code ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • simplest method to pass a string to m/code?The statement "RANDOMIZE numvar+USR mc" is a simple way of passing a single numeric parameter to a m/c routine, as mc can retrieve numvar from the to…

    ... DEF FN statement using the DEFADD pointer; but that needs two ...
    Battle Bunny Battle Bunny April 2012 Sinclair Basic
  • Screen2StringFurther to writing that BASIC one-liner to redirect CAT to a string I thought that I'd do a general redirection routine for anything which normally p…

    ... CLEAR appropriately
    REM 23563=DEFADD; 23631=CHANS; 23730=RAMTOP
    DEFADD pointer to string definition
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • A Miscellany of Dangerous TipsHere's a selection of ideas for using some of the more obscure system variables which I've found handy on occasion. They can be very convenient if us…

    ... be referenced by assigning the DEFADD system variable to point to ... the sub-routine by assigning DEFADD appropriately at some time beforehand ... . As the DEFADD area is searched before the ... resetting the hi-byte of DEFADD on return so that the ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • SCREEN$ bug fixI've been using the SCREEN$() function recently for reading data off the screen rather than taking up space with an array and I got fed up with the s…

    ... /> ScrDol: ld hl,(23563) ;HL=(DEFADD)
    push hl
    inc ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • that "listing variables during runtime" thingWell, I did eventually finish this, but with my meds playing up I don't have much time each day that I can spend at the computer, so it's taken rathe…

    ... called from elsewhere a dummy DEFADD space needs to be assigned ...
    Battle Bunny Battle Bunny November 2013 Sinclair Basic
  • Random-Access to Microdrive FileI am working on a BASIC program to backup a microdrive text-file to standard tape array-file. To backup a text-file from one microdrive to a secon…

    ... TO 253
    320 POKE DEFADD,FN l(udg):
    ... a$:
    POKE DEFADD,0:
    POKE DEFADD+1,0
    ... a$:
    POKE DEFADD,0:
    POKE DEFADD+1,0
    ... $=s$:
    POKE DEFADD,0:
    POKE DEFADD+1,0
    ...
    mattsteel mattsteel May 2018 Sinclair Basic
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    This is what I've compiled so far:

    [quote]Resources
    =========

    * Make all caps
    ---------------

    You can turn CAPS LOCK on or off using a simple poke to 23658:

    POKE 23658,8: REM CAPS ON
    ...
    na_th_an na_th_an April 2005 Development
  • how to pass arguments from Basic to MC ?can someone explain me (or give some link) how to pass arguments from basic to machine code? i mean something like this: PRINT USR xxxxx, arg1, arg2:…

    ... , look up the system variable DEFADD. The value of your parameter ... the address pointed to by DEFADD. For the precise details, see ...
    gasman gasman April 2006 Development
  • DEF FN DirectivesI am looking at using some machine code functions from the DK Graphics Pack. They are machine code but they are called via Basic with the function de…

    ... at address stored in the DEFADD (23563) system variable which points ... of your parameters into the DEFADD system variable, then call the ...
    icabod icabod December 2007 Development
  • DEF FN DirectivesI am looking at using some machine code functions from the DK Graphics Pack. They are machine code but they are called via Basic with the function de…

    ... in memory by BASIC and DEFADD set to point to that ... address pointed to by the DEFADD sysvar.
    icabod icabod December 2007 Development
  • +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…

    ... , (23563) ; 49066 42 11 92 ;DEFADD holds start of FN o ...
    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…

    ... it works. It references the DEFADD system variables area to get ...
    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

    ... start_address
    LD HL,(23563) ;DEFADD address of first character after ...
    GReW GReW August 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…

    ... and key offset from the DEFADD workspace, putting them in HL ...
    Battle Bunny Battle Bunny September 2010 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…

    ... , so I knew how the DEFADD area was laid out. I ... instead of working with the DEFADD space assigned by the ROM ... user-defined FN by POKEing DEFADD with an address where I ... knew that LOOK-VARS checks DEFADD and if it's not ...
    Battle Bunny Battle Bunny 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…

    ... =source: LET dl=length: LET defadd=23563
    ...[/code]
    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…

    ... is set up the dummy DEFADD area, allocated in line ... section of the dummy DEFADD area is assigned an ... vars=FN p(23627): LET defadd=23563
    32 LET ... br /> POKE defadd,FN l(deftmp): POKE defadd+1,FN h ... LET S$=B$: POKE defadd,0: POKE defadd+1,0: RETURN :< ...
    Battle Bunny Battle Bunny 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…

    No need to set DEFADD back to 0!
    Also ...
    Dr BEEP Dr BEEP 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…

    ... variable was found in the DEFADD area then Stack Variable is ...
    Battle Bunny Battle Bunny 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…

    ... variable was found in the DEFADD area then Stack Variable is ...
    Paddy Coleman Paddy Coleman April 2011 Sinclair Basic
<1234>

Latest Posts

  • Frankie's ZX Spectrum Digouts
    Zup on 1:58PM
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on 1:02PM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 12:42AM
  • 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
  • Tradtional games that were not programmed on the ZX Spectrum
    harriusherbartio on April 6

HitBox

Word Docs Hits
defadd 102 200
codification 2 2

Related Threads

  • problem with DEFADD storageI have a function: DEF FN t(t$,m,t)=USR t<br /> which is called with, for an example: LET bc=FN t("t$()",mcworkspace,mcputt)<br /> where, at the time…

Related Searches

  • fn defadd
  • defadd
  • defadd trick
  • defadd 97
  • defadd manual

Copyright © 2024 World of Spectrum