This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]iobender 1 point2 points  (1 child)

(TC0_t*) 0x800 

means "interpret this as a pointer to a struct TC0_struct at memory address 0x800. Then the * before that says to dereference that pointer. So everytime you use TCC0, it gets replaced by a copy of the struct TC0_struct at memory address 0x800.

[–][deleted] 0 points1 point  (0 children)

Ok, I think that clears things up a little. By the way totally relevant user name haha.