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
<1…15161718192021…34>
  • I would like to write emulatorHi guys, I'm new to this forum but I realise that you must get loads of posts from people asking "how do I write an emulator" so I'll try and be spe…

    MadDoc,

    when incrementing BC, you need to treat the ... C (the low byte of BC).
    [/code]
    I suspect ...
    Dunny Dunny September 2004 Development
  • I would like to write emulatorHi guys, I'm new to this forum but I realise that you must get loads of posts from people asking "how do I write an emulator" so I'll try and be spe…

    ... mean that when we INC BC, we are really just incrementing ... />
    No. You're incrementing BC as a pair. Don't ...
    cyborg cyborg September 2004 Development
  • I would like to write emulatorHi guys, I'm new to this forum but I realise that you must get loads of posts from people asking "how do I write an emulator" so I'll try and be spe…

    ... most significant bits from the BC pair - division (or shifting) is ...
    cyborg cyborg September 2004 Development
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    ... random number generation
    LD BC, 10
    CALL _get_random_number
    ; Range between 0 and (BC-1)

    _get_random_number:
    horace horace September 2004 Development
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23. Any ideas on how to code …

    you need to call FP_TO_BC
    which puts a sixteen bit integer into
    the BC register.
    STK_TO_BC sounds correct but in fact gets
    two 8 bit parameters from the stack with error checking.
    Good Luck.
    ( I haven't tested this )
    Geoff Geoff September 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 …

    ...
    EXX
    PUSH BC
    PUSH DE
    ... /> PUSH AF
    PUSH BC
    PUSH HL
    ...
    EXX
    PUSH BC
    PUSH DE
    ...
    robpearmain robpearmain September 2004 Development
  • Little Known Classic GamesI've been spending a while downloading some of my fave speccy games lately, and while I probably have most of the well-known great speccy games on my…

    ... (Blaby)
    GOTCHA! (Blaby)
    BC BILL (Imagine)
    ID (can ...
    chaosmongers chaosmongers September 2004 Games
  • 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 …

    ... /> POP DE
    POP BC
    EXX
    ex ... LD SP,HL
    PUSH BC
    PUSH DE
    ... ex af,af'
    PUSH BC
    PUSH DE
    PUSH ...
    Alcoholics Anonymous Alcoholics Anonymous September 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 …

    ... /> PUSH AF
    PUSH BC
    PUSH HL
    ... EX AF,AF'
    PUSH BC
    PUSH DE
    ... EX AF,AF'
    PUSH BC
    PUSH DE
    ...
    robpearmain robpearmain September 2004 Development
  • On 48k, can I copy 4k before next screen updateFollowing on from my thread at [url="http://www.worldofspectrum.org/forums/viewtopic.php?topic=6423&forum=11"]http://www.worldofspectrum.org/forums/v…

    ... br /> POP AF
    POP BC
    POP DE
    POP ... br /> POP AF
    POP BC
    POP DE
    ... br /> PUSH DE
    PUSH BC
    PUSH AF
    EXX ...
    PUSH DE
    PUSH BC
    PUSH AF
    ; ...
    gasman gasman September 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 …

    ... /> PUSH AF
    PUSH BC
    PUSH HL
    ... EX AF,AF'
    PUSH BC
    PUSH DE
    ... EX AF,AF'
    PUSH BC
    PUSH DE
    ...
    robpearmain robpearmain September 2004 Development
  • Smooth Screen ScrollingHi Everyone, Any suggestions on what is the best way to do horizontal scrolling ie. in Zynaps fashion. I am working on a routine at the moment, whi…

    ... byte in window.
    ld bc,4096 ; size of area to ... to the left.
    dec bc ; loop counter.
    ld a ...
    jonathan jonathan September 2004 Development
  • the happiest days of your life-pt2hello,again i have come up with 2 solutions to the problem of solving this game:- 1.the more people that try to solve this game (by combining diffe…

    ... /> [code]
    #DB44 LD A,(BC) ; BC points to incoming item (For ... have
    #DB6B LD A, (BC) ; 'A' contains #62
    #DB6C ... PUSH BC ; Preserve location of incoming item ...
    Mr. Anonymous Mr. Anonymous September 2004 Games
  • 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…

    ... ,TABLE-1
    PR INC BC
    DEC B
    LD ...
    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…

    Sadly, it can't be done in a single instruction as SBC HL, BC is an ED prefixed instruction and the IX/IY opcodes don't work with any ED instructions.

    You'll need to swap some registers I'm afraid!

    Marko
    Marko Marko October 2004 Development
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... /> dec c
    push bc
    push hl
    ... /> call EE
    pop bc
    exx
    ld ... c

    push bc
    push hl
    ... /> call EE
    pop bc
    7774 exx
    ...
    Fikee Fikee October 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…

    If BC is a constant you may not need to swap anything - just negate it and add (flags will be different though)
    GOC GOC October 2004 Development
  • I would like to write emulatorHi guys, I'm new to this forum but I realise that you must get loads of posts from people asking "how do I write an emulator" so I'll try and be spe…

    ... know, for example, what AF, BC, DE and so on are ...
    gasman gasman October 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…

    ... de \ ld (hl), 0 \ ld bc, 6143 \ ldir
    [/code]
    Erlstoned Erlstoned October 2004 Development
  • Zecut0r and ZAFA while ago (about 2 yrs)i took VbSpec and tried to port it to Delphi 6. Althought it was pretty weak, it. Meanwhile DelphiSpec 0.1 appeared and i wa…

    ... /> pop hl
    pop bc
    push bc
    push hl
    Steve(spt) Steve(spt) October 2004 Emulators
  • Zecut0r and ZAFA while ago (about 2 yrs)i took VbSpec and tried to port it to Delphi 6. Althought it was pretty weak, it. Meanwhile DelphiSpec 0.1 appeared and i wa…

    ... :
    Pop hl
    Pop bc
    Push hl
    Push ... bc


    I mean ...
    zecut0r zecut0r October 2004 Emulators
  • Can Anyone explain sprites in Jet Pac/Atic Atac etcJet Pac was 16k, and yet the sprites were impressively fast. I notice they had a slight flicker at times, but were notmally pretty flicker free. W…

    ... ,(hl)

    ld (Sprite_LastRotateAddr),bc

    ; -----

    ... ld bc, EraseRow
    push bc
    ld bc,(Sprite_RotateAddr)
    push bc
    ld bc, NextRow
    push bc
    ld bc,(Sprite_LastRotateAddr)
    push bc
    robpearmain robpearmain October 2004 Development
  • How can I scroll a line of text and wrap perfectlyI know this is easy for most of you but for some reason I am messing it up. In Assembly Language I want to do the following: I have 1 line of text …

    ... , RLC D, RLC E, POP BC, RLC B, RLC C, EXX ...
    cyborg cyborg October 2004 Development
  • Reading the keyboardDoes anyone have a code sample to read the keyboard in machine code ?

    ...
    PUSH HL
    PUSH BC

    CALLADDR CALL 0 ...

    POP BC
    POP HL
    DJNZ ...
    dmsmith dmsmith November 2004 Development
  • Read the joystickAnyone written a nice joystick reading snippet?

    [code]
    ld bc,31
    in a,(c)
    [/code]

    Should do the trick for Kempston. Other interfaces are left as an exercise for the reader.
    AndyC AndyC November 2004 Development
  • Reading the keyboardDoes anyone have a code sample to read the keyboard in machine code ?

    ... /> ; GetKey
    ;
    ; uses : af,bc,de,hl,af'
    ; exit ... .

    .SPGetKey
    ld bc,$fefe ; get ready to scan ...
    Alcoholics Anonymous Alcoholics Anonymous November 2004 Development
  • Can anyone recommend website builder softwareI need some software that is simple to use ie u can drag photos from your hard drive and place them on your web page, needs no programming knowledge …

    ... that - [url="http://fslactivities.sd61.bc.ca/ezHTMLarea/"]http://fslactivities.sd61 ... .bc.ca/ezHTMLarea/[/url] if ya ...
    Tobo Tobo November 2004 Sinclair Miscellaneous
  • Were Imagine games any good?After watching THE documentary for the first time and having played (well attempted to play) their games over the last twenty years (plus viewing the…

    I did like BC BILL on the C64 - Though I haven't played it for a long time, so I am not sure how it stands up today!
    LeeT LeeT November 2004 Games
  • Were Imagine games any good?After watching THE documentary for the first time and having played (well attempted to play) their games over the last twenty years (plus viewing the…

    BC Bill was a great game.< ...
    chaosmongers chaosmongers November 2004 Games
<1…15161718192021…34>

Latest Posts

  • Minor British Sports that did become games on the ZX Spectrum
    dmsmith on April 22
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on April 22
  • Goodbye Z80
    moggy on April 22
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on April 22
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on April 22
  • I am currently watching.....
    Antiriad2097 on April 22
  • European Software Titles with an English version
    harriusherbartio on April 22
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on April 22
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 22
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21

HitBox

Word Docs Hits
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 …
  • 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

  • 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
  • print bc assembler
  • ld bc hl
  • bc
  • ld bc 65533 a 254 out c
  • ld bc 65533
  • screen buffer push bc
  • screen buffer pop bc
  • screen buffer pop bc ld sp hl
  • cpi ldecrement bc
  • cpi decrement bc
  • cpi ldecrement bc chris pile

Copyright © 2024 World of Spectrum