English Amiga Board Amiga Lore


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 12 August 2017, 10:36   #1
Yragael
Registered User

 
Join Date: Jun 2017
Location: Paris
Posts: 11
Restoring COP2LCH/LCL

Hi,

This question is part hardware / part system, so sorry if I posted it in the wrong thread.

A the end of my code, I have to restore COP2LCH/LCL so that the system wont crash. I know how to restore COP1LCH/LCL. Their values can be found at some offset after an OldOpenLibrary call :

lea graphicslibrary,a1
movea.l $4,a6
jsr -408(a6)
move.l d0,a1
move.l 38(a1),COP1LCH(a5)
clr.w COPJMP1(a5)
jsr -414(a6)

But I could not find the info regarding the offset where the values of COP2LCH/LCL can be found. Any idea ?
Yragael is offline  
AdSense AdSense  
Old 12 August 2017, 11:09   #2
heavy
Registered User
 
Join Date: Jun 2007
Location: europe
Posts: 168
move.l 50(a1),COP2LCH(a5)

LOF/SHFlist
http://wiki.amigaos.net/wiki/Classic...ing_Gracefully
heavy is offline  
Old 12 August 2017, 11:19   #3
Yragael
Registered User

 
Join Date: Jun 2017
Location: Paris
Posts: 11
Thanks !
Yragael is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring an Old C= Amiga Sign IvanEBC Nostalgia & memories 4 20 March 2017 18:53
Restoring a Bricked ACA500 Plus patopian81 support.Hardware 2 23 February 2017 23:21
Need help restoring my system TenLeftFingers support.Apps 4 21 January 2016 23:35
Restoring A2000 Franchute13 support.Hardware 9 29 September 2015 03:51
Restoring old Amiga 1200 Treguard New to Emulation or Amiga scene 15 29 June 2015 18:25

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 21:34.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.09722 seconds with 13 queries