X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=doc%2Frandom-notes.txt;fp=doc%2Frandom-notes.txt;h=7ec7b844360766bc4d3be06153ed9848ae74db0d;hb=642a343b925965aa06211d624dc4cb0063c2bcfb;hp=4c77790ebccd829b0734f509473e4d0b29d2b5c6;hpb=24d36cacbba9c00046134de17afd35900366150b;p=fw%2Fsdcc diff --git a/doc/random-notes.txt b/doc/random-notes.txt index 4c77790e..7ec7b844 100644 --- a/doc/random-notes.txt +++ b/doc/random-notes.txt @@ -51,5 +51,28 @@ yacc file. SDCCsymt.c and SDCCval.c havnt really changed in 5 days - must be SDCC.y. Nope, no changes. diff against 5 days ago shows only intersting changes are in SDCCicode. Same with -14 days. +Michael +------- +Next bug is global function parameters not being pushed correctly. i.e +unsigned int counter; +void print(void) +{ + printf("Counter is %u\n", counter); +} +generates: +_print:: + ld hl,#_counter + push hl + ld hl,#str_1 + push hl + call printf + fix, ret + +which is more like: + printf("Counter is %u\n", &counter); + +First looking in SDCCicode.c for the stuff that generates function calls: +Probably a bug in geniCodeParams. +Nope, a bug in my stuff :)