User Activity

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

    use neg opcode instead of clp/inc

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

    Another request related to this one: Would you name in asm the offsets within the structs according to the names of the fields in C? It would help debug and integration with asm code Something like this: ld iy, #_SwSprite ld de, #0x0010 ld b, #0x26 03999$: ld a, MyObj.lx (iy) ld MyObj.x1 (iy) ,a ; SwSpPntr->x1 = SwSpPntr->lx; ld l, MyObj.ly (iy) ld h, MyObj.ly+1 (iy) ld MyObj.y1 (iy),l ld MyObj.y1+1 (iy),h ; SwSpPntr->y1 = SwSpPntr->ly; add iy, de ; SwSpPntr++; djnz 03999$

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

    Another request related to this one: Would you name in asm the offsets within the structs according to the names of the fields in C? It would help debug and integration with asm code

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

    Another request related to this one: Would you name in asm the offsets within the struct according to the names of the fields? It would help debug and integration with asm code

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

    I am testing v 4.6.2 and nothing changes also allowing insane numbers of nodes at compile time...

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

    Peephole optimizer introduced an invalid "ld hl, a" You should replace it by ld h, a ld l, a this is 2 bytes and faster than ld hl, 0 which is 3 bytes and 2 cycle slower

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

    To compile the above C this could work struct MyObj { u8 lx; // Logical x u8 x0,x1,x2; // Physical x's in the 3 pages i16 ly; // Logical Y u16 y0,y1,y2; // Physical y's in the 3 pages u16 frame; i8 dx; // x direction i8 dy; // y direction }; #define TotDem (32) #define TotSprt (32+6) struct MyObj SwSprite[TotSprt]; void main() { SwSpPntr = &SwSprite[0]; for (u8 i=0; i<TotSprt;i++) { SwSpPntr->x1 = SwSpPntr->lx; SwSpPntr->y1 = SwSpPntr->ly; SwSpPntr++; } }

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

    To compile the above C you need struct MyObj { u8 lx; // Logical x u8 x0,x1,x2; // Physical x's in the 3 pages i16 ly; // Logical Y u16 y0,y1,y2; // Physical y's in the 3 pages u16 frame; i8 dx; // x direction i8 dy; // y direction }; #define TotDem (32) #define TotSprt (32+6) struct MyObj SwSprite[TotSprt];

View All

Personal Data

Username:
artrag
Joined:
2022-02-20 18:01:59.496000

Projects

  • No projects to display.

Personal Tools