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>
  • DEFB on ZX SpinIs there any way I can define a 2 bit value i.e. 50000 using defb on ZX Spin? I'm sick of having to work the 2 separate values out i.e. defb 80,195

    Is there any way I can define a 2 bit value i.e. 50000 using defb on ZX Spin?

    I'm sick of having to work the 2 separate values out i.e. defb 80,195
    daveysludge daveysludge April 2013 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 ... put into laymans terms, what DEFB and DEFW actually do and ...
    Tobo Tobo September 2014 Development
  • LINE-routine and other nice pieces of codeThe line-topic came in the end with a nice piece of fast coding. I think that there might be more of these routines out there (where-ever-u-r). Isn…

    ...
    DEFB #81,#83,#82
    DEFB #81,#83,#82
    DEFB #81 ... ,#83,#82
    DEFB #81,#83,#82 ...
    Dr BEEP Dr BEEP October 2001 Sinclair Miscellaneous
  • Pixel setting / general speccy codingi just started doing some cross-coding with the [url="http://www.bigfatpanda.fsnet.co.uk/z80.html"]Z80 SNA assembler[/url] and an emulator, and this …

    ... /> ret

    pixelmsk:
    defb 0x80, 0x40, 0x20, 0x10, 0x08 ...
    Lambchop Lambchop August 2004 Development
  • Calculate screenaddressWho knows where the topic about the fastest screenaddressroutine is? I can't find it in a search.. The fastest routine was to load a large table of …

    ...

    ORG 64000
    DEFB 0,0,0,0,0 ... ,2,2
    ...
    DEFB 31,31,31,31,31 ... />
    ORG 64256
    DEFB 0,0,0,0,0 ... ,32,32
    ....
    DEFB 224,224,224,224,224 ... />
    ORG 64512
    DEFB 64,65,66,67,68 ... 70,71 (8X)
    DEFB 72,73,74,75,76 ...
    Dr BEEP Dr BEEP August 2004 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…

    ... br /> ; ********************************************

    #define DEFB .BYTE
    #define DEFW .WORD ... 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] ; ***********…

    ... br /> ; ********************************************

    #define DEFB .BYTE
    #define DEFW .WORD ... 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 …

    ... 00000000
    DEFB %11000011,%00000000
    DEFB %10000001,%00011000
    DEFB %10000001,%00110100 ...
    DEFB %10000001,%00111100 ...
    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 …

    ... : DEFB 0
    YPOS: DEFB 0
    YOFFSET: DEFB 0

    YPOS1: DEFB ... /> DEFB 255, 0
    DEFB 255, 0
    DEFB 255, 0

    DEFB ... 255, 0
    DEFB ...
    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…

    ... 1st tile)

    B1 DEFB 0,0,1,2,4 ... ,128,128,128
    DEFB 15,112,128,0,96 ... 0,0,0
    DEFB 0,0,128,64,32 ... 2nd tile)

    B2 DEFB 128,128,128,128,64 ... ,128,112,15
    DEFB 0,0,0,0,0 ... /> SCRPOS DEFW 0
    BLFLAG DEFB 0


    ...
    dmsmith dmsmith September 2004 Development
  • The incredible shrinking screendumpIn this topic I stated that I would be impressed if the screendump could be smaller than 37 bytes. [url="http://www.worldofspectrum.org/forums/viewt…

    ... byte from screen
    table defb 13,27,"J",32 ; The ... printer control table
    defb 27,"K",192,0
    Dr BEEP Dr BEEP September 2004 Development
  • Help needed to speed up functionCan anyone help me to re-factor this code snippet. The "MAP" section holds information about which tiles go where on the screen (handled by another f…

    ... />
    ORG 55040
    COLOUR DEFB 20,30,40,50
    MAP DEFB 0,1,2,0,0 ... ,0,1,2,3
    DEFB 2,0,0,1,2 ... ,2,3,1,1
    DEFB 2,1,1,2,3 ... ,2,3,1,1
    DEFB 2,1,1,2,3 ...
    Mr Millside Mr Millside February 2005 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…

    ... ; Down

    TILEIMAGE0 DEFB 0,0,0,0,0 ... 82,170,170
    DEFB 149,82,170,170,149 ... 0,0
    TILEIMAGE2 DEFB 255,254,128,2, ... 18,171,170
    DEFB 147,146,171,170, ... 146,171,170
    DEFB 144,18,167,202, ...
    Mr Millside Mr Millside February 2005 Development
  • The SPIN AssemblerI am using the assembler in Spin but I am having a problem with "DEFS". I was hoping that it would allocate a section of memory but it doesn't seem t…

    ... correctly. When my code uses DEFB 0,0,0,0,0 ...
    Mr Millside Mr Millside February 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 ...
    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 ...
    Dunny Dunny June 2005 Sinclair Basic
  • 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…

    ...


    gfx:
    defb 255,255,255,255

    defb 128,0,0,1

    defb 128,0,0,1

    defb 128,0,0,1
    robpearmain robpearmain November 2005 Development
  • ROM paging questionAssuming the Spectrum 128 memory map and port addresses, but two custom ROMs in place of the normal Editor and BASIC, what is the most efficient way …

    ... which one) followed by a DEFB with the address of the ...
    chev chev January 2006 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…

    ... 0

    numbers:
    defb 2,2,40,7,255 ...
    robpearmain robpearmain August 2006 Development
  • Pixel Explosion CodeJust a little snippet to cause explosive effects. It uses table lookups for the screen address, and can handle up to 32 pixel particles. A particle…

    ... /> defb %10000000
    defb %01000000
    defb %00100000
    defb %00010000
    defb %00001000
    defb ...
    robpearmain robpearmain September 2006 Development
  • tips on optimizing assemblyI wrote a small routine to rotate right a whole screen character line complete with attributes. This is my third ever assembly routine, so I guess i…

    ... the rainbow

    linea defb 0 ; char row to be ...
    na_th_an na_th_an November 2006 Development
  • Mode 2 Tile Editor SourceA Timex Mode 2 Tile Editor incorporating a byte mirror table. The compiled version is available in the CSSCGC 2008 collection from the WoS archive. …

    ... 48896

    mirror_tbl:
    defb $00,$80,$40,$C0,$20 ... ,$30,$B0,$70,$F0
    defb $08,$88,$48,$C8,$28 ... ,$38,$B8,$78,$F8
    defb $04,$84,$44,$C4,$24 ... ,$34,$B4,$74,$F4
    defb $0C,$8C,$4C,$CC,$2C ... ,$3C,$BC,$7C,$FC
    defb $02,$82,$42,$C2,$22 ...
    chev chev January 2007 Development
  • RFC: 64 column font codeIn BASIC, type CLEAR 49999 then import the code at 50000. Then type RANDOMIZE USR 50000. This will create a new channel and attach stream #4 to it. A…

    ... flag
    rst 08h ;
    defb $0a ;

    crchk ... driver

    atflg: defb $00 ; AT flag
    ... row: defb $00 ; row
    col: defb $00 ; col ... />
    font:
    defb $00,$02,$02,$02,$02 ... 07,$02,$00;
    defb $00,$25,$71,$62,$ ...
    chev chev January 2007 Development
  • Currah MicroSource emulationIt appears to be impossible to emualte the MicroSource in software on the ZX Spectrum SE as hardware polling is required. The following patch is not …

    ... $1909

    uSource:
    defb $22,$72,$5c...

    chev chev March 2007 Emulators
  • 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…

    ... SOUNDDATA
    LAZERFLAG DEFB 0
    SOUNDDATA DEFB 200,205,210,215 ...
    dmsmith dmsmith July 2007 Development
  • Use of INPUT in MCI want to use the INPUT-command in MC and made the following code. [code] org 40000 dump 40000 ld hl,(#5c5d) push hl …

    ...
    ret

    input defb 34
    defm "Enter text ... "
    defb 34,";","f","$"
    [/code]
    Dr BEEP Dr BEEP November 2007 Development
  • It's a trap!So I got a CPLD (not the eventual one I want to use for the ethernet project - rather, one I actually have here and now, an XC9536 in a PLCC44). And…

    ... :

    call 0x3FFD
    defb 0x01

    would result ...
    Winston Winston December 2007 Hardware
  • If you've got a real working MF128,IF1, and MDR combo can I ask a favour?So, if you do have a real Multiface 128, Interface 1, Microdrive and, oh yeah, a Spectrum (48k or 128k) that are all working, can I ask a favour...? …

    ... ; page in shadow rom
    defb $32 ; and jump to gethook ...
    jp jp February 2008 Hardware
  • Lerm MicroMate - A Full CircleWell, it's taken a long time... but while eventually making an image of my [URL="http://www.worldofspectrum.org/infoseekid.cgi?id=0008433"]MicroMate[…

    ... cartridge.

    [CODE]_hdname defb $10,$11,$15
    defm ... "TRANS" ;
    defb $14,$ff[/CODE]

    jp jp March 2008 Development
<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
defb 1.1K 15.2K

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 array
  • defw defb defs
  • paintbrush asm defb
  • defb backgrounds

Copyright © 2024 World of Spectrum