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.003s
<1234567…34>
  • ZERO Emulator - BugsI have been using Zero emulator to experiment a few routines in assembly, since it has a somewhat usable debugger. However I believe I found a few b…

    ... make similar use to "DEC BC", and actually detect a zero ... instructions have to repeat until BC==0 so they have ... and you want to 'dec bc' and repeat if not ... :

    [code]
    cpi
    jp pe, loop_again
    inc hl
    dec bc
    ld a,b
    Alcoholics Anonymous Alcoholics Anonymous July 2015 Emulators
  • ZX Spectrum CartridgesI have been thinking of "cloning" ZX Cartridges for a while (case, board and silicon skirt), to be able to make new releases or replace damaged cartr…

    ...
    DEC BC ; Compensate for CPI increment
    SUB ... Param

    CPI ; Critical set of instructions ...
    DEC BC ; Compensate for CPI increment
    SUB ... EX AF,AF'
    CPI ; Critical set of instructions ...
    RMartins RMartins July 2016 Hardware
  • ZX Spectrum CartridgesI have been thinking of "cloning" ZX Cartridges for a while (case, board and silicon skirt), to be able to make new releases or replace damaged cartr…

    ... not familiar with the [b]CPI[/b] instruction, since it compares ... pattern
    CMDADDR LD A,(BC)[/code]

    Follow the ... byte instruction [b]LD A,(BC)[/b], followed by a "manufactured ... ,R = 0x0003[/b]], due to BC contents

    NOTE: ...
    RMartins RMartins September 2016 Hardware
  • Mastering flagsI'm little lost when different flags are set/reset after logic operations, and what conditions must be met. For example, [code] ld a, MODE…

    ... operations (LDI, CPI etc), PO is set when BC reaches 0, otherwise ...
    Hikaru Hikaru September 2016 Development
  • Graphics program in AssemblyHi so I think I'm getting the hang of this so I've done this program. It writes directly to the screen. I'm using ZX Spin. [code] LD HL,16384 LD B,…

    ... /> INC HL
    DEC BC
    LD A,B
    INC D
    CPI
    JP PE, Loop

    The CPI instruction does "INC HL; DEC BC; set PE flag ... if BC!=0". It also ... in this usage.

    CPI+JP -> 5 bytes, 26 ...
    Alcoholics Anonymous Alcoholics Anonymous November 2016 Assembler
  • Games for relaxHi fans ! I've not enough time for playing the old spectrum's games. I played a lot in the past, I read all topic and try many games what you write …

    ... annoying !

    I forget BC Bill and last time I ...
    Pgyuri Pgyuri August 2001 Games
  • Certain Games Wanted - Very Good Prices PaidHi I have been after a few games now for ages and have turned to this forum as the last resort, can you help? I will pay ?5.00 for each of the follo…

    ... - Ultimate
    Schizoids - Imagine
    BC Bill - Imagine
    Zolyx - Firebird ...
    paul paul December 2001 Sales
  • Short Z80 QuizQ1) Which program gives different result ? A) XOR A ADD A,A B) XOR A ADC A,A C) SCF ADD A,A D) SCF ADC A,A Q2) What is the equivalent of NEG …

    ...

    B)
    LD BC,10
    LD HL,60000 ...
    INC HL
    DEC BC
    LD A,B
    Dr BEEP Dr BEEP July 2002 Games
  • 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…

    when 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 control screen comes up and you can select keyboard,kempston,interface 2 and protek(cursor).i hope this ...
    ladderman ladderman October 2002 Games
  • 250,000 Games..... Instalment the FinalAll, I have just got this Email from Andy (Sirclive) //quote Hi Tony , well here we are again ! , situation good for you wos guys , bad for ebay …

    ... , magic knight trilogy
    (disk) , bc quest for the tires , ghostbusters ...
    ADJB ADJB November 2002 Games
  • 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

    Can anyone get this game running with a emulator. I get as far as the main screen but can't start the game
    Pollster Pollster February 2003 Games
  • Time Gate and GryzorHi there, long time reader, first time poster! Was it possible to complete Timegate? I remember warping through galaxies (at random it seemed) wiped…

    ... wanted Stunt Car Racer and BC Bill!
    Rockster77 Rockster77 May 2003 Games
  • URGENT programming question !I've gotta draw a line from machine code using the standard routine at 24B7, which expects the delta-X and delta-Y values on the BASIC stack. I put t…

    ... the stack by calling 2D2B (BC -> BASIC stack). However, it ... only for positive values of BC. Anyone know how to put ... a negative BC on the BASIC stack ?
    GOC GOC July 2003 Sinclair Miscellaneous
  • 128 Memory PagingI'm having a problem getting my brain around paging. Well, actually the bit I don't understand is how reading I/O ports works! I hope the collective …

    ... - you set the value in BC to the port number, then ... page number
    LD BC,32765 ;Set BC to 32765 for write ...
    trellis trellis August 2003 Sinclair Basic
  • AssemblageCan any of you marvellous programmers out there recommend a Speccy assembler that even a complete dunce could use? At the risk of sounding thick, as…

    ... four bytes.

    ld bc, 99
    ret

    The Mighty Dopethrone The Mighty Dopethrone November 2003 Sinclair Miscellaneous
  • ANN: Tipshop updated Wednesday, 10 March 2004Wednesday 10 March 2004 An updated search script, and the tips cross the 10,000 mark! * Yep, you read that correctly - we now have over 10,000 tips…

    ... Prix, Alien Storm,
    Assassin, BC Bill, Beach Head 1, Beverly ...
    hackersanon hackersanon March 2004 Announcements
  • RST 16 with TASMCan any body tell me what is wong when I assemble this test code with TASM : ;print a long string "help me" start .org 32000 ld a,2 call 5633…

    ... /> ld de,data
    ld bc,7
    loop ld a ...
    or c
    dec bc
    ret z
    ld ...
    Steve(spt) Steve(spt) April 2004 Development
  • FAST PIXEL DRAWINGI'm looking for the fastest way to put a pixel to the screen (on spectrum ofcoz:). Here is my own procedure (written in PASMO). But I don't how do it…

    ...
    and 00000111b
    ld bc,bits
    add a,c ... c,a
    ld a,(bc)

    ld b,(hl ...
    zxmaniac128 zxmaniac128 May 2004 Development
  • Can you remember this game?You played a Caveman who had to collect dinosaur eggs whilst hitting a tyrannosarous rex with hammers. I've had a brief look and it definately wasn'…

    You played a Caveman who had to collect dinosaur eggs whilst hitting a tyrannosarous rex with hammers.

    I've had a brief look and it definately wasn't BC or Caveman.
    darran@gamesTM darran@gamesTM July 2004 Games
  • IM 2 interrupts and smooth scrolling - easy peasy!Okay, been fiddling around with IM 2 and have actually mastered (I think) how to use IM 2! Now I run my game Ragnar Revival in IM2 and use HALT to sy…

    ... ;pointers to address
    ld bc,260 ;229*256+229, i ...
    ekoman ekoman July 2004 Development
  • 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
<1234567…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
ldecrement 0 0
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
  • cpi copy
  • bc
  • ld bc 65533 a 254 out c
  • ld bc 65533
  • screen buffer push bc
  • cpi decrement bc
  • cpi ldecrement bc chris pile

Copyright © 2024 World of Spectrum