English Amiga Board

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

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

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


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
Registered User
Join Date: Jun 2007
Location: europe
Posts: 176
move.l 50(a1),COP2LCH(a5)

heavy is offline  
Old 12 August 2017, 11:19   #3
Registered User

Join Date: Jun 2017
Location: Paris
Posts: 25
Thanks !
Yragael is offline  
Old 22 August 2017, 00:53   #4
Wepl's Avatar
Join Date: Nov 2001
Location: Germany
Posts: 654
I think there is no need to restore cop2lc because the list in gb_copinit will set cop2lc anyway.
Wepl 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 03:48.

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