Hello all! I'm in a digital platform class and have the assignment to optimize a 8081 processor design.
Currently a very small part of the code looks like this:
It seems useless to load and save all these values from memory. Instead I would like to try:Code:unsigned char t; t = t; t = t; t = 0;
Which is supposed to do the same reassignment to my array.Code:unsigned char t, (*tptr) = &t; *tptr = *tptr << 8;
I get the following error codes:
The rest of my code works fine. I'm also allowed to use in-line ASM code instead. Where did I go wrong with my alternative implementation?error 48: cannot assign values to aggregates
error 43: invalid operand for shift operator
warning 113: left & right types are unsigned-char  ,literal-unsigned-char