User Activity

  • Posted a comment on ticket #3177 on Small Device C Compiler (SDCC)

    no carry: a=0-(hl)-0 a=0-(hl) If there is no carry, it shouldn’t matter. carry: a=0-(hl)-1 a=-1-(hl) This makes a difference 0-0-1 has a carry, but -1-0 doesn’t.

  • Posted a comment on ticket #3387 on Small Device C Compiler (SDCC)

    Looks like a duplicate.

  • Posted a comment on ticket #3387 on Small Device C Compiler (SDCC)

    Turning replace restart { jp NC,%1 jp %2 %1: } by { jp C,%2 ; common peephole 79 removed jp by using inverse jump logic %1: } if labelRefCountChange(%1 -1) into } by { jp C,%2 ; common peephole 79 removed jp by using inverse jump logic %1: } if operandsNotRelated(%2 '(hl)' '(ix)' '(iy)'), labelRefCountChange(%1 -1) might suffice, yes.

  • Posted a comment on ticket #3275 on Small Device C Compiler (SDCC)

    Though for 4.2.0 the .zxn workaround described above should work.

  • Modified a comment on ticket #3390 on Small Device C Compiler (SDCC)

    http://sdcc.sourceforge.net/doc/sdccman.pdf is the official manual. It’s probably also included in the downloads. I used an anchored link directly to the chapter, which doesn’t work anyways if you don’t use the builtin PDF viewer of firefox/chrome. edit: It could be that it generates that warning because sdcc.sourceforge.net doesn’t use https, but not sure. edit2: You probably got that warning because I linked a non-https file from a https site (this ticket system). So it might work when you go directly...

  • Modified a comment on ticket #3390 on Small Device C Compiler (SDCC)

    http://sdcc.sourceforge.net/doc/sdccman.pdf is the official manual. It’s probably also included in the downloads. I used an anchored link directly to the chapter, which doesn’t work anyways if you don’t use the builtin PDF viewer of firefox/chrome. It could be that it generates that warning because sdcc.sourceforge.net doesn’t use https, but not sure.

  • Posted a comment on ticket #3390 on Small Device C Compiler (SDCC)

    http://sdcc.sourceforge.net/doc/sdccman.pdf is the official manual. It’s probably also included in the downloads. I used an anchored link directly to the chapter, which doesn’t work anyways if you don’t use the builtin PDF viewer of firefox/chrome.

  • Modified a comment on ticket #3390 on Small Device C Compiler (SDCC)

    This is a know “bug”. Don’t use named labels, they don’t work when they get embedded into structures that gets translated into jumps. You have to use something like: void test( unsigned int count ) { if ( count == 0 ) return; __asm 2$: ret __endasm; } “3.11.4 Use of Labels within Inline Assembler” explicitly says: All labels defined within inline assembler code have to be of the form nnnnn$ where nnnnn is a number less than 100 The compiler internally uses reusable symbols for all jumps. By introducing...

View All

Personal Data

Username:
basxto
Joined:
2020-05-28 11:27:16
Location:
Germany / CEST
Gender:
Male

Projects

This is a list of open source software projects that Sebastian Riedel is associated with:

Personal Tools