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.004s
<1…3456789…34>
  • Mysterious bit of codeHi everyone, I found the follow piece of code in a game and was wondering what it does. ld bc,40ffh ld e,40h loop ld a,r …

    ... it does.

    ld bc,40ffh
    ld e,40h ...
    dmsmith dmsmith August 2004 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 …

    ... c, a
    add hl, bc
    ld b, (hl)
    Lambchop Lambchop August 2004 Development
  • need help with speed optimization. this procedure draws a sprite with mask from memory onto the screen with x-coordinate in pixels. it doesn't shift sprites in realtime, it just uses …

    ... /> INC HL
    POP BC
    ;| this cycle makes ... /> INC HL
    POP BC
    DJNZ DRAWMID
    ... br /> DRAWEND
    PUSH BC
    EXX
    LD ...
    moroz1999 moroz1999 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 …

    ... space needed.


    BC holds Y/X

    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…

    ...
    Spriteloop:
    PUSH BC

    CALL MoveSprite< ... DE

    POP BC

    DJNZ ... HL Contains Screen Address
    ; BC preserved

    ; Example ...
    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] ; ***********…

    ... /> PUSH AF
    PUSH BC
    PUSH HL
    ...
    Spriteloop:
    PUSH BC

    ; Is ... HL Contains Screen Address
    ; BC preserved

    ; Example ...
    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 …

    ... /> lp1:
    PUSH BC
    PUSH DE
    POP BC
    LD A,(YPOS ... PUSH AF
    PUSH BC
    PUSH HL
    POP BC
    POP AF
    ...
    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 …

    ... /> INC B
    PUSH BC
    CALL WRITECHAR
    POP ... /> INC B
    PUSH BC
    CALL WRITECHAR
    POP ... /> INC B
    PUSH BC
    CALL WRITECHAR
    ...
    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…

    ... HL
    PUSH BC
    PUSH BC
    INC ... HL
    PUSH BC
    PUSH BC
    INC ... SP,HL
    PUSH BC
    PUSH BC

    ... ,HL
    PUSH BC
    PUSH BC

    ... BC,80
    ADD IX,BC
    ADD IY,BC

    POP BC ...
    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…

    ... B-reg
    prtab inc bc ; Start of tableprinting
    dec ...
    Dr BEEP Dr BEEP September 2004 Development
  • Index register subtractionHi, Just wondering if there a way to perform SBC HL,BC on the IX or IY registers. I can't find an op code for it, and my assembler doesn't recognise…

    ... way to perform SBC HL,BC on the IX or IY ... strange however that ADD HL,BC can be prefixed to work ...
    dmsmith dmsmith September 2004 Development
  • IMAGINE SOFTWAREYes, I'm fully aware this is a Spectrum forum but.... I've recently picked up a VIC 20 game by Imagine Software called "MEGA VAULT". It's dated 19…

    ... games like "COSMIC CRUISER" and "BC BILL"

    I'd ...
    chaosmongers chaosmongers October 2004 Games
  • Few games on eBay[url="http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&rd=1&item=8144330869&ssPageName=STRK:MESE:IT"]http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&r…

    ... of six games - Cosmic Cruiser, BC Bill, Pedro, Zzoom, Zip Zap ...
    sdaonline sdaonline November 2004 Sales
  • 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…

    ... B,16
    PRTTILELOOPX PUSH BC
    PUSH DE
    LD ...
    POP DE
    POP BC
    INC E
    INC ...
    Mr Millside Mr Millside February 2005 Development
  • Fastest way to write something to screen$Hi, I just got pasmo.exe and start playing with attr scrolling, well, not scrolling, just write different values to a block and see if I can introdu…

    ... SP,base+len
    LD BC,len/2
    LD D ...
    PUSH DE
    DEC BC
    LD A,B
    AE.Vasconcelos AE.Vasconcelos April 2005 Development
  • ANN: Tipshop updated Monday, 04 July 2005Monday 04 July 2005 June! (Oh, Terry? Ed)... Quite a large update this month, which I managed to get processed on time, despite being on holiday for…

    ... , La, Alma de Guerrero, Babaliba, BC's Quest for Tires,
    hackersanon hackersanon July 2005 Announcements
  • Key press to ASCII valueI need a bit of code that will give me an ASCII value when the key is pressed. I only really need a-z. I tried using the following code but it only s…

    ... LD DE,$FF2F
    LD BC,$FEFE
    NXHALF IN A ...
    Mr Millside Mr Millside July 2005 Development
  • Kempston joystickI don't have a joystick connected to my PC so I'm not able to get the values I need so can anyone help me out ? I read in this forum that I can read …

    ... code:
    [code]
    ld bc,31
    in a,(c ...
    Mr Millside Mr Millside August 2005 Development
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... hl ; save registers
    push bc ; save registers
    ld c ... (1 - n) restore
    pop bc ; retrieve registers
    pop hl ...
    Dr BEEP Dr BEEP August 2005 Development
  • Switch to 48mode without 'SPECTRUM' commandIs there a poke(s) to switch to 48 mode without SPECTRUM command. I want my tape loaders to switch automatically. I know how to switch ram banks ok…

    ...
    [code]DI
    LD BC,32765
    LD A,20 ...
    FrankT FrankT September 2005 Sinclair Basic
  • Draft specs for TZX v1.20Hi all! In the attempt to restart the development of the TZX format, I've put online the first version of the draft document [1]. At the moment ther…

    ... 0x11, in particular those like BC Quest, etc (and possibly ZX81 ...
    Luca Luca October 2005 Emulators
  • 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…

    ... ld de,16385
    ld bc,6143
    ldir
    < ... ex de,hl
    pop bc
    ld (hl),c< ... /> inc hl
    pop bc
    ld (hl),c
    robpearmain robpearmain November 2005 Development
  • Machine Code: quicksort optimisationI came across this z80 quicksort implementation when going through the wikipedia article on the same. It's 44 bytes long. I was wondering if any of …

    ... /> [quote]
    ;
    ; Usage: bc->first, de->last ... next2
    ld a,(bc) ;swap (bc),(de)
    ld ... a,(de)
    ld (bc),a
    ld a,h ... ;pop lo
    push bc ;stack=left-hi
    ...
    Arjun Arjun January 2006 Development
  • Codies help? Werewolves of LondonHi All, never one for shying away from the deep end, having only just dipped my toe in to the world of machine code I find myself trying to find out …

    ... register = 1, If yes then decrement to 00 and carry on ...
    Womble Womble March 2006 Sinclair Basic
  • FP Calc QuestionWhen using the FP Calc (RST 28h) to perform a subtraction how do you find out what the sign of the result is? ie. +/-. For example if I stack two va…

    ... + or -500. I am using BC to stack and retrieve to ...
    dmsmith dmsmith March 2006 Development
  • ANN: Tipshop updated Tuesday, 28 March 2006Tuesday 28 March 2006 Lots of new POKEs and maps this month - AND the update is actually on time :) * Added C & VG as a listed source, and edited t…

    ... : The Dungeon of Drax ,
    BC's Quest for Tires , Blizzard ...
    hackersanon hackersanon March 2006 Announcements
  • Spin save dissembly problemHey Dunny and others Spin dudes! There seems to be a small problem with the save dissembly function from the dissembler in Spin. This is the exact o…

    ... /> org $67c2
    l_67c2: push bc ; 26562 11ts
    push de ... de ; 26641 10ts
    pop bc ; 26642 10ts
    ret ; 26643 ...
    Kiwi Kiwi May 2006 Emulators
  • Problems with BC bill gameI have loaded this game with several emulators and game files with the same result: you can choose the input -> sinclair, kempston, etc but i cant st…

    I have loaded this game with several emulators and game files with the same result:
    you can choose the input -> sinclair, kempston, etc but i cant start the game itself. :???: Somebody has actually played with an emulator? Any help?
    (Maybe ...
    Emlyn_Hughes Emlyn_Hughes June 2006 Games
  • Problem with rotating procedureHi folks! I wrote a proc in z80 asm, based on: x' = x * cos (z) - y * sin (z) y' = x * sin (z) + y * cos (z) I used a precalculated table of sin a…

    ... /> ;rotatez
    ;============================================================================
    rotatez: ld bc,(anglez) ;xc=cos(anglez)*x ... (xc),de

    ld bc,(anglez) ;ys=sin(anglez)*y ... (ys),de

    ld bc,(anglez) ;xs=sin(anglez)*x ...
    xor xor July 2006 Development
<1…3456789…34>

Latest Posts

  • Your Favorite Magazine Cover Tapes.
    dm_boozefreek on 4:45PM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 4:10PM
  • "Late Entries"
    harriusherbartio on 4:00PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 1:34PM
  • Simple Sprite Routine
    dmsmith on 1:25AM
  • I am currently watching.....
    zx1 on April 11
  • Today's BASIC program: visit attribute cells I am interested in, in pseudorandom order
    Paradigm Shifter on April 11
  • How do you share programs online?
    firelord on April 11
  • Celebrity deaths...
    Ælita on April 11
  • Who Has Got The Earliest ZX Spectrum Software?
    harriusherbartio on April 11

HitBox

Word Docs Hits
cpi 101 164
decrement 190 311
bc 3.6K 14K

Related Threads

  • 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…
  • 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…
  • 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 …
  • CPI emulationI'm currently writing Sinclairean's emulation assembly for the CPI/CPD/CPIR/CPDR instruction group. Does anybody know what exactly the behavior of th…
  • 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.…
  • SBC IX,DE/BCAlways wondered why there wasn't a SBC IX, DE/BC command....<br /> <br /> so have to use<br /> <br /> PUSH HL ; save original HL<br /> PUSH IX ; …
  • Fuse tests - INC BC causes contention delayHi all,<br /> <br /> In the FUSE test suite it has the following for the output of opCode 0x3 (INC BC):<br /> <br /> 0 MC 0000<br /> 4 M…
  • Problem with BC corrupting after DJNZJust for fun, I'm messing around trying to get the level maps from Lemmings to display on the screen with machine code. It's been ages since I did an…

Related Searches

  • ld bc eostr string
  • call address in bc
  • print usr bc
  • bc bill
  • bc ill brown
  • bc bill brown
  • bc kid
  • usr bc register
  • usr bc register address
  • 14 bc b9
  • cpi
  • print bc assembler
  • ld bc hl
  • otdr decrement
  • ay envelope decrement
  • cpi copy
  • decrement screen line
  • bc
  • cpi ldecrement bc
  • cpi ldecrement bc chris pile

Copyright © 2024 World of Spectrum