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.010s
<1…28293031323334>
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... mean a ld bc,word at the beginning, so 20 bytes. I ...
    R-Tape R-Tape July 2012 Development
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... mean a ld bc,word at the beginning, so 20 bytes. I ...
    Dr BEEP Dr BEEP July 2012 Development
  • Machine Code Routine of the weekHow about a thread that has a routine each week that is in [B]assembly language[/B] and is also described in great detail what the hell is going on …

    ... QUOTE=antoniovillena;640512]16 bytes. Now we have ... $7848
    ld hl, $5b00
    loop0 ld a, (bc)< ... br /> and l
    ld (hl), b
    jp ... pe, loop1
    ld (hl), c
    loop1 ...
    Dr BEEP Dr BEEP July 2012 Development
  • Saving space using procedural graphicsAfter spending several hours playing around with various packers to squash the Alien8 test screen$ it occured to me that maybe bigger space savings c…

    ... UP

    616 bytes of data at 41000[/QUOTE ... 40000
    ld hl,23295
    l40003: ld (hl),69

    ld de,a8data
    ld b,0
    ... call l40033
    ld ixl,41
    l40021: ... br />
    l40033: ld ixl,43
    l40036: call ...
    FrankT FrankT July 2012 Development
  • 64x48 full colour graphicsHow feasible is this? Could an interrupt-driven routine be used to, for example, fill the top two thirds with a 64x32 blocky picture and leave the bo…

    ... .

    So

    LD HL,NN ;10
    PUSH ... copied. Copying one line=32 bytes would need 336 tstates.
    Ralf Ralf July 2012 Development
  • 64x48 full colour graphicsHow feasible is this? Could an interrupt-driven routine be used to, for example, fill the top two thirds with a 64x32 blocky picture and leave the bo…

    ... from the source data then LD (NN),HL, which as a ... use it to write some bytes from left-to-right instead ... a big gain by using LD instead of POP to fetch ...
    joefish joefish July 2012 Development
  • 64x48 full colour graphicsHow feasible is this? Could an interrupt-driven routine be used to, for example, fill the top two thirds with a 64x32 blocky picture and leave the bo…

    ... /> I see you've used LD (HL),n followed by INC ... use LD HL,nn and LD (nn),HL to do two bytes at ...
    joefish joefish July 2012 Development
  • 64x48 full colour graphicsHow feasible is this? Could an interrupt-driven routine be used to, for example, fill the top two thirds with a 64x32 blocky picture and leave the bo…

    ... /> I see you've used LD (HL),n followed by INC ... use LD HL,nn and LD (nn),HL to do two bytes at ... /> You're right.

    LD (HL),N
    INC HL ...
    LD (HL),N
    INC HL ... too.

    LD HL,NN
    LD (NN),HL is just ...
    Ralf Ralf July 2012 Development
  • 64x48 full colour graphicsHow feasible is this? Could an interrupt-driven routine be used to, for example, fill the top two thirds with a 64x32 blocky picture and leave the bo…

    ...
    LD (MV10+2),HL ;IX,IY instructions take 4 bytes, not ... 3
    POP HL
    LD (MV11+2 ... /> LD HL,22528
    LD (CurrentLineStart),HL

    LD HL,AttrBuffer2
    LD ...
    Ralf Ralf July 2012 Development
  • Switching 48/128 modes within a BASIC programI'm not sure what use this would be; ie. being able to switch between 48k and 128k modes and back again from within a continuously running BASIC prog…

    ... working. It's about 30 bytes longer than Toggler, but ModeSwap ... =channel info for "P"
    ld bc,$0004
    ldir ;replace ... "S"
    TO_ALL: ld sp,($5c3d) ;ERR_SP
    ld hl,$0014 ;address ...
    Battle Bunny Battle Bunny July 2012 Sinclair Basic
  • Switching 48/128 modes within a BASIC programI'm not sure what use this would be; ie. being able to switch between 48k and 128k modes and back again from within a continuously running BASIC prog…

    ... ;642599]It's about 30 bytes longer than Toggler[/QUOTE]
    ret z ;16k/48k
    ld a,(iy+$01)
    bit ... BASIC" mode
    ld sp,($5c3d) ;ERR_SP
    ld hl,$0014 ;address ...
    Einar Saukas Einar Saukas July 2012 Sinclair Basic
  • DooM on Spectrum 128kHello my fellow WoS'ers My hope is that you can help me, recently I discovered a DooM clone -esque on the Humble spectrum, - here is a [URL="https:/…

    ... shifted the stack by three bytes so I was patching it ... /> ld hl,get
    ld ($618d),hl
    ld hl,23296
    ld de ... ,saved
    getput: ld ...
    Battle Bunny Battle Bunny August 2012 Games
  • assembly optimization: times tenDecimal numbers are not computer friendly :) Anyway, short of saying "sod it - I'll multiply by 8" - and another part of the program does indeed div…

    ... t-states) - but wasting 512 bytes to save a 23 t ... -states...

    [code]
    LD H, lookup / 256 ; 7
    LD A,(HL) ; 7
    INC ... L ; 4
    LD H,(HL) ; 7
    LD L,A ; 4 ...
    Stefan Drissen Stefan Drissen August 2012 Development
  • assembly optimization: times tenDecimal numbers are not computer friendly :) Anyway, short of saying "sod it - I'll multiply by 8" - and another part of the program does indeed div…

    ... t-states) - but wasting 512 bytes to save a 23 t ... states...

    [code]
    LD H, lookup / 256 ; 7

    [code]
    LD H, lookupMSB / 256 ; 7
    LD H,(HL) ; 7
    LD A,(DE) ; 7 ...
    LD L,A ; 4 ...
    mcleod_ideafix mcleod_ideafix August 2012 Development
  • Work out attribute location in MCHow do I go about writing a MC routine which calculates the attribute address from a set of PRINT co-ordinates. I know you in basic you multiply the…

    ... ) reads TWO bytes from 60000 and 60001, as LD DE,(60001) does ... adding different values.

    LD HL,(60000) in your program ... />
    Try [B]ld a,(60000); ld h,0; ld l,a[/B ...
    na_th_an na_th_an August 2012 Development
  • Work out attribute location in MCHow do I go about writing a MC routine which calculates the attribute address from a set of PRINT co-ordinates. I know you in basic you multiply the…

    ... aligned on a 256-bytes boundary, first 24 bytes of the table ... L=Y
    ld a,h
    ld h,table/256
    ld d,(hl)
    ... br /> add a,(hl)
    ld e,a[/code]

    bytes boundary. Then you can ...
    Shiru Shiru August 2012 Development
  • Quickest way to fill the attributes using LDIRI'm looking for a small routine to fill the entire attribute area of the memory with a single value, I've used LDIR in the past, but forgotten how to…

    ...
    BC = the number of bytes to copy

    So ... the value you want using LD (HL),ATTR_VAL) to the very ... . And we're copying 767 bytes.

    Seemples ...
    ccowley ccowley August 2012 Development
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... /> org 65121 ; 415 bytes

    c_chan:
    ld hl, (prog) ; a ...
    ld bc, 5 ; the new channel takes 5 bytes
    call ... address
    ld bc, do_it ; could write the bytes directly but
    chev chev August 2012 Development
  • 40 Column Printing RoutineI've written a 40 column printing routine, which I'd like to share... It's my first piece of 'public' code so go easy on me! I don't think it is a…

    ... br /> ; POKEable flags, 6 bytes
    ;----------------------------------------------------------------------------
    overflag defb ... ld a,(xcoord)
    ld d,0
    ld e,a
    ld ...
    uglifruit uglifruit August 2012 Development
  • Quickest way to fill the attributes using LDIRI'm looking for a small routine to fill the entire attribute area of the memory with a single value, I've used LDIR in the past, but forgotten how to…

    ... with SP?

    [CODE]ld hl,#0000
    push hl ... hl,sp
    ld sp,#5b00
    ld b,#c0
    loop ... , loop
    ld sp,hl
    ret[/CODE]

    17 bytes?
    jamorski jamorski August 2012 Development
  • merging bytesPicturing three bytes with their bits identified by letters to make the visualisation easier, what's the best way to perform this transformation? [co…

    ... [*] OR the separate parts with bytes 1 and 2
    [/list ... /> ; Breaks: A, D
    LD A, H
    AND E0h ...
    LD H, A

    LD A, L
    LD L, A

    LD A, D
    RRCA
    RRCA
    LD D, A

    ...
    BloodBaz BloodBaz August 2012 Development
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ...
    pokeink:ld bc,21*32
    ld hl,(23639) ; ... push bc
    ld b,0
    ld c,a ;BC= ... ;A =INK colour
    ld hl,22527
    pop bc ... />
    Also, 21*32 bytes could be saved by printing ...
    Battle Bunny Battle Bunny September 2012 Sinclair Basic
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... I was counting the bytes/cycles, but didn't ... br /> [code]
    rnd ld hl,0xA280 ; yw -> zt ...
    ld de,0xC0DE ; xz -> ... yw
    ld (rnd+4),hl ; x = ... br /> xor l
    ld h,e ; y = ...
    Patrik Rak Patrik Rak September 2012 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... Spectrum Manual.
    Some instruction bytes, like 201 for 'ret', ... ld bc is 1. The computer then expects 2 data bytes ... do 'ld a, 0' but this takes 2 bytes whereas ' ... of random bytes in ROM
    ld d,0
    ld e, ... of random bytes in ROM
    ld d,0
    ld e, ...
    buzzy buzzy September 2012 Development
  • Mini scroll routineI'm looking for a routine that scrolls a small section of the screen downwards and replaces it with nothing, 2 x 2 charcter blocks to be precise, to …

    ... whole display file in 88 bytes. (The first part just ...
    ;
    scroll_whole_screen_down_by_one_line
    ld hl,22240 ;point hl at ... br /> scroll_one_line
    ld d,h
    ld e,l ;point DE ...
    ;
    drawline
    ld bc,32
    ldir
    R-Tape R-Tape October 2012 Development
  • Help needed...I am at my wits end with this pigs ear of a routine, can anyone simplify it and make it work as it should? Basically it should make the characters '…

    ... on it
    ;
    ld a,(number_of_repeats) ;can be catered ... call print_string ;prints OFF
    ld a,(xcor)
    add a ... br /> ;
    print_string
    ld a,22 ;print AT
    ld bc,4 ;length of string in bytes
    ...
    R-Tape R-Tape October 2012 Development
  • help needed :) how to rotate a 3 x 3 array 90 degreesI just cant seem to get this sorted in my head ( or on paper ) , I've found multiple examples in C , python , etc but cant find any z80 examples any …

    ... you have a string of bytes:

    [B]A1 ... />
    [CODE]LD HL,Source
    LD DE,Destination
    LD BC,6 ... to c1


    LD A,(HL) ;copy c1
    INC DE

    LD A,(HL) ;copy b1
    INC DE

    LD A,(HL) ;copy a1
    Ralf Ralf October 2012 Development
<1…28293031323334>

Latest Posts

  • Celebrity deaths...
    Paradigm Shifter on 4:41PM
  • Your Favorite Magazine Cover Tapes.
    Your Spec-chum on 2:19PM
  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    Your Spec-chum on 1:34PM
  • i am currently listening to........
    mel the bell on 11:34AM
  • Mis-labeled cassette titles or a name change?
    harriusherbartio on 11:06AM
  • Ways to preserve Speccy Tapes in the loft
    harriusherbartio on 10:58AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 10:47AM
  • Minor British Sports that did become games on the ZX Spectrum
    harriusherbartio on 10:30AM
  • How to return to basic properly from ASM
    Paradigm Shifter on 1:54AM
  • Frankie's ZX Spectrum Digouts
    Zup on April 8

HitBox

Word Docs Hits
ld 6.3K 67.3K
bytes 9.1K 16.6K

Related Threads

  • Finding the length of loaded Bytes:Is there a way from BASIC of finding out how big a block of bytes loaded from tape was? <br /> <br /> i.e. - if you do LOAD""CODE and load in a lump …
  • DEC BC/LD A,B/OR C/JP NZ,loopyesterday i saw nice trick:[code]<br /> <br /> dec bc<br /> ld a, b<br /> or c<br /> jp nz, loop<br /> <br /> can be replaced (bc starts &gt;255, sho…
  • Retro Bytes PR and other services.Hi folks,<br /> <br /> For anyone who is interested, I'm setting up a PR agency called Retro Bytes PR. We specialise in handling the press for small …
  • RETRO:BYTES Magazine.Hi Speccy people,<br /> <br /> Just in case you've missed it (which is likely), I'm working with Alten8.com and other investors to launch a retro mag…
  • Avoid "Program:" and "Bytes:" messagesI converted some original +D programs into TZX files. That works fine, but I'm worry about the "Program:" or "Bytes:" messages of the program blocks …
  • RETRO:BYTES download section.I've uploaded a temporary download page at [url="http://www.retro-bytes.co.uk/downloads.htm"]http://www.retro-bytes.co.uk/downloads.htm[/url] - I've …
  • RETRO:BYTES Lite magazine cover.At last! I can say something...<br /> <br /> Well, we're on the home-straight with the 'Lite' version. You may see this here:<br /> <br /> [url="http…
  • 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)<br /> <br /> I want to copy 4 bytes wide by 32 bytes high from the screen to an area of memory.<br /> <…
  • RETRO:BYTES Lite... at last!R:B Lite is *finally* available to buy from [url="http://www.download-trader.com"]http://www.download-trader.com[/url] for just ?1 sterling! It comes…
  • RETRO:BYTES chat room!Right, I've started a PHP chat room at [url="http://retro-bytes.co.uk/chat/phpMyChat.php3"]http://retro-bytes.co.uk/chat/phpMyChat.php3[/url] for tho…

Related Searches

  • ld ix
  • sa bytes
  • ld hl de
  • 256 bytes
  • ld bc eostr string
  • ld am
  • ld a r
  • bytes hide
  • ld r a
  • forum size bytes
  • ld a b xor c loop
  • ld a b or c loop
  • poke hide bytes
  • hide bytes
  • 924 bytes
  • ld i a
  • ld a 3fh
  • ld a 0 call 5633
  • disable loading bytes
  • disable bytes

Copyright © 2024 World of Spectrum