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

    Here's an updated version of FN m$() which handles string slicing in both destination & source. It's a ... [b]bit[/b] longer than before, but half of it is comments, examples, definitions and setup. Using the function just requires one line, as before ...
    Battle Bunny Battle Bunny April 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…

    ... the pseudo-string in the DEFADD workspace must have been addressing ...
    Battle Bunny Battle Bunny June 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…

    ... works) is to reset the DEFADD system variable to zero before ...
    Paddy Coleman Paddy Coleman June 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…

    ... br /> 2a0b5c LD HL,(5c0b) ; DEFADD
    010400 LD BC,0004 ... RET
    [/CODE]

    DEFADD is the address of arguments ... evaluated; otherwise 0.
    DEFADD+04 is the value of ... the integer b passed
    DEFADD+04+24 is the address ...
    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…

    ... all variables are vectorized from DEFADD and because the thread begun ...
    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…

    ... /> 5b00 dd2a0b5c LD IX,(5c0b) ; DEFADD
    5b04 010000 LD BC ...
    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…

    ... the VARS area rather than DEFADD and there they are not ...
    Battle Bunny Battle Bunny September 2011 Sinclair Basic
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... />
    ;Variables del sistema
    DEFADD equ 5c0bh

    ;Tokens ... /> Main proc
    ld hl,(DEFADD)
    inc hl
    inc ...
    mcleod_ideafix mcleod_ideafix October 2011 Sinclair Basic
  • AND,XOR,OR,BIT,RES,SET,CPL,NEG,RLC,RRC,SLA,SRL,RL, RR,SRA for BASICAs this was drifting away from the original INKEY$ thread I thought that I'd create a new one. So here's a routine to provide all of the above mentio…

    ... pick up parameters from the DEFADD area simplifies the syntax, as ...
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • DATA vs PRINT and OVERjust messing about and came across this alternative way of drawing a map....now before I start mucking about with my actual program.....is there any …

    ... the DATA and using a DEFADD (PEEK 23563+256*PEEK 23564 ... quicker, as the ROM checks DEFADD for variables before it checks ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • stuck on recursive functionI want this function to PEEK 'l' bytes from memory starting at 's' and return them as a string, but however much I fiddle about with quoting and pare…

    ... each iteration creates a new DEFADD area for its version of ...
    Battle Bunny Battle Bunny February 2012 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…

    ... ;525373]No need to set DEFADD back to 0!
    Also ...
    Paddy Coleman Paddy Coleman February 2012 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…

    ... memory anywhere as long as DEFADD points to that address? If ...
    Paddy Coleman Paddy Coleman February 2012 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…

    ... />
    Using a separate DEFADD area to hold single letter ... assignments won't work but DEFADD variables will still be ... searched first by LOOK_VARS when DEFADD is non-zero.
    ... subscripted, as SCANNING deals with DEFADD variables differently and doesn't ...
    Battle Bunny Battle Bunny February 2012 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…

    ... />
    Using a separate DEFADD area to hold single letter ... assignments won't work but DEFADD variables will still be ... searched first by LOOK_VARS when DEFADD is non-zero.
    ... subscripted, as SCANNING deals with DEFADD variables differently and doesn't ...
    Paddy Coleman Paddy Coleman February 2012 Sinclair Basic
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    Looks like another job for the DEFADD trick. I'll leave PC to answer this one, as I haven't had my breakfast yet, and there might be a simpler method which a lack of Cheerios is concealing from me.
    Battle Bunny Battle Bunny March 2012 Sinclair Basic
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    ... we need to alter the DEFADD (23563 & 23564) system variable ... an empty string and the DEFADD system variable to its default ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • Poking a string to memory...I'm looking to poke a string of characters including colour control codes to memory, I'm currently doing it by hand: 16,2,19,1,22,1,1,144 That equa…

    ... /> The four bytes in the DEFADD area used for the location ... 50000 of 1000 bytes the DEFADD workspace values would be:
    Battle Bunny Battle Bunny March 2012 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…

    ... 63785. I then simply set DEFADD to point to this memory ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • New project: CargandoLeches. Ultraloads with ROMHi This project has started months ago, between decicoder, macleod and me. Uses the best modulation of k7zx (throwing shavings). But this ultraloa…

    ... programs into a tape. "CargandoLeches" codification don't support tapes.
    mcleod_ideafix mcleod_ideafix March 2012 Development
  • New project: CargandoLeches. Ultraloads with ROMHi This project has started months ago, between decicoder, macleod and me. Uses the best modulation of k7zx (throwing shavings). But this ultraloa…

    ... programs into a tape. "CargandoLeches" codification don't support tapes.
    mz-fuzzy mz-fuzzy March 2012 Development
  • BASin v.15 DEF FN bugThe bug would appear to be in "BASSupport.pas : Procedure ProcessDEFFN"; as it's not inserting the 6-byte variable place holder after each parameter …

    ... error" when called because the DEFADD variables area for the FN ...
    Battle Bunny Battle Bunny April 2012 Emulators
  • BASin v.15 DEF FN bugThe bug would appear to be in "BASSupport.pas : Procedure ProcessDEFFN"; as it's not inserting the 6-byte variable place holder after each parameter …

    ... error" when called because the DEFADD variables area for the FN ...
    Arda Arda April 2012 Emulators
  • 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…

    ... ]

    The address of DEFADD will point to the parameters ...
    BloodBaz BloodBaz 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…

    ... $ string definition pointed to by DEFADD.

    I've a ...
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • Need to scroll one column using m.c.I've used many of the available routines to scroll the entire screen in any direction, but I'm not being able to find one that would allow me to scro…

    ... /> SL2: ld ix,(23563) ;IX=(DEFADD)

    NEXTROW:ld b ...
    Battle Bunny Battle Bunny May 2012 Development
  • number padding functionI wrote a number padding function in BASIC a while ago, but when I came to want it again I couldn't find it, so I've done this enhanced [url=http://w…

    ... /> PADNUM: ld hl,(23563) ;HL=(DEFADD)
    push hl
    inc ... ;STK_FETCH
    pop ix ;IX=(DEFADD)
    ld a,"E"
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • question re. STR$ bugCould someone point me to whereabouts in the ROM this goes wrong? [code]PRINT PAPER 5;1;STR$ 234[/code] (Only the "1" prints in cyan.) It's not the m…

    This routine (48 bytes) provides a BASIC replacement for STR$ which fixes those two bugs; use "FN s$(numeric_expression)" instead of "STR$ numeric_expression". I copied the ROM's method used in CIRCLE & DRAW for checking -1
    Battle Bunny Battle Bunny May 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... are using the DATADD and DEFADD system variables here. Can you ...
    Paddy Coleman Paddy Coleman May 2012 Sinclair Basic
  • General purpose full screen input routineHi Folks, One of the things that annoyed me back in the 1980s with most BASICs was the lack of a full screen "formatted" input function. You could …

    ... are using the DATADD and DEFADD system variables here. Can you ...
    Dr BEEP Dr BEEP May 2012 Sinclair Basic
<1234>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 4:10PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

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