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 431 results in 0.001s
<1234567…15>
  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…

    ... /> #define DEFB .BYTE
    #define DEFW .WORD
    #define DEFS .BLOCK ...
    robpearmain robpearmain August 2004 Development
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it Note, for 48k spectrum using TASM [code] ; ***********…

    ... /> #define DEFB .BYTE
    #define DEFW .WORD
    #define DEFS .BLOCK ...
    robpearmain robpearmain August 2004 Development
  • Smooth Color Masked Sprites using fast page flip on 48kHere is a quick demo of using char based sprites using the Page flip method: a) Background is copied to buffer b) Sprites drawn on buffer c) Buffer …

    ... /> #DEFINE DEFB .BYTE
    #DEFINE DEFW .WORD
    #DEFINE DEFS .BLOCK ... /> RET

    deoff:
    DEFW 0



    robpearmain robpearmain September 2004 Development
  • Smooth Masked Sprites using fast page flip on 48k Part 2Ok, After all the suggestions in Part 1, which were all excellent (Thankyou), I opted on the following: I have 2 x 6k Offscreen areas (Yes, that's …

    ... /> #DEFINE DEFB .BYTE
    #DEFINE DEFW .WORD
    #DEFINE DEFS .BLOCK ... /> RET

    deoff:
    DEFW 0



    robpearmain robpearmain September 2004 Development
  • Smooth Screen Scrolling RoutineHi everyone, this is a follow up to the thread on smooth screen scrolling. As promised here is the code for the routine. It's pretty long and fairl…

    ... background data

    DEFW B1,0,B1,0,B1 ... background data

    DEFW B2,B1,B2,B1,B2 ... background data

    DEFW 0,B2,0,B2,0 ... background data

    DEFW B2,B1,B2,B1,B2 ... /> RET

    SCRPOS DEFW 0
    BLFLAG DEFB 0 ...
    dmsmith dmsmith September 2004 Development
  • Anyone help re-factoring a tile functionI had some excellent feedback for re-factoring my function that displays the colour for my screen tiles. Can anyone offer some help to improve the fu…

    ... MAPLOOKUP DEFW TILEIMAGE0 ; Empty
    DEFW TILEIMAGE1 ; Default
    DEFW TILEIMAGE2 ... ; Up
    DEFW TILEIMAGE3 ; ...
    Mr Millside Mr Millside February 2005 Development
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... holds RND value
    seed defw 0
    [/code]

    Dr BEEP Dr BEEP August 2005 Development
  • MC TipPlace your MC tip here: Here is my first: When using alternate registers (EXX) the HL register must not be affected on return to BASIC. Also the IY…

    ... /> exx
    ret
    savehl defw 0
    [/code]
    Dr BEEP Dr BEEP November 2005 Development
  • Optimisation Needed! Is this the Fastest way to copy bytes from screen and back again?I have the screen address (say 0,0 i.e 16384) I want to copy 4 bytes wide by 32 bytes high from the screen to an area of memory. I then want to cop…

    ... />
    ret

    spstore: defw 0

    copy2screen:
    robpearmain robpearmain November 2005 Development
  • In Machine Code, what is the quickest way to sort bytes?I am playing around with some ordering of sprites, where I want to order them by vertical position. I used some Rodnay Zaks code to order some bytes…

    ...
    ret

    temp: defw 0

    numbers:
    robpearmain robpearmain August 2006 Development
  • Disassemblers and RSTsI think this is a longshot, but... is anybody aware of a disassembler that handles the Interface One RSTs? e.g. RST $10 DEFW $0020. Cheers

    I think this is a longshot, but... is anybody aware of a disassembler that handles the Interface One RSTs? e.g. RST $10 DEFW $0020.

    Cheers
    jp jp April 2007 Development
  • Help hacking Split PersonalitiesI`ve been hacking away at Split Personalities for the purpose of putting new screens and graphics (items). The current screen is at 41187 and is 160…

    ... /> org 53901
    defw 54562 ; Ronald Reagan
    defw 54596 ; Margaret Thatcher ...
    defw 54631 ; Neil Kinnock ...
    defw 54669 ; Sir Clive ...
    FrankT FrankT July 2007 Games
  • sound effect code causing crash[FONT=Courier New]I have just written this piece of code to produce a lazer sound effect but for some reason it is causing a crash and I can't figure…

    ...
    RET

    SOUNDPOS DEFW SOUNDDATA
    LAZERFLAG DEFB 0 ...
    dmsmith dmsmith July 2007 Development
  • So... you want to format your 3.5" as 720K eh?Well, i've been trying to get hold of an application to make proper use of my 3.5" +3 floppy disks but i haven't been able to find any. I stumbled up…

    ... ,2

    XDPB DEFW $24 ; XDPB for the DSDD ... /> DEFB $00
    DEFW $0164
    DEFW $00FF
    DEFB $C0 ... /> DEFB $00
    DEFW $0020
    DEFW $0001
    DEFB $02 ...
    NaMcO NaMcO December 2008 Development
  • Understanding the StackSorry folks. I guess I'm going to be a pain for a little while. Hope it's ok with everyone. I'm currently studying the stack and wrote the little pr…

    ...
    ret

    spp defw 0000h[/CODE]

    This ...
    rahtgaz rahtgaz January 2009 Development
  • Machine Code Microdrive File LoaderI've been experimenting with transferring games to run from microdrive. Typically I like to see a loading screen while things are happening, and I li…

    ... ),a
    rst $10
    defw $0d6b
    ;
    ld a ...
    jp jp August 2009 Development
  • Spin Assembler DirectivesLeading on from [URL="http://www.worldofspectrum.org/forums/showpost.php?p=402514&postcount=65"]jp's recent post in Spin 0.7 Public Testing thread[/U…

    ... bytes.

    [B]DEFW:[/B]
    DEFW a,b,... ;Specify literal ... -bit) numerically.
    DEFW "A" ;Equivalent to 'DEFW 65'.
    DEFW "ABC" ;Equivalent ...
    RoseCotton RoseCotton November 2009 Emulators
  • Help?Hi All, I wonder if anyone has a few minutes to look at this bit of code I'm working on. I'm trying to move to sprites and want to do it with a scr…

    ... /> defw 16640
    defw 16896
    defw 17152
    defw 17408
    defw 17664
    defw ... 17920
    defw ...
    R-Tape R-Tape January 2011 Development
  • binutils questionSince there's a few people using binutils these days I thought I'd give it a go and see whether it solves my hunt for a replacement assembler/librari…

    ...

    ...

    pos: defw 0
    [/code]

    dom dom June 2011 Development
  • 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; …

    ... /> ;terminated by 0000
    CHANGE: defw MODA00+1,CALLSR,$0000
    Battle Bunny Battle Bunny August 2011 Development
  • Getting the contents of tablesHi All, I'm risking a potentially daft question here as it seems pretty fundamental but here goes: What's the best way of pointing register pairs a…

    ... /> position defw row0
    defw block2
    defw row1
    defw block3
    defw row2 ...
    R-Tape R-Tape October 2011 Development
  • 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…

    ... variable (if assigned)
    OPERATE:defw $0000 ;opcodes go here
    Battle Bunny Battle Bunny October 2011 Sinclair Basic
  • joining lines of BASICDue to overwhelming demand - well, one demand - well, more of a suggestion, really - here's a routine to join together lines of BASIC. The vertical c…

    ...
    ORG K48
    VECTOR: DEFW K48+2
    RST $38 ...
    Battle Bunny Battle Bunny February 2012 Sinclair Basic
  • 28-character wide multicolour(ish) on 48k SpectrumLong-time lurker here... I've always been interested in rainbow effects on the 48k Spectrum, mainly from a perspective of "Just what [I]would [/I]ha…

    ...
    HIATT DEFW 0
    VALSP DEFW 0
    DEFW 0

    AMW AMW April 2012 Development
  • Byte-order backbufferThis is a tool for Z80 coders who wish the Spectrum screen had a serial layout. It runs as an interrupt mode 2 service routine and uses POP and PUSH …

    ... ; jp endcall
    endcall:
    defw endcall

    ; the next ... /> org 0xfff7
    sp_cache
    defw 0x0000 ; store cache

    chev chev April 2012 Development
  • Jelly-Vision!As threatened in the "'Spectrum Play' Error" thread, here's a ruff'n'reddy interrupt driven full screen wobbling routine which has no practical use w…

    ... />
    org $80ff ;33023
    defw WOBBLE

    WOBBLE: di ...
    Battle Bunny Battle Bunny June 2012 Sinclair Basic
  • syntax checking helpcan anyone help with syntax checking, its been a while since I did any basic extension coding this routine always gives :C nonsense in basic error …

    ... br /> [CODE] RST CALBAS
    DEFW EXPT_EXP
    RST CALBAS
    RST CALBAS
    DEFW NEXT_2NUM ;EVAL START,LENGTH
    RST CALBAS
    DEFW FIND_INT2
    LD (CLENGTH), ... br /> RST CALBAS
    DEFW FIND_INT2
    LD (CSTART), ...
    madvanman madvanman October 2012 Development
  • Works in Fuse & SpecEmu, not ZXSpinI decided that I wanted to change the scroll routine which I was using for compiling the Trailblazer maps, as I'd just copied it out of Andrew Hewson…

    ... ,$00,$00
    defw NULLS
    HI: defw $4000,$4020,$4040,$4060 ... ,$40a0,$40c0,$40e0
    MID: defw $4800,$4820,$4840,$4860,$4880 ... ,$48a0,$48c0,$48e0
    LO: defw $5000,$5020,$5040,$5060,$5080 ...
    Battle Bunny Battle Bunny June 2013 Emulators
<1234567…15>

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
defw 431 4K

Related Searches

  • defw defb defs
  • table defw 16bit

Copyright © 2024 World of Spectrum