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.081s
<1…28293031323334>
  • Mountains of Ket - Written in Basic?Was Mountains of Ket written in Basic? And if so is there any way to break into it? The parser's pretty impressive, I want to see how it was done.

    I break in and it works as follow:
    INPUT c$
    ... poked phrase with verb dictionary in memory and return number of ... /> if there is more characters in c$: POKE it to memory, USR ... and lazy overview, is BASIC code with search table routines in assembler.
    catmeows catmeows November 2013 Games
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    Well I'd definitely program in C then. You can still ... : And you can get C compilers to output ASM anyway ... compilers jumble all the code up and are probably ... time. Only things written in ASM these days are very ... GPU shaders are done in HLSL or GLSL these days ...
    Paradigm Shifter Paradigm Shifter November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... and I had never coded in assembly language before ;) I only ... I looked at the asm code (which was well written and ... ) and rewrote the init routine in C, looked at the output and ...
    Paradigm Shifter Paradigm Shifter November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... Twins write their games in C they're not cross ... assets, but the engine code doesn't have to be ... calls, the code remains intact (the libraries work in a simmilar ... calls to be the same in every platform.

    C for MSDOS, I've ...
    na_th_an na_th_an November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... URL]. The linker will pull in code in units of modules, which you ... by lots of other code. The other C compilers will work ... things are placed into the c:\z88dk subdirectory. Windows binaries ... try. Create a work directory in c:\z88dk\work (or someplace). ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... try. Create a work directory in c:\z88dk\work (or someplace). Unzip ... />
    [code]
    sccz80:"ex1.c" L:103 Warning:#36:In function: main ... ) , but I have got nothing in c:\gnu.


    ... discovered an ex1.tap in my c:\z88dk\work directory and ...
    Stefan Drissen Stefan Drissen November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    Well example code with warnings is not good!< ... />
    int func();

    in C, you should do this:

    because in C empty brackets mean "any number ... in C, so not completely the same) whereas in C++ (but [B]not [/B]C ...
    Paradigm Shifter Paradigm Shifter November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... br /> [code]
    sccz80:"ex1.c" L:103 Warning:#36:In function: main ... signed int
    [/code]
    [/quote]

    C warnings are like ... take that to heart in my own C code -- I don't ignore ... ) , but I have got nothing in c:\gnu.
    [/quote]
    < ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Development
  • bit manipulation conundrumWhat's a neat way to change this bit pattern in registers BCDE: [code]Loop0: ;change B:00000000 C:abcdefgh D:ijklmnop E:qrstuvwx[/code] to this bit …

    ... think works

    [CODE] ld a,b
    and ... e
    rra
    rr c
    rr d
    rr ... e
    rra
    rr c
    rr d
    ... e
    rra
    rr c
    rr d
    rra ... /> ld b,a
    ret[/CODE]

    In 32 bytes
    jamorski jamorski November 2013 Development
  • bit manipulation conundrumWhat's a neat way to change this bit pattern in registers BCDE: [code]Loop0: ;change B:00000000 C:abcdefgh D:ijklmnop E:qrstuvwx[/code] to this bit …

    ... will you allow self modifying code in your solution?[/quote]

    ld c,%11111010 ;= $FA
    ld d ... output of:
    [code] B=%01110110 = $76
    C=%01010100 = $54
    Battle Bunny Battle Bunny November 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... able to access flags from C would be nice for functions ... value (I've seen ASM code which returns success/fail by ... and beyond with no error in C. Which is good for speed ...
    Paradigm Shifter Paradigm Shifter December 2013 Development
  • Cross platform developmentI'm just vaguely considering supporting a few more retro 8 bit platforms for something I have in mind to do. Just Z80 and 6502 really, but that cove…

    ... from an ASM function, in fact that's probably not ... you can return things back in HL then everything else ... main point of writing in (pure) C is that it's ... time ago was mostly written in C (except for the keyboard/ ... to use all of the C code (that was written for ...
    Timmy Timmy December 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…

    ... the sample prog "nirvanadem.c"):

    [code]
    * 10 CLEAR ... "nirvanadem" code in the basic loader is the C program generated ... change to LOAD""CODE, etc) . Load the nirvana code in, save it ... by MERGEing in the basic and loading the code parts ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Brand new software
  • FZX: a new standard format and driver for proportional fonts[B]FZX[/B] is a very compact and efficient (although extremely flexible and powerful) standard format to create new fonts for the ZX-Spectrum. It sup…

    ... 't see normally in people's code. Extra instructions or ... as functions (ie z80 code, as in "extern void __LIB__ _ff_Aribeth14 ... ff_xxxx" syntax to the macro in c code, esthetically speaking. So even ... done before the C compiler sees the source code.

    Alcoholics Anonymous Alcoholics Anonymous December 2013 Brand new software
  • FZX Driver for z88dkAn fzx library for z88dk can be downloaded [URL="https://drive.google.com/file/d/0B6XhJJ33xpOWM2hWNjAxMVkxaEk/edit?usp=sharing"]here[/URL]. The libr…

    ... does it compare in terms of code+data size? The ... of the text somewhere in C now I just used ... google drive.

    [code]
    (fzx_putc.asm)
    ... pop two items
    [/code]

    That should ... will show you the code later after I incorporated ...
    Timmy Timmy December 2013 Announcements
  • Self modifying code ??I made a game in C that was mostly accessing arrays and using FOR NEXT loops, I ran out of memory, so I was thinking would it be possible to use sel…

    ... ;738960]I made a game in C that was mostly accessing arrays ... use the same code?

    When using C the interpreters always ... . Probably the easiest programming trick in C.

    4) And finally ... can help you optimise your code. In that case I'd like ...
    Timmy Timmy December 2013 Development
  • Why?I'm just wondering why people are here? Why are we working on or using old hardware? Why are some of you putting a lot of effort in upgrading the ha…

    ... get bloated with too much code. Functions should only be ... inlined by the compiler whereas in C++ the template argument almost ... .

    And no namespaces in C == fail.

    EDIT2: ... allow getters and setters as in C#. Having public pointers should ...
    Paradigm Shifter Paradigm Shifter December 2013 Sinclair Miscellaneous
  • Why?I'm just wondering why people are here? Why are we working on or using old hardware? Why are some of you putting a lot of effort in upgrading the ha…

    ... , like the FILE pointer thing in C, which does it well, but ... I said that is OO code anyway.

    Constructors and ... memory leaks do you get in structured programing if you forget ...
    Paradigm Shifter Paradigm Shifter December 2013 Sinclair Miscellaneous
  • Why?I'm just wondering why people are here? Why are we working on or using old hardware? Why are some of you putting a lot of effort in upgrading the ha…

    ... performance critical code you might opt to organise objects in a very ... , just as you would structs in C (you may even break them ... way you seem to suggest - in reality it's little more ...
    AndyC AndyC December 2013 Sinclair Miscellaneous
  • 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 …

    ...
    LD HL,dump2 ;call code in SH-ROM
    CALL 37 ... ;test BREAK
    LD A,C
    JR NC,Xbrk2 ;loop ...
    roko roko December 2013 Hardware
  • Assembly code auto optimiserFor my Finders Keepers Plus project I'm considering writing an Assembly code auto optimiser. Way back when I wrote the original FK I considered optim…

    ... jp there or paste the code in as a macro.

    C compilers there must be some ...
    Paradigm Shifter Paradigm Shifter December 2013 Development
  • Assembly code auto optimiserFor my Finders Keepers Plus project I'm considering writing an Assembly code auto optimiser. Way back when I wrote the original FK I considered optim…

    ... The output from the c compiler in z88dk is fed through three ... it is there rather than in the C part.

    ... catch most obvious nonsenses in compiler generated code.[/QUOTE]

    ... you want something to rewrite code in a more optimal way (memory ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • Self modifying code ??I made a game in C that was mostly accessing arrays and using FOR NEXT loops, I ran out of memory, so I was thinking would it be possible to use sel…

    ... code will be much smaller and faster than an equivalent written in C ... on any z80 C compiler. If you need a C interface ... br />
    * Within functions in your C code, try to declare the most ... function could reduce code size quite a bit in a big ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • Beepola v1.08 AvailableA new version of Beepoa, v1.08, is now available for download from:- [url]http://freestuff.grok.co.uk/beepola/[/url] (1.76MB zipped exe, no installe…

    ... tried composing a tune in Beepola, compiling it to ... and then trying the following C code in z88dk ? la "Beeper.h" ... Spectrum!

    [CODE]extern unsigned char beeper [];
    #endasm
    }[/CODE]

    Perhaps na_th_an could ...
    szeliga szeliga December 2013 Announcements
  • Beepola v1.08 AvailableA new version of Beepoa, v1.08, is now available for download from:- [url]http://freestuff.grok.co.uk/beepola/[/url] (1.76MB zipped exe, no installe…

    ... ] and then trying the following C code in z88dk ? la "Beeper.h" ... for example by a LOAD""CODE in your basic loader. One of ... the output options in beepola is a tap code block. You ... :

    [code]
    ======

    "frankt.c"

    extern ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Announcements
  • Changing the font in z88dkEither I've got this backwards or the documentation is incorrect... :smile: "[URL="http://www.z88dk.org/wiki/doku.php?id=platform:zx"]The standard Z…

    ... "binary" isn't available in sdcc? or global labels? ... have inline asm in the global scope in a C program, ie ...
    void main(void)....
    [/code]

    Instead this can ... convenient:

    [code]
    === main.c ======

    extern ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • array offset (z88dk)Im trying to simulate a 2 dimensional array by using an offset [code] #include <fzx.h> char scr[768]; int arrayoffset(char x,char y) { return (x*…

    ... of implementing a 2D array in a program.[/QUOTE]
    < ... that would have contributed to code size reduction too.
    < ... ints rather than chars in sccz80 (z88dk's C compiler, probably the ... the compiler to generate better code in some places. For example, ...
    Alcoholics Anonymous Alcoholics Anonymous December 2013 Development
  • About how z88dk generates code and makes room for variables.When you attempt to code games for the 128K models using z88dk in C you need to somewhat control where variables are stored in memory. I thought tha…

    ... two kinds of global variabales in C : the initialized and the uninitialized ... (char_a),a ], ie executing extra code, to initialize that area. Obviously ... an example:

    [code]
    // "main.c"


    extern ...
    Alcoholics Anonymous Alcoholics Anonymous January 2014 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