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
<1…78910111213…34>
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... ;stack 3
    defb $05 ;divide
    defb $38 ;end_calc
    ... /> ret

    BINsize:defw 2040 ;length of number in ... & 6
    BYTsize:defw 255 ;length of number in ...
    Battle Bunny Battle Bunny December 2013 Development
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... ;stack 3
    defb $05 ;divide
    defb $38 ;end_calc

    BINsize:defw 2040 ;length of binary number ... must = 8*BYTsize
    BYTsize:defw 255 ;length of binary number ...
    Battle Bunny Battle Bunny December 2013 Development
  • About how z88dk generates code and makes room for variables.When you attempt to code games for the 128K models using z88dk in C you need to somewhat control where variables are stored in memory. I thought tha…

    ... :
    asm
    defb 0 ;'gold
    defw 45 ;' life
    end ...
    LCD LCD January 2014 Development
  • Idiots Guide......To machine code, or assembler language...whatever the appropriate term is Basically at this stage I want to fiddle about and try and get used to…

    ... (memory addresses), global arrays (defs), global integers (defw), local variables (items pushed ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... wherever (249 bytes)

    defw SetBLOCK
    ;enter here to ... /> ret
    BlockData:
    DEFB $00,$00,$00,$00,$00 ... ,$00,$00,$00
    DEFB $0F,$0F,$0F,$0F,$00 ... 00,$00,$00
    DEFB $F0,$F0,$F0,$F0,$00 ...
    Battle Bunny Battle Bunny February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... /> defb 17,7 ;INK 6 command
    Defb 17,8
    defw ' ... TESTING'
    defb 32
    defw 'MORE ... TESTING'
    eostr equ $

    udg
    DEFB 0 ...
    alienbanana alienbanana February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... />
    dat defb 22 ;AT command
    defb 1,1 ;co ... defb 17,[B][I]0[/I][/B] **
    defw 'TESTING'
    defb 32 ...
    defw 'MORE TESTING'
    eostr equ $

    udg
    DEFB 0 ...
    Morkin Morkin February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ...
    dat defb 22 ;AT command
    defb 1,1 ;co ... defb 17,[B][I]0[/I][/B] **
    defw 'TESTING'
    defb ... 32
    defw 'MORE TESTING'
    eostr equ $

    udg
    DEFB ...
    rich_chandler rich_chandler February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... ;751277]
    Don't use DEFW for strings that's for ... .[/QUOTE]

    or just defb. I've never seen the ...
    guesser guesser February 2014 Development
  • A z88dk + sp1 demo (with source)Since nowadays people are still wondering about how difficult it is to make something in z88dk, I thought I just put a very simple demo to show how e…

    ... /> .....

    buffer:
    defs 6 ; space for 5 decimal ... rectangle

    rect_fullscreen:
    defb 0 ; y char coordinate 0 ... char coordinate 0-31
    defb 32 ; x width in ... characters
    defb 23 ; y height in characters ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Development
  • Tile routinesHi all, Please does anyone have any examples of tile routines in pure asm to set up maptile screens. I would like to try and understand them and ti…

    ... /> STRING
    defw 1

    graphic:
    DEFB 0,0,0 ... ,0,0,0,0
    DEFB 15,240,15,240,7 ... ,224,7,224
    DEFB 127,254,77,168,93 ...
    alienbanana alienbanana February 2014 Development
  • IF1Bis problems. The Edge of the Spectrum...Advice is sought from the learned on WoS. I just bought an Interface 1Bis from sunny South Africa. It arrived fast, but unfortunately doesn't work.…

    ... "
    0085 : 0e DEFB #0E
    0086 : 00000500 DEFW 0,CODE_S-LINE_0 ... "
    0092 : 0e DEFB #0E
    0093 : 0000535c DEFW 0,23635
    Dan Antohi Dan Antohi March 2014 Hardware
  • writing incrementally to tape without leadersI want to be able to write intermittently & incrementally to some sequential medium which is supported on any Spectrum (emulator, ie. tape); eg. [cod…

    ... /> RET
    OFFSET DEFB 0
    BUFFER DEFS 128[/code]

    Jonathan Harston Jonathan Harston March 2014 Development
  • Fast and easy read/write of attributes?What are the fastest or easiest ways to check the attributes of tiles on the screen, in BASIC? It seems to be a great way of storing object info. …

    ...
    posx: defb 3
    posy: defb 0
    attr: defb (4*8 ... , yellow ink
    ink: defb 6 ; Yellow ink
    ... /> bright: defb 0
    flash: defb 0
    byteloop: defw 2 ; number ... br />

    codeend: defb 77 ; just a marker for ...
    polomint polomint June 2014 Sinclair Basic
  • 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…

    Defb puts a byte value directly ... like your string.

    Defw does the same, but for ...
    AndyC AndyC September 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…

    ... would get if you wrote DEFB 62,15. But it would ... .

    By the way DEFB isn't Z80 command, it ... .BYTE and .WORD instead of DEFB and DEFW

    As for ...
    ret

    string defb 22,21,31,'!'[/CODE]
    Ralf Ralf September 2014 Development
  • ZX-Assembler file handling concept[QUOTE=clausjahn;777075]Dear readers, At this time, it's a good time to ask you, the future users, how to implement the file usage. Let's suggest so…

    ... />
    defw Routine1
    defw Routine2
    defw Routine3
    ...
    defb Routine1Len
    defb Routine2Len
    ...
    defb RoutineNLen
    defb Routine1Len
    ENDIF
    ...
    Alcoholics Anonymous Alcoholics Anonymous September 2014 Emulators
  • Creating a linked list in Z80[FONT=Calibri][SIZE=3]I am using a circular buffer to store tiles to be displayed on the screen. Tiles only appear for a set period of time, so when …

    ... define it

    list_1: defs 4 ;; four bytes for the ... : defs 4 ; two 2-byte pointers managed by list
    defb 6 ...
    Alcoholics Anonymous Alcoholics Anonymous October 2014 Development
  • Help needed with a bit of code...My minds gone blank again I'm afraid, I'm having trouble with this routine that loads variables into memory then calls the corresponding routine. Th…

    ... /> ret

    dat defw 56000
    defb 14,20,3

    defw 56000
    defb 5,5,6[/CODE]
    daveysludge daveysludge October 2014 Development
  • Help needed with a bit of code...My minds gone blank again I'm afraid, I'm having trouble with this routine that loads variables into memory then calls the corresponding routine. Th…

    ... /> ret

    dat defw 56000
    defb 14,20,3

    defw 56000
    defb 5,5,6
    spud spud October 2014 Development
  • Help needed with a bit of code...My minds gone blank again I'm afraid, I'm having trouble with this routine that loads variables into memory then calls the corresponding routine. Th…

    ... /> ret

    dat defw 56000
    defb 14,20,3

    defw 56000
    defb 5,5,6
    spud spud October 2014 Development
  • IX+n and self modifying code and pasmoI'm using pasmo and if I wanted to use ix+n like this: (ix holds the position to a sinus table) ld (symbol), a LD a, (ix+symbol) What I want to do…

    Something like this maybe?

    [CODE] ld (symbol),a
    ;
    defw $7edd ; ld a,(ix+...) op code
    symbol defb $00 ; the displacement
    ;
    [/CODE]
    jp jp January 2015 Development
  • Simple sprite inertiaDoes anyone have or can anyone point me to any good examples of sprite inertia (in assembly)? I'm not after anything vector related, just simple x,y…

    ... br /> DEFW GO_DOWN
    DEFB 223,1 ;P
    DEFW GO_RIGHT
    DEFB 223 ... ,2 ;O
    DEFW GO_LEFT
    DEFB 127 ...
    dmsmith dmsmith January 2015 Development
  • zx assemblers and syntax differencesHi I am using Zxspin and am using the Assembler editor. I am a novice and was wondering if there is a syntax manual for the zxspin assembler. I am…

    ... assembler directives e.g. org, defb, defw and use hex for numeric ...
    dbolli dbolli March 2015 Emulators
  • ZX-Assembler version 0.8 (beta) releasedDear readers, yesterday I've published ZX-Assembler in its first version 0.8. It offers you some interesting features, even if I know there are …

    ... ret
    data:
    defw 24500,24506[/code]
    ... br /> defb 201 ; ret
    data:
    defw 24500, ... be back-translated to DEFB instructions, eventually by
    ret ; defb 201
    data:
    defw 24500,24506[/code ...
    clausjahn clausjahn July 2015 Emulators
  • Games not compatible with the 128+ & grey +2Like the +2A & +3 thread, there are a few games that do not work correctly on the original 128+ and the grey +2. Two games that I know of that wil…

    ... cd 6e 5f $11ts
    defw $0100 ; 88f9 00 01 ts ...
    defw $fe00 ; 88fb 00 fe ts
    defb $fd ; 88fd ... cd 6e 5f $11ts
    defw $0100 ; 5b99 00 01 ts ...
    defw $fe00 ; 5b9b 00 fe ts
    defb $fd ; 5b9d ...
    jp jp October 2015 Games
<1…78910111213…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