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
<1234567…34>
  • Screen LoaderCouple days ago i find very interesting loader routine in ex Yugoslavia magazine "Svet Kompjutera" from january 1987. Authors of article, calls this …

    ... /> LD HL,49152
    LD (HIL),HL
    LD DE,16384
    LD (DIL),DE
    LD ... BC
    LD BC,32
    ADD HL,BC
    EX DE,HL
    ADD HL,BC
    KRA LD HL,RP
    LD (RRR+1),HL
    LD DE,23295
    LD
    Pegaz Pegaz August 2006 Games
  • Urgent Help needed to fix this: calling all machine code gurusI am currently trying to write tutorials on the amazing Orfeus music composer by Proxima which allows you to do multi channel music through the beepe…

    ... hl
    ld bc,#0044
    add hl,bc
    ld de,l8900
    ; ld bc,#0489
    ld bc ... ,l8900+4
    l88c9: ld ...
    robpearmain robpearmain 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. …

    ... /> ld bc,$17e0 ; offset
    add hl,bc ;
    call cp32bytes ; copy attributes
    ld bc ...
    ld bc,$07e0 ; subtract 1761 from hl
    sbc hl,bc ; point hl at next ...
    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…

    ...
    dec hl ; move hl down one address

    ld bc,$0005 ; the ...
    inc hl ; move HL up one address

    ld bc,chan_4 ; could ...
    inc hl ; move HL up one address

    ld bc,$15c4 ; address ...
    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 …

    ... /> ld (hl),$19 ;

    ld hl,uS_patch ; source
    ld de,$18fe ; destination
    ld bc ... /> ld (hl),$18 ;

    ld hl,ZX_patch ; source
    ld de,$18f3 ; destination
    ld bc ...
    chev chev March 2007 Emulators
  • My little first set of routines.Hi all, I just coded a little set of routines just to draw a screen on video mem and a fade out. I could have just copied the screen rendering rout…

    ... ,SCREEN+1
    ld hl,SCREEN
    ld (hl),0
    ld bc,6143
    ldir ... bc

    ld de,ATTRIBUTES
    ld hl,image+6144+2
    ld bc,768 ...
    HexDump HexDump April 2007 Development
  • How do I clear only a specific area of a screen (quickly) in machine code ?I'm looking for a machine code routine which will clear the first 20 rows of the Spectrum's display (or any number of rows or columns) . I have found…

    ... /> LD HL,4000H 33 0 64
    LD BC,17FFH 1 255 23
    LD (HL ... ),L 75
    LD D ... H 44
    LD E,1 ...
    bobbyjaykid bobbyjaykid July 2007 Development
  • Help hacking Split PersonalitiesI`ve been hacking away at Split Personalities for the purpose of putting new screens and graphics (items). The current screen is at 41187 and is 160…

    ... ; 54564 32 33
    ld (8737), hl ; 54566 34 33 34
    inc bc ; 54591 3
    ld hl, 33 ; 54592 33 ... 0
    inc bc ; 54626 3
    ld (33314), hl ; 54627 34 34 ...
    FrankT FrankT July 2007 Games
  • 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…

    ... LD HL,SOUNDDATA
    LD (SOUNDPOS),HL
    LD A,1
    LD (LAZERFLAG),A
    LD BC ...
    dmsmith dmsmith July 2007 Development
  • A few questions about machine codeOh no... another noob. I'm giving my first steps in assembler (finally, after 20 years stuck in BASIC). I read a SU article explaining that if I wan…

    ... /> ld a,255
    ld ix,16384
    ld de, ... /> ld a,255
    ld ix,24576
    ld de, ...
    ld de,23296
    ld hl,24785
    ld bc,40832
    ldir[/CODE]

    I know that 'hl' ... the destination address, and 'bc' sets the amount of ...
    zxbruno zxbruno August 2007 Sinclair Miscellaneous
  • AY-player from Rastan SagaHello. For what ports #3F, #5F in the given fragment of a code are used? They give What effect in sounding? ================================= F4C1 21…

    ... br /> F4C1 21BAF7 [B]ld hl,F7BA[/B]
    F4C4 160C ... F4CD 013FFF [B][COLOR="Red"]ld bc,FF3F[/COLOR][/B]
    ... /> F4D8 7E [B]ld a,(hl)[/B]
    F4D9 2B ... [B] dec hl[/B]
    F4DA D35F ...
    BeeEye BeeEye November 2007 Games
  • 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...? …

    ... address
    push hl
    exx
    ;
    ld hl,(err_sp) ; fetch current ... error return
    ld (err_sp),hl ; and update
    ld a,$ff ; force ... /> detectrom
    ld (err_sp),sp
    ld bc,0 ; clear bc
    ld de,gethook ...
    jp jp February 2008 Hardware
  • help sought with first foray into machine code - pixel scrolldownI have started to code my first machine code program, a simple roadrace game. I've based it around the pixel scrolldown routine in 40 Best Machine Co…

    ... /> org 32000
    main
    ld hl,$410a ;road left side,line2 ... ,$ff ;graphic for roadside
    ld (hl),a ;print road left side ... right side to line1
    ld bc,$bf00 ;set counter to 191 ... side posn
    scrldn
    ld hl,22527 ;point to bottom right ...
    bigjon bigjon February 2008 Development
  • Speccy sound on tv show - againRemember the spectrum loading noise in two CSI shows? Well, fuzzix on c.s.s. has found what seems to be another clip of Speccy goodness: [url]http:/…

    ... /> 30 LD HL,#53F
    40 PUSH HL
    50 LD DE,#4000 ...
    60 LBYTE LD A ... br /> 100 NBYTE LD L,1
    110 LD BC,#B201
    ... 160 RL L
    170 LD B,#B0
    180 JR ...
    zxbruno zxbruno March 2008 Sinclair Miscellaneous
  • Alternative ROM on original DivIDEOriginal DivIDE interface contain too allram mode (16kB paging). [url]http://raww.org/index.php?name=News&file=article&sid=2471[/url] Switch to ALLR…

    ... ROM instalation:
    DI
    LD A,66
    OUT (227 ... ),A ;enable allram mode
    LD A,64
    OUT (227 ... enable
    LD HL,49152
    LD DE,0
    LD BC,16384
    LDIR ... 49152 to DivIDE memory)
    LD A,0
    OUT (227 ...
    velesoft velesoft June 2008 Hardware
  • 128 ROM paging alternativeWould this work (with the appropriate code in each ROM)? [code] ; 128 rom paging routine ; use rst 28h with call address stored after restart ;;rom…

    ... /> ld hl, 0x0000 ; sp to hl
    add hl, sp ;

    ld e, (hl) ; (sp ... 4, (hl) ; set rom1
    ld a, (hl) ; get value
    ld bc, 0x7ffd ; bc holds ... 4, (hl) ; set rom0
    ld a, (hl) ; get value
    ld bc, 0x7ffd ; bc holds ...
    chev chev August 2008 Development
  • Bresenham's line algorithmHelp - I really am struggling to get my head around this algorithm. I don't know why, I coped with Cordic (SIN/COS) and integer divide routines (/10 …

    ... />
    LD HL,(real328+$02) ;HL has relative Y value ($032A)
    LD BC,(real328 ... br />
    PUSH HL ;preserve HL
    SBC HL,BC ;if Y>X ... BC/HL to keep X>Y

    LD A,H
    LD ...
    LD L,C
    LD C,A ;swap HL (Y) and BC (X ...
    Jimmy Jimmy August 2008 Development
  • So... you want to format your 3.5" as 720K eh?Well, i've been trying to get hold of an application to make proper use of my 3.5" +3 floppy disks but i haven't been able to find any. I stumbled up…

    ... BC needs to hold 495
    LD H,D ; Load HL ... PUSH BC ; Preserve registers
    LD BC,32765
    LD A,( ... paging
    LD BC,32765
    LD A,16 ; ...
    NaMcO NaMcO December 2008 Development
  • New for 2009 - mc onelinersI found the limit of one line and one screen's worth of program really useful in (re-)learning BASIC, so I've decided to carry the format over into m…

    ...
    ld bc,0 ;initialise score
    push bc ;save score
    ld hl,23278 ... ;erase car
    ld (hl),a
    ei
    ld bc,65278 ;read keyboard ... /> ld (hl),a
    ld hl,23263 ;scroll road
    ld de,23295
    ld bc,736 ...
    bigjon bigjon December 2008 Development
  • So you want to make a cardgame......but you haven't got a good deck to display. Well here is a fully relocatable routine that will do the job for you. Place the code anywhere in me…

    ...
    LD HL,#1821
    LD BC,(23688)
    SBC HL,BC
    LD B,H ...
    Dr BEEP Dr BEEP December 2008 Development
  • Thinking in Assembly (first efforts)The following is one small routine to educate myself on a few concepts (jumps, flow control, routines, CPI): [code]searchmem xor a …

    ... = 0
    ld bc, 0ffffh ; search the entire memory
    ld hl, 0 ; start ... found address
    push hl
    pop bc ; retrieve address
    ret ...
    rahtgaz rahtgaz January 2009 Development
  • Fastest way to clear a screen.We haven't had an optimizing fun for some time, so let's have some: What's the fastest way to clear a screen (i.e., filling the 6912 bytes at 16384 w…

    ... /> LD HL,16384 ; 3B 10T
    LD DE,16385 ; 3B 10T
    LD BC,6911 ... ; 3B 10T
    LD (HL),L ; 1B 7T ...
    Patrik Rak Patrik Rak February 2009 Development
  • Rainbow Generator for 48K Spectrum using PUSHThis is what I came up with from [B]gasman[/B]'s suggestions. It's stable in ZXSpin and ZX32 simulating a 48K Speccy. Anyone like to try it on the …

    ... br /> ld de,65025
    ld (hl),253 ;Write once
    ld bc, 256 ... ei ;Enable interrupts
    ld bc,colour_map ;Give you the address ... for the top border:
    ld bc, 435
    interrupt_delay_loop
    bc
    pop de
    pop hl
    ld sp, ...
    joefish joefish May 2009 Development
  • Tips on optimizing some newbie assembly routinesI'm starting to learn some assembly language. The best way to learn is to actually code something you are going to use, so I'm creating a very simple…

    ...
    pop hl

    pop bc
    ld a, c
    bc
    ld a, (hl)
    inc hl
    inc hl
    push hl
    na_th_an na_th_an June 2009 Development
  • Machine Code Microdrive File LoaderI've been experimenting with transferring games to run from microdrive. Typically I like to see a loading screen while things are happening, and I li…

    ... /> ;
    ld hl,filenam
    ld (t_str1),hl ; address of filename
    ;
    ; ld hl,1 ... /> pop hl
    add hl,de
    ld de,hd_00
    ld bc,$0009
    ldir
    ;
    ld ...
    jp jp August 2009 Development
  • Tinkering with Quique Llar?a's Midi2Ay tool...Im tinkering with Quique Llar?a's Midi2Ay tool, found at: [url]ftp://ftp.worldofspectrum.org/pub/sinclair/tools/pc/midi2ay-0.1.zip[/url] Im not a v…

    ... hl
    pop af

    ld hl,(G_HL)
    ld de,(G_DE)
    ld bc ... hl
    pop af

    ld hl,(R_HL)
    ld de,(R_DE)
    ld bc ... ,(R_BC)

    ld SP ...
    kgmcneil kgmcneil October 2009 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…

    ...
    ld hl,23263 ;scroll road
    ld de,23295
    ld bc,736
    ld (hl),a
    ei
    ld bc,65278 ;read keyboard ... /> ld (hl),a
    ld hl,23263 ;scroll road
    ld de,23295
    ld bc,736 ...
    bigjon bigjon November 2009 Development
  • Need help with interrupts againI'm fighting to understand how interrupts code handling works I'm trying to set my simple own interrupt routine, as I don't want to be dependent on …

    ... 255
    LD DE,23297
    LD BC,255
    LD (HL),C
    LDIR ...

    LD A,24
    LD ... /> LD HL,77*256+237


    LD (65525),HL

    LD A ...
    Ralf Ralf November 2009 Development
  • Rom Routines list ?Exist some document that show detailled the routines on the spectrum ROM ? Ad for the Spectrum +3 ? are they the same or exist more ? Example i was …

    ... :

    push BC
    ld bc,#5d70
    push hl
    push af ... /> pop af
    pop hl
    pop bc

    This routine ...
    arfgh arfgh June 2010 Sinclair Basic
<1234567…34>

Latest Posts

  • 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
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 8

HitBox

Word Docs Hits
ld 6.3K 67.3K
bc 3.6K 14K
hl 6.2K 48K

Related Threads

  • 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…
  • BC 's Quest For Tireswhen playing this game you can only use keyboard right?.WRONG.if you press the letter "p" while the game has started(paused and waiting for input)a c…
  • BC Bill does this game work with a emulator?Can anyone get this game running with a emulator. I get as far as the main screen but can't start the game
  • BC BillThis is embarrassing but here goes...<br /> <br /> I'm playing BC Bill using ZX32. On the control menu I press 2 to select 'Kempston'. What do I need…
  • Problems with BC bill gameI have loaded this game with several emulators and game files with the same result:<br /> you can choose the input -&gt; sinclair, kempston, etc but …
  • When would you use LD A,R ?Can anyone tell me a practical use of LD A,R and LD R,A I am confused when you would need to use it?<br /> <br /> Cheers
  • Correct flag response to BIT n,(HL) etc.When running the test program suggested by Arjun (thanks again), all intructions are passing the flag tests except the BIT n,(HL), BIT n,(IX+dis) and…
  • Contention: LDI vs LD (ss), rAccording c.s.s. FAQ:<br /> <br /> instruction LD (ss),r breakdowns as pc:4,[b]ss:3[/b]<br /> and LDI as pc:4,pc+1:4,hl:3,[b]de:3,de:1 x 2[/b]<br /> …
  • BC's Quest for Tires code sheet missingSpeaking of [URL="http://www.worldofspectrum.org/forums/showthread.php?t=35314"]missing code sheets[/URL], it appears the sheet for [URL="http://www.…

Related Searches

  • ld ix
  • ld bytes
  • ld hl de
  • return to basic hl
  • ld bc eostr string
  • ld am
  • ld a r
  • ld r a
  • call address in bc
  • call hl
  • ld a b xor c loop
  • ld a b or c loop
  • print usr bc
  • bc bill
  • ld bc 65533 a 254 out c
  • ld bc 65533
  • ld hl 5678
  • 33 ld hl xxxx
  • screen buffer pop bc ld sp hl
  • ld 23641 hl

Copyright © 2024 World of Spectrum