Bác nào cho em hỏi cách biểu diễn số thập phân cái
em có một chương trình sau:
Synopsis:
trong đó:
fOpr1,fOpr2 là các số thập phân. nó biểu diễn bằng 4byte thì phải. bác nào giả thích cho em cái. thanks
em có một chương trình sau:
Synopsis:
Code:
#include <arith.h> void fpmul(float fOpr1, float fOpr2, float *fRes); Assembly: push X ; preserve X register if necessary mov A, >fRes ; push the address of result variable push A mov A, <fRes push A mov A, [fOpr2+0] ; push the second parameter fOpr2 push A mov A, [fOpr2+1] push A mov A, [fOpr2+2] push A mov A, [fOpr2+3] push A mov A, [fOpr1+0] ; push the first parameter fOpr1 push A mov A, [fOpr1+1] push A mov A, [fOpr1+2] push A mov A, [fOpr1+3] push A lcall fpmul ; do the multiplication add SP, 246 ; pop the stack pop X ; restore the X register if necessary
fOpr1,fOpr2 là các số thập phân. nó biểu diễn bằng 4byte thì phải. bác nào giả thích cho em cái. thanks

namqn
Comment