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.086s
<1…28293031323334>
  • The Pros and Cons of "alternative" assembler syntaxContinuing from [URL]http://www.worldofspectrum.org/forums/showpost.php?p=720754&postcount=72[/URL] [QUOTE=u6c87;720754]But that wouldn't change if…

    ... software is designed and written in terms of algorithms and ... You can write software entirely in C and still hit problems. All ... have to write spectrum specific code for a spectrum etc ... screen resolutions so again your code becomes platform specific.
    < ...
    guesser guesser September 2013 Development
  • The Pros and Cons of "alternative" assembler syntaxContinuing from [URL]http://www.worldofspectrum.org/forums/showpost.php?p=720754&postcount=72[/URL] [QUOTE=u6c87;720754]But that wouldn't change if…

    ... . Even without any source code whatsoever, it was done ... are always present in non-trivial and well written code.
    ... You can write software entirely in C and still hit problems. All ... screen resolutions so again your code becomes platform specific.
    ...
    Alcoholics Anonymous Alcoholics Anonymous September 2013 Development
  • Compiler conventions for passing args/return valuesI've been mulling over this for a while, but I can't spot it covered anywhere. There are various methods for passing args and return values between …

    ... and could only be used in code like "if (test_this(...))". If ... C function is declared in the header as follows:

    [code ... utoa(a,b,c) utoa_callee(a,b,c)
    [/code]

    ... The CALLEE linkage results in small, fast code. You can also see ...
    Alcoholics Anonymous Alcoholics Anonymous September 2013 Development
  • Experimenting with turboloadersHello, My first post, having lurked here for a while. I'm a lifelong computer nerd, Spectrum fan since childhood in the eighties, and have recently…

    ... hypothetically write would be written in C# and would thus run ... that I might hypothetically write in the future? But the ... my day job involves writing C# code that generates non-trivial ... SQL queries, so writing C# code that generates assembly language isn ...
    stephenw32768 stephenw32768 September 2013 Development
  • What would be the simplest tape loading routine?I'm searching for some small assembly snippet I can use to load a (headerless or not) block from tape into RAM I can embed in my C games to load furt…

    ... , if you use the code from the original ROM then ... modify) the OpenSE BASIC code (derived from the SAM ... skeleton ROM):
    [code]; THE 'LD-BYTES' SUBROUTINE< ... border color
    ld c, a ; store A in C
    and % ... /> ret ; end of subroutine[/code]
    chev chev October 2013 Development
  • Completely free games?Hi, I would like to know if there are any open source or completely free games for ZX Spectrum. Or at least some other free programs without any lin…

    ... the fact that all the code in SpecBAS is my own, but ... them myself, often converting from C/C++ to Pascal.

    If ... I'll generally give credit in the comments... but that's ... filename matching system for wildcards in the file handling routines. And ...
    Dunny Dunny October 2013 Games
  • LZ4 decoderI encountered the [URL="http://code.google.com/p/lz4/"]LZ4 compressor[/URL] a few weeks ago. Reading the [URL="http://fastcompression.blogspot.co.uk…

    ... quote]The encoder is implemented in C, and there are Windows and ... available from the [URL="http://code.google.com/p/lz4/"]LZ4 ... Google Code page[/URL]. My lz4-extract program was written in C# ( ... compression. I did muse in my original post whether there ...
    stephenw32768 stephenw32768 October 2013 Development
  • Wow! This is really a staggering achievement (programming, but still interesting!)The subject of good/clever programming came up in the SE BASIC topic, and I thought I'd mention this, but then that thread went back on topic (er, no…

    ... ST OS was written in C originally and the C compiler they used ... PC until 2006 ;))

    C/C++ compilers are a lot better ... So much so in fact that the code produced will normally be ... written assembly code. The only bits that are written in assembler these ...
    Paradigm Shifter Paradigm Shifter October 2013 Chit chat
  • LZ4 decoderI encountered the [URL="http://code.google.com/p/lz4/"]LZ4 compressor[/URL] a few weeks ago. Reading the [URL="http://fastcompression.blogspot.co.uk…

    ... it currently stands:

    [code] ;; decoder for LZ4 compressed data ... /> ld b,0 ; rest of code can assume B=0
    ;; at this point, we have in C a token with only
    code]

    -Stephen
    stephenw32768 stephenw32768 October 2013 Development
  • Getting aquainted with the IF1bisToday, fifteen days after dispatch, the IF1bis arrived at my door. In perfect order. No customs, no TVA and no handling fee involved. The arrival of …

    ... with a toothbrush dipped in alcohol, but the edge ... IF1BISSH.BIN are present in the c:\TMP directory of ... ?[/COLOR]

    In such a situation the only ... loading. Is the Machine Code in line 0 the loader for ... use a normal block of code?[/COLOR]

    ...
    rune rune October 2013 Hardware
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; --- THE TAPE HANDLING ROUTINES ----------------------------------------------
    ... to zero
    ld a, c ; C to A
    xor % ... border color
    ld c, a ; store A in C
    and %00000111 ... br /> ret ; end of subroutine[/code]
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; --- THE ARITHMETIC ROUTINES -------------------------------------------------

    in C
    push bc ; stack ... else negate
    ld c, a ; store in C
    ld a, '-' ... ret ; end of subroutine[/code]
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; THE 'FETCH TWO NUMBERS' SUBROUTINE< ... significant byte
    ld c, (hl) ; store it in C
    inc hl ... ; main register set
    rr c ; shift C right
    rra ; shift ... ; report
    defb Number_too_large ; overflow[/code]
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; THE 'DIVISION' OPERATION
    ld c, a ; store sign in C
    inc a ... 0x107c ; priority 0x10, op code 0x7c: hex$()
    jp ... high nibble
    ld c, a ; store in C
    ld a, ... 255 ; unused locations (common)[/code]
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... index
    ld c, a ; table code to C
    call ... c ; code to A
    jp nc, s_alphnum ; jump if code not in ... table
    ld c, (hl) ; code
    ... 0x105a ; priority 0x10, code 0x5a (read-in)
    rst next_char ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... op-code (0xdc to 0xef)
    ld c, a ; op-code to C
    ld c, (hl) ; get code
    ld hl, ... br /> ld b, a ; store in B
    fwait ; perform
    code by eight
    ld c, a ; code to C
    cp ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; --- THE FLOATING-POINT CALCULATOR ... read-in
    defw x80_fneg ; negate
    defw x80_fasc ; code
    in C and number in DE
    pop ... ld a, (de) ; get code
    call alpha ; is it ...
    chev chev October 2013 Development
  • Significant machines by yearI'd roughly divide Spectrum's hardware history into four periods: Sinclair (1980 to 1985), Amstrad (1986 to 1988 ), Russian (1989 to 1996) and Homebr…

    ... ROM part with equivalent code. The quickest way to ... replace the original code with different code that produces the ... same result. So LD A, B; OR C ... ; becomes LD A, C; OR B, and ... of reverse engineering the code in the gaps.
    chev chev October 2013 Hardware
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; --- BASIC LINE AND COMMAND INTERPRETATION ... /> call e_line_no ; point to first code after a line number
    ld c, a ; store command in C
    rst next_char ... 0 to 5)
    ld c, a ; code to BC, B = 0 ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; THE 'DEF FN' COMMAND ...
    ld a, (de) ; code to A
    inc de ... /> call co_temp_3 ; embedded control code?
    ret c ; return with carry set ... /> co_temp_6:
    ld c, a ; store A in C
    ld a, d ... , else LD A, 255[/code]
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    [code]; THE 'DRAW' COMMAND ROUTINE ... H
    ld c, a ; store result in C
    exx ; ... d_l_hr_vt:
    ld c, a ; store A in C
    push de ... d_l_plot ; jump if x position in range

    ... jp set_work ; immediate jump[/code]
    chev chev October 2013 Development
  • z88dk and im2I set up a minimal IM2 mode so I can draw sprites for a laff [code] #include <string.h> #include <stdio.h> #include <im2.h> #include <stdlib.h> #in…

    ... want to write the ISR in C, you can do that too ... restore registers and write your C code. Or #asm that directly ... example memory map:

    [code]
    48 ; ADDRESS (HEX) LIBRARY ... a pragma:

    [code]
    "main.c"

    #include
    Alcoholics Anonymous Alcoholics Anonymous October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... if so
    cp c ; matching code?
    inc hl ; ... indexer_1 ; jump with incorrect code
    scf ; set carry ... swap stream number and channel code
    fce ; exit ... case
    ld c, a ; store in C
    ld hl, ...
    chev chev October 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... ld a, l ; control code to A
    cp 22 ... offset
    ld c, a ; store it in C
    ld a ...
    chev chev November 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... /> add hl, hl ; code
    add hl, bc ... /> rlc c ; double the value in C
    ...
    chev chev November 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... br /> ld (hl), c ; write code
    jr add_ch_1 ; ... (de), a ; store code in the space
    inc ...
    chev chev November 2013 Development
  • SE Basic IV Buffy v4.1 source (WIP)I've been doing a major refactor on the SE Basic source and I'd appreciate a code review from anyone who has time to look at it. I've almost certainl…

    ... lower limit?
    ret c ; return if so
    code in B
    and %00000111 ...
    chev chev November 2013 Development
  • A new full-screen bicolor engine called NIRVANA[I]OK, there's something I need to clarify first: Nowadays if you write [B]"multicolor"[/B] everyone assumes it refers to "multicolor 8x1" (an attri…

    ... to know is documented in the source code.

    ... If you will program in Assembly, read the comments in ... comments in "nirvana.bas".

    If you will program in C, ... read the comments in "nirvana.h".
    Einar Saukas Einar Saukas November 2013 Brand new software
  • A new full-screen bicolor engine called NIRVANA[I]OK, there's something I need to clarify first: Nowadays if you write [B]"multicolor"[/B] everyone assumes it refers to "multicolor 8x1" (an attri…

    ... and chop off the last code file at 32768. Save that ... had a somewhat different loader in which I've relocated the ... to do the printing in BASIC rather than in C :))

    I ...
    Timmy Timmy November 2013 Brand new software
  • Converting an integer arbitrary large binary number into a printable decimal formThis was asked a long ago at the comp.sys.sinclair newsgroup. At that time, I came up with a solution by extrapolating the classic algorithm of suces…

    ... got BCD maths built in? You could probably do ... everything just using BCD in that case? Or am ... for that (and will be in C).

    EDIT: ... or get a bignum library in C or C++ ;)

    EDIT3 ... might make your existing code faster than it currently is ...
    Paradigm Shifter Paradigm Shifter November 2013 Development
<1…28293031323334>

Latest Posts

  • Where to Buy the New or Fairly Recent , Excellent ZX Spectrum Games Software?
    harriusherbartio on 11:40AM
  • 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
  • 1992 Spectrum Software
    harriusherbartio on April 7

HitBox

Word Docs Hits
code 41.6K 91.2K
in 401.9K 810.5K
c 20.3K 48.8K

Related Threads

  • Arrays in C and C++ from a Java Programmer.I have been looking arround the web and found many conflicting answers to this question so I thaught I'd ask you folkes.<br /> <br /> What is the C a…
  • Z80 disassembler C/C++ source codeHello,<br /> <br /> I just thought I might share the [URL="http://zxds.raxoft.cz/docs/z80d.cpp"]source code[/URL] of the Z80 disassembler I have writ…
  • LOAD "" CODE in machine code/store 128 bank dataHow do you LOAD "" CODE from machine code?<br /> <br /> I have written the following MC routine that fits into a REM statement in a basic program.<br…
  • getting c nonsense in basic when trying to load a program through a string in +3 basicstrangely if i use load s$(to 8), it says nonsense in basic but works when i run it. but when i execute the command without a line no it works withou…
  • comp.sys.sinclair Crap Games Competition (C.S.S.C.G.C. 2022) is here!Welcome one and all!<br /> <br /> [img]https://i.postimg.cc/3yYpjjbH/cropped-CCG2022.png[/img]<br /> <br /> I am proud to announce the opening of…
  • Glad to see the ZX Spectrum is in the Science Museum in London.About time too! Last tiem I looked there was just the ZX-80 but the Spectrum is in there now too, alongside a pong-clone and a Vic-20.
  • ANN: Write Spectrum Games in C with speclib121Announcing the sprite pack C library for the z88dk C cross compiler available from:<br /> <br /> [url="http://justme895.tripod.com/main.htm"]http://j…
  • Chaos - Secret names found in the code! ooerI doubt by any stretch of the imagination I'm the first but hey its an attention grabbing Subject line innit.<br /> <br /> I was editing away at the …
  • have a speccy program not in the archive or in MIAIntermediated Maths 2 for the 48K!!
  • 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…

Related Searches

  • developing in c
  • machine code sprite movement in basic
  • change tape to disk in machine code
  • delays in timed code
  • machine code in loading screen
  • floating bus in c
  • pause 0 in machine code
  • load code from basic in emulator
  • divide in machine code
  • code in udg memory
  • machine code in rem
  • in a c
  • in a c key map
  • in c
  • in c instruction
  • plot in machine code
  • machine code paint type in
  • machine code graphics type in
  • machine code in basic
  • loading in machine code

Copyright © 2024 World of Spectrum