X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fz80%2Fmappings.i;h=d2887dc19a6f42205bc416525cd217368248b029;hb=f239a9f256f022ade8216daba928e817f2d5f528;hp=f8bc23864643a0e093f2580fcf2cdbccabe3c24f;hpb=c19e63c811b568ecd13a231f78cc69a01bacfa1e;p=fw%2Fsdcc diff --git a/src/z80/mappings.i b/src/z80/mappings.i index f8bc2386..d2887dc1 100644 --- a/src/z80/mappings.i +++ b/src/z80/mappings.i @@ -27,6 +27,14 @@ static const ASM_MAPPING _asxxxx_gb_mapping[] = { }, { "adjustsp", "lda sp,-%d(sp)" }, { "fileprelude", "" }, + { "profileenter", + "ld a,#3\n" + "\trst\t0x08" + }, + { "profileexit", + "ld a,#4\n" + "\trst\t0x08" + }, { NULL, NULL } }; @@ -62,7 +70,8 @@ static const ASM_MAPPING _asxxxx_z80_mapping[] = { "\tadd\tix,sp\n" "\tld\thl,#-%d\n" "\tadd\thl,sp\n" - "\tld\tsp,hl" }, + "\tld\tsp,hl\n" + }, { "leave", "pop\tix\n" }, @@ -77,6 +86,14 @@ static const ASM_MAPPING _asxxxx_z80_mapping[] = { "\tpush\thl" }, { "adjustsp", "lda sp,-%d(sp)" }, + { "profileenter", + "ld a,#3\n" + "\trst\t0x08" + }, + { "profileexit", + "ld a,#4\n" + "\trst\t0x08" + }, { NULL, NULL } };