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.002s
<1234567…34>
  • Learning Assembly LanguageHow easy would it be to learn assembly language for someone who has a decent grasp of Basic? I mean how long do you think it would take before I coul…

    ... br />

    string defb " HELLO!" ; Test string
    ... DEFB: Define BYTE - 8 BITS of data.
    DEFW ... : Define WORD - 16 BITS of data.
    DEFS ... versions for 'DEFB', 'DEFW' and 'DEFS' such as ...
    ASM ASM November 2010 Development
  • Learning Assembly LanguageHow easy would it be to learn assembly language for someone who has a decent grasp of Basic? I mean how long do you think it would take before I coul…

    ... .
    DEFB: Define BYTE - 8 BITS of data.
    DEFW: Define WORD ... - 16 BITS of data.
    DEFS: Define space ... are also alternative versions for 'DEFB', 'DEFW' and 'DEFS' such as 'DB', 'DW ...
    ASM ASM November 2010 Development
  • Scrolling Bi-Colour Engine for 4-Player GamesJust putting this code up for people to have a look at. Far from finished. Should simply compile and run a bit of a demo. Only good for 128K and +…

    ... /> DEFB 00000000b;' '
    DEFB 00000000b
    DEFB 00000000b
    DEFB 00000000b
    DEFB 00000000b
    DEFB ... ,colour_map_A_block
    defs 24,00001001b
    defw $+8
    defs 6,00000000b
    joefish joefish March 2014 Development
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... , nested conditional assembly/repeats, full DEFB/DEFS support. Imported from the latest ...
    Dunny Dunny June 2005 Emulators
  • ANNOUNCE: BASin Release 12 ready for downloadWell, after a rather large break, BASin's latest incarnation is ready for public use. Probably. BASin is a Sinclair Spectrum development environme…

    ... , nested conditional assembly/repeats, full DEFB/DEFS support. Imported from the latest ...
    Dunny Dunny June 2005 Sinclair Basic
  • converting mp3 to zx importfile.is it possible?Hi peeps I am just looking through old threads and browsing through music tools on the zx in particular converting or creating ,what i am looking for…

    ... recognised on import) are: org defw defb end
    A tune specified ...
    defw Gf732
    defb 0FEh ;Call subroutine
    defw Gf742
    defb 03eh ... ,00ah
    defb 03bh,00ah
    defb 03eh ...
    jammajup jammajup March 2012 Development
  • Sound programs that use +3DOS/AssemblerHi I am working on my final JSWed project and have nearly finished but i am considering changing the standard in game tune you get,the editor instruc…

    ... on import) are:
    org defw defb end

    A tune ...
    defw Gf732
    defb 0FEh ;Call subroutine
    defw Gf742
    defb 03eh ... ,00ah
    defb 03bh,00ah
    defb 03eh ...
    jammajup jammajup April 2013 Development
  • 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
    ORG 0FA00h

    DEFB 00h,20h,40h,60h,80h ...
    ORG 0FB00h

    DEFB 40h,40h,40h,40h,40h ...
    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
    ORG 0FA00h

    DEFB 00h,20h,40h,60h,80h ...
    ORG 0FB00h

    DEFB 40h,40h,40h,40h,40h ...
    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
    DEFB %11000011,%00000000
    DEFB %11111111,%00000000


    BACKGROUND:
    DEFS ...
    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
    DEFW 0






    OKTOFLIP:
    DEFB ... DEFB 255, 0
    DEFB 255, 0
    ORG 0C800h

    DEFS ...
    robpearmain robpearmain September 2004 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:
    store:
    defs 128


    gfx:
    defb 255,255 ... ,0,1

    defb 128,0,0,1
    robpearmain robpearmain November 2005 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…

    ... DEFM ;See DEFB

    [B]DEFS:[/B]
    DEFS a ;Reserve ... bytes (see 'EQU').
    DEFS 1+2*3 ;Reserves NINE ... DEFS 1+(2*3) ;Reserves seven bytes.

    [B]DEFW:[/ ... /> DEFW "A" ;Equivalent to 'DEFW 65'.
    DEFW "ABC" ;Equivalent to 'DEFB "ABC ...
    RoseCotton RoseCotton November 2009 Emulators
  • Scrolling Bi-Colour Engine for 4-Player GamesJust putting this code up for people to have a look at. Far from finished. Should simply compile and run a bit of a demo. Only good for 128K and +…

    ... .

    MACRO PAGE_ALIGN
    defs (65536-$)AND 255
    ENDM ...
    joefish joefish March 2014 Development
  • Help with Assembly - DEFB, etc.Dear all, I'm going through Jnathan Cauldwell's tutorial and find myself scratching my head at part I can't find a decent explanation of anywhere! E…

    ...
    ret

    string defb 22,21,31,'!'
    eostr ... into laymans terms, what DEFB and DEFW actually do and how one ...
    Tobo Tobo September 2014 Development
  • A great ROMBack in the early 90s my ZX clone (called "Cobra" if anyone's interested) had a sort of a "SamRam" (actually an alternate ROM accessed via a NMI) tha…

    If anyone's interested, I've also discovered the following things about the ROM's assembler:

    - compresses codewords
    - supports ENTry point and DISPlacement
    - supports DEFB, DEFW, DEFS, DEFM.
    GOC GOC August 2003 Sinclair Miscellaneous
  • TASM, Z80 and Spec emusHi! Having some novice questions here regarding TASM and writing machine code for the Speccy emus... Now I have configured TASM into my EditPlus and…

    ... you use DEFB (for byte), DEFW (for word/16-bit) or DEFS (for ...
    ekoman ekoman July 2004 Development
  • TASM, Z80 and Spec emusHi! Having some novice questions here regarding TASM and writing machine code for the Speccy emus... Now I have configured TASM into my EditPlus and…

    ... you use DEFB (for byte), DEFW (for word/16-bit) or DEFS (for ... a file object, not use DEFB et al - (which may also ...
    cyborg cyborg July 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
    ORG 0FA00h

    DEFB 00h,20h,40h,60h,80h ...
    ORG 0FB00h

    DEFB 40h,40h,40h,40h,40h ...
    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
    DEFB 72
    DEFB 72
    DEFB 144
    DEFB 144
    DEFB 216
    DEFB ...
    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

    HL1: DEFW 0
    HL2: DEFW 0
    COUNT: DEFB 0

    OKTOFLIP:
    DEFB 0 ...
    robpearmain robpearmain September 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
    DEFB %11100111,%00000000
    DEFB %11111111,%00000000


    BACKGROUND:
    DEFS ...
    robpearmain robpearmain September 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
    DEFW 0




    COUNT: DEFB 0
    DEFB 255,0

    ORG 0D800h

    DEFS 1000h ...
    robpearmain robpearmain September 2004 Development
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... ]
    #DEFINE DEFB .BYTE
    #DEFINE DEFW .WORD
    #DEFINE DEFS .BLOCK
    DEFB 0
    _Sprite_ScreenAddr: DEFW 0
    _Sprite_LastScreenAddr: DEFW 0
    _Sprite_Gfx: DEFW 0 ... ; Sprite X
    DEFB 130 ; Last X
    DEFW 16384 ; Last Screen ...
    robpearmain robpearmain October 2004 Development
  • Noob to Z80 needing +3 helpI'm quite new to z80 programming, but i'm attempting to write some kind of windowing system that will run alongside BASIC on my +3 with Kempston mous…

    ... /> [code]
    defb === put byte(s) here
    defw === put 16-bit ... word(s) here
    defs === make ... />
    [code]
    flag:
    defb 0 ; flag has default 0 ... other than a quote
    defb 0 ; I like to terminate ...
    Alcoholics Anonymous Alcoholics Anonymous January 2007 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…

    ... : 'DEF'; I: 171),
    (S: 'DEFB'; I: 20), (S: 'DEFINE'; I ... : 'DEFS'; I: 22),
    (S: 'DEFSW'; I: 173),
    (S: 'DEFW'; I ...
    Dunny Dunny November 2009 Emulators
  • 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…

    ... : 'DEF'; I: 171),
    (S: 'DEFB'; I: 20), (S: 'DEFINE'; I ... : 'DEFS'; I: 22),
    (S: 'DEFSW'; I: 173),
    (S: 'DEFW'; I ...
    jp jp November 2009 Emulators
<1234567…34>

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
defb 1.1K 15.2K
defs 207 489

Related Threads

  • DEFB on ZX SpinIs there any way I can define a 2 bit value i.e. 50000 using defb on ZX Spin?<br /> <br /> I'm sick of having to work the 2 separate values out i.e. …
  • Help with Assembly - DEFB, etc.Dear all,<br /> <br /> I'm going through Jnathan Cauldwell's tutorial and find myself scratching my head at part I can't find a decent explanation of…
  • Reading DEFB for backgroundsHi all<br /> <br /> I suppose the question is kind of silly but I'm a completely newbie with assembler :-S<br /> I'm drawing some side backgrounds…

Related Searches

  • defb
  • defb array
  • defw
  • table defw 16bit
  • defs
  • paintbrush asm defb
  • defb backgrounds

Copyright © 2024 World of Spectrum