I think you need to start chuck.s with TEXT start(SB), $-4 This treats the routine as a leaf function and doesn't insert code to make space for parameters on the stack, which I believe is what's happening with R2.
David ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T3f252d4d7c5389ee-Mbc561e3d088e6be8b0de07a7 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
