English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 21 February 2017, 17:50   #1
bloodline
Registered User
 
bloodline's Avatar
 
Join Date: Jan 2017
Location: London, UK
Posts: 433
What order does Exec save the registers on the stack during a context switch?

What order does Exec save the registers on the stack during a context switch?

My guess is D0 through to D7, followed by A0 through to A6, SR, and then A7 stored in the task control block. So should I want to examine the contents of a waiting task's, D0 (for example) I would look at tc_SPReg + 68?

Cheers.
bloodline is offline  
Old 21 February 2017, 18:27   #2
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
PC.l, SR.w, D0.l, .., D7.l, A0.l, .. A6.l
phx is offline  
Old 21 February 2017, 18:33   #3
bloodline
Registered User
 
bloodline's Avatar
 
Join Date: Jan 2017
Location: London, UK
Posts: 433
Quote:
Originally Posted by phx View Post
PC.l, SR.w, D0.l, .., D7.l, A0.l, .. A6.l
Excellent, many thanks.
bloodline is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
CD32 - Is NTSC/PAL switch and 50/60 switch possible? missyrelm Hardware mods 71 13 January 2019 05:21
Picasso96: Could not create graphics board context for 'Spectrum' MagerValp support.Hardware 12 02 May 2017 19:05
CDTV exec.library Arnie support.WinUAE 19 18 February 2016 13:11
68K/PPC context switching? RedskullDC support.Hardware 1 08 December 2008 11:44

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:39.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06622 seconds with 15 queries