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.015s
<1…25262728293031…34>
  • Krakatoa not workingI can't get any of the Krakatoa files in the archive to load on spin or zxds. Anyone else had this problem?

    ... , the loader gets a 16383 bytes-long headerless block and then ... or synchs) longer than 31 bytes each and with pauses in ... routine is the ROM one (LD-DEC).
    The data itself ...
    lfaria lfaria October 2011 Games
  • Krakatoa not workingI can't get any of the Krakatoa files in the archive to load on spin or zxds. Anyone else had this problem?

    ... /> 5B23 LD B,10 ;16 attempts to load enough bytes for this ... counter2
    5B26 LD E,9F ;10011111 (159) bytes to load, max ... /> 5B2A CALL 05C5 ;LD-DEC+1, load bytes with ROM timings, overwrite ... ROM
    5B2D LD A,0C ...
    lfaria lfaria October 2011 Games
  • 128k multicolour graphics...ok over the years I've been a fan of multicolour graphics on zx spectrum, an I clearly get that on a 48k the (8x1@2)multicolour limit stands at 18cha…

    ... tricky. The POP/PUSH or LD/PUSH method works because you ... stack pointer) that's another LD instruction. So every time you ... pointer, you lose another 2 bytes from either the reading or ... cut you down to 12 bytes per row.

    So ...
    joefish joefish November 2011 Sinclair Miscellaneous
  • tiny routine to shift RAMTOP & stackCompressing some data areas above RAMTOP and wanting to make the released space available for BASIC arrays, I needed to move RAMTOP without using CLE…

    ... the original "tiny" version (53 bytes instead of 12).

    LD SP, HL ; 249 ;from m ...
    POP BC ; 193
    LD SP, HL ; 249
    PUSH ...
    Battle Bunny Battle Bunny November 2011 Sinclair Basic
  • Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …

    ...

    ld h,rotation_table_to_use
    ld l,0 ; sprite byte ... sprite row is zero
    ld de,sprite_definition_address

    ... hl = sprite definition addr
    ld e,(hl) ; e = current sprite ... If the tables are 256 bytes long and are aligned to ...
    Alcoholics Anonymous Alcoholics Anonymous November 2011 Development
  • Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …

    ... br /> [CODE]draw_face ld de,16384
    ld a,0
    ... br /> ld h,0
    ld l,a
    ld bc,face_sprites ... /> ld b,8
    face_loop2a ld a,(hl)
    ld (de ... bit :
    [CODE]draw_face ld de,16384
    ;I' ... side to side....16 bytes in all....which means ...
    Turkwel Turkwel November 2011 Development
  • Up/Down Left/Right scrollCan anybody give a newbie some pointer to simple one char scrolling by pixel? I've looked at a lot of resources, but as you can imagine, it's all a …

    ... and this involves POKEing eight bytes to memory per letter, each ... rows remaining

    ld b,c ; b = number of ... horizontal columns
    ld l,0 ; l = sprite data ... hl = sprite definition addr
    ld e,(hl) ; e = current sprite ...
    Alcoholics Anonymous Alcoholics Anonymous November 2011 Development
  • z88dk stdio fopenI'm trying to write a fcntl library, based on the p3.lib one. Looking at fopen(), it calls freopen_z88() which turns the mode string into mode and f…

    ... code]
    fputc:

    ld hl,STDIO_MSG_PUTC ; = 0, other messages ... steps of 3
    ld a,'A' ; send the ... )
    variable number of bytes owned by driver (filepos, ... br />
    DRIVER:

    ld de,microdrive_jptbl
    add hl ...
    Alcoholics Anonymous Alcoholics Anonymous November 2011 Development
  • Machine code crunching soundI'm looking for a re-locatable subrountine that makes a crunching sound, no border effects(border is black). Anyone got anything suitable?

    ... />
    [CODE]CrunchSound:ld bc,768
    loop: ld a,r
    dec bc
    ld a,b
    or c ... done this in about 100 bytes!
    R-Tape R-Tape November 2011 Development
  • Z80 Cross-assemblersI need to build some code which contains sets of routines which run at one address but are stored elsewhere. Unfortunately, neither of the assembler…

    ... that runs along the assembled bytes, and used for calculating ...
    LD HL, MYCODE
    LD DE, 0C000h
    LD BC, 100h ... followed by 16370 zero bytes (or FF bytes) to get to the ...
    LD HL, MYCODE
    LD DE, 0C000h
    LD BC, 100h ...
    John Elliott John Elliott November 2011 Development
  • Z80 Cross-assemblersI need to build some code which contains sets of routines which run at one address but are stored elsewhere. Unfortunately, neither of the assembler…

    ... - if there's 15 bytes worth of assembly, assembler should ... the A300-A3FF page.
    ld a,(ICOUNT)

    ... patch: Clear title screen
    ld bc,1AFFh
    [/CODE]< ... that just generated 7 contiguous bytes would be useless in ...
    John Elliott John Elliott November 2011 Development
  • What paging scheme is the "standard" for 128K models?Sinclair implemented an arrangement so that even numbered pages are non-contended, and odd numbered pages are contended (quoting from memory, haven't…

    ... br /> di
    ld a,253
    ld i,a
    xor ... br /> out (254),a
    ld b,128
    Wait djnz ... pairs of pixel/attribute bytes (or 4 bytes) is enough to meet ...
    mcleod_ideafix mcleod_ideafix December 2011 Hardware
  • BREAK from GOSUBHere's another one. Just in case you wanted to break out of multiple GOSUB levels with a single command, here's a routine to do it, tested on all mod…

    ... ADD HL, SP ;(ERR_SP)
    LD SP, HL ;from m/c ... /> DEC SP ;entry is 3 bytes
    EX (SP), HL ... reset Zero flag
    SETRET: LD BC,$1B76 ;$1B76 = STMT_RET
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... random keypresses to generate random bytes, then mirror them, ... so 10 udgs = 80 bytes stops at the (C) ... will give all the same bytes, no good! I' ... br /> ld a,b ;want to display number of bytes generated, ... thus 8 bytes created)
    xor a
    ld (23560),a ...
    R-Tape R-Tape December 2011 Development
  • BackgroundDoes anyone know how i would create a background similar to [URL=http://imageshack.us/photo/my-images/42/backgroundmockup.png/][IMG]http://img42.ima…

    ... br /> [CODE]org 33000
    ld hl,22528 ;point hl at ... black ink bright
    ld de,22529 ;de to ... following byte
    ld bc,767 ;fill whole screen ... ;#columns across
    loop ld (hl),64 ;poke value ... 't I?, that makes 34 bytes.. Uhhnnn

    ...
    R-Tape R-Tape December 2011 Development
  • BackgroundDoes anyone know how i would create a background similar to [URL=http://imageshack.us/photo/my-images/42/backgroundmockup.png/][IMG]http://img42.ima…

    ... bytes by using LD BC,nn instead of LD B,n; LD ... LD (STK),SP
    LD SP,23232
    LD HL,$2020
    LD ... DE,$0707
    LD ... /> DJNZ L1
    LD SP,(STK)
    ...
    ccowley ccowley December 2011 Development
  • BackgroundDoes anyone know how i would create a background similar to [URL=http://imageshack.us/photo/my-images/42/backgroundmockup.png/][IMG]http://img42.ima…

    ... three bytes by using LD BC,nn instead of LD B,n; LD C ... will cost you a few bytes more :razz:

    The ...
    Stefan Drissen Stefan Drissen December 2011 Development
  • BackgroundDoes anyone know how i would create a background similar to [URL=http://imageshack.us/photo/my-images/42/backgroundmockup.png/][IMG]http://img42.ima…

    25 bytes. [I]fill_bytes[/I] must be ... ld de,22528
    ld hl,fill_bytes
    ld c,(hl)
    fill_screen2 ld ... b,8
    ld ...
    Turkwel Turkwel December 2011 Development
  • BackgroundDoes anyone know how i would create a background similar to [URL=http://imageshack.us/photo/my-images/42/backgroundmockup.png/][IMG]http://img42.ima…

    ... />
    [QUOTE=Turkwel;587894]25 bytes. [I]fill_bytes[/I] must be ... /> ld hl,fill_bytes
    ld c,(hl)
    fill_screen2 ld b,8
    ld ...
    polomint polomint December 2011 Development
  • Calculating percentage..or even calculating percentage. Maths and asm I find verryyy tricky. Can anyone suggest the easiest/best way to calculate a percentage from two 1…

    ... br /> ;
    percent ld hl,Total24
    ld (hl),0
    inc ... number
    ld hl,Given24
    ld de,GivenCopy24
    ld bc,3 ... Given Amount
    ld c,99
    percent1 ld de,GivenCopy24+2 ... 0,0,0
    ;scratch bytes for Calculations[/CODE]
    Turkwel Turkwel December 2011 Development
  • ANN: Tipshop updated Saturday, 31 December 2011Saturday 31 December 2011 The last update of the year - Happy New Year when it comes! * GoodBoy sent in a cheat for Wacky Races. * Hippy Smith sen…

    ... LD SP,$FFFF
    LD IX,$4000
    LD DE,$3F48
    LD ... reloc:
    LD HL,$5E00
    LD DE,$9E00
    LD BC,$2000 ... as required
    LD DE,table
    LD BC,$9E00
    LD (BC),A
    JR ... 13,5,14 ;only 9 bytes on this row
    ...
    Jimmy Jimmy January 2012 Announcements
  • PLOT and DRAW in machine codeHow do you go about it? If I posted a really simple BASIC instruction could someone do a machine code routine so I could learn from it? I wouldnt k…

    ... br />
    norotate:

    ld b,a ; b = pixel mask ... from pixel coordinates

    ld a,b ; get pixel mask ... ; OR with screen contents
    ld (hl),a ; write to screen ... and Y coordinates (8-bit bytes) and shuffling them around to ...
    Alcoholics Anonymous Alcoholics Anonymous January 2012 Development
  • PLOT and DRAW in machine codeHow do you go about it? If I posted a really simple BASIC instruction could someone do a machine code routine so I could learn from it? I wouldnt k…

    ... /> [code]
    ld hl,10000
    ld de,9000
    ld bc,8000 ...

    ld c,90
    ld ... b,7

    ld hl,-10000
    ld ... and the latter taking 4 bytes and 14 cycles). Conceptually, the ...
    Alcoholics Anonymous Alcoholics Anonymous January 2012 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…

    ... can do it in 23 bytes now. Wanna play? :))


    LD a,1

    Is ...
    Turkwel Turkwel January 2012 Development
  • Using ATTR detection in machine codeIs there a ROM routine that can be called that reads the ATTR value of a co-ordinate?

    ... different udgs
    ld a,(colour)
    ld (hl),a ; ... to attribute address
    ld hl,22528 ;start of ... xy 0,0
    ld a,(horizontalcoord) ;number 0 ... byte of hl
    ld a,(vertical_coord) ;number 0 ... /> loop ld de,32 ;each row is 32 bytes apart, ...
    R-Tape R-Tape January 2012 Development
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ...
    ld sp, ix
    pop af ; read 16 bytes
    ...
    ld sp, iy
    push hl ; write 16 bytes
    push ... /> incbin "unionflag.bmp" ; 6144 bytes of in order bitmap
    incbin "unionflag.atr" ; 768 bytes of attributes

    org ...
    p13z p13z January 2012 Sinclair Miscellaneous
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    ... faster.

    [CODE]
    LD (STACK),SP ;DUMPS VIRTUAL SCREEN ... IN REAL SCREEN
    LD SP,$E428 ;TABLE OF DIRECTIONS ... ;IF BC REPEATS

    LD SP,(STACK)

    [/CODE ... all, but for putting 2 bytes in the screen with LDI ...
    climacus climacus January 2012 Sinclair Miscellaneous
  • Fairlight's use of LDIRYS, comparing Fairlight and Nightshade, said: [quote]Fairlight is much more interesting even though the techniques that Bo Jangeborg uses for screen…

    [QUOTE=climacus;595221]putting 2 bytes in the screen with LDI ... /> [code]REPT 160, line
    ld sp,data + line*20
    pop iy
    ld sp,16384 + (line/64)*2048 ...
    obo obo January 2012 Sinclair Miscellaneous
  • Loading the display with data from memoryTrying to load part of the screen(4k's worth) with data from memory location 53000, I've written this routine, but it doesnt work... [I]ld b,4000 ld…

    ... ld bc,4000
    ld de,16384
    ld hl,55000
    loop ld ... a,(hl)
    ld ... s, 'b' only
    ld a,b ;puts both b ... ld bc,4000 ;no of bytes
    ld de,16384 ;destination
    ld hl ...
    R-Tape R-Tape January 2012 Development
  • Loading the display with data from memoryTrying to load part of the screen(4k's worth) with data from memory location 53000, I've written this routine, but it doesnt work... [I]ld b,4000 ld…

    [QUOTE=Rebelstar without a cause;595755]Use LDIR instead.[/QUOTE]

    [CODE]
    ld hl,53000 ;source
    ld de,16384 ;destination
    ld bc,4096 ;number of bytes to copy
    ldir[/CODE]
    polomint polomint January 2012 Development
<1…25262728293031…34>

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