汇编语言编程怎么编程[d-(a*b+c)]/a,a,b,c,d均为无符号数,将结果商存入AX中,余数存入DX中。

1个回答

  • class StackOfIntegers{

    int * stackbottom;

    static increaseBlockSize = 0x0A;

    int totalSize = 0;

    int * stacktail;

    int* stacktop;

    }

    StackOfIntegers ::StackOfIntegers(){

    totalSize = increaseblockSize;

    statckbottom = new int[totalSize ];

    statcktop = statckbottom;

    statcktail = statckbootom+totalSize*sizeof(int);

    }

    bool StackOfIntegers::push(int addInt){

    if stacktop == statcktail{

    int * newstack = new int[totalsize+increaseBlockSize]

    for(int i = 0; i < totalsize;++i)

    newstatck[i]=statckbotton[i]

    delete statckbottom;

    statckbottom = newstatck;

    totalsize += increaseBlockSize;

    statcktail = statckbottom +totalsize*sizeof(int);

    }

    *stacktop = addint;

    statcktop += sizeof(int);

    }