h6. [[Portable]] h6(. » [[Portable SWI Calls|SWI Calls]] h6((. » Portable_Speed2 h2. Portable_Speed2 h5. (SWI &42FCE) |_<^{width:4em}. Entry | | |<^. R0 |<^. "Reason code":#reason | |\2<^. All other registers are dependent on reason code| |_<^{width:4em}. Exit | | |\2<^. All registers dependent on reason code| h4. Use The purpose of this call is to provide extra functionality not available through [[Portable_Speed]]. h4. Notes The action performed depends on the reason code value in R0. h4(#reason). Reason Codes |_<^{width:4em}. #|_<^{width:4em}. Hex #|_<^. Action| |<^. 00|<^. &00|<^. [[Portable_Speed2 0|Report current CPU speed in MHz]]| |<^. 01|<^. &01|<^. [[Portable_Speed2 1|Report min & max CPU speed in MHz]]| |<^. 02|<^. &02|<^. [[Portable_Speed2 2|Set 'slow' and 'fast' speeds in MHz]]| |<^. 03|<^. &03|<^. [[Portable_Speed2 3|Report current 'slow' and 'fast' speeds in MHz]]| |<^. 04|<^. &04|<^. [[Portable_Speed2 4|Report number of CPU speeds available]]| |<^. 05|<^. &05|<^. [[Portable_Speed2 5|Convert speed index to MHz]]| |<^. 06|<^. &06|<^. [[Portable_Speed2 6|Convert MHz to index]]| |<^. 07|<^. &07|<^. [[Portable_Speed2 7|Report current CPU speed as index]]| |<^. 08|<^. &08|<^. [[Portable_Speed2 8|Set 'slow' and 'fast' speeds using indices]]| |<^. 09|<^. &09|<^. [[Portable_Speed2 9|Report current 'slow' and 'fast' speed indices]]| h4. See also * [[Portable_Speed]] * [[Portable SWI Calls]]