2006-07-03

Meeting Log

My slide
howls'


TODO for Wed.:

*Reinforcing the script section, add Memory Layout from the lecture of china.
*Replacing "CS :: Example" by more complete example, better for demo and present.


Meeting note:
*Thumb mode
--

.arm
adr r0, Tstart +1
bx r0

.thumb
Tstart:
[...]

--
16-bit data line mode {00, 01}, {10, 11}, the MSB bit is exange by "0" and "1". 32-bit is {00, 01, 10, 11}, {100, 101, 110, 111}. The default mode is .arm, thus load the instruction to memory by 3-bits.

For parting 16-bit and 32-bit mode; it's 16-bit if LSB is 1, so "Tstart +1", is plus LSB bit to 1 to tail of machine code.

Return 32-bit mode from 16-bit, we can use "mov pc, lr".

*One label of Literal can be present more different types.

1 則留言:

Arrakeen 提到...

mine is ...
1.PSR's [mode]
2.Post-index Addressing