English Amiga Board


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

 
 
Thread Tools
Old 12 August 2017, 11: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, 12:09   #2
heavy
Registered User
 
Join Date: Jun 2007
Location: europe
Posts: 169
move.l 50(a1),COP2LCH(a5)

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

 
Join Date: Jun 2017
Location: Paris
Posts: 11
Thanks !
Yragael is offline  
Old 22 August 2017, 01:53   #4
Wepl
Moderator
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 640
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 19:53
Restoring a Bricked ACA500 Plus patopian81 support.Hardware 2 24 February 2017 00:21
Need help restoring my system TenLeftFingers support.Apps 4 22 January 2016 00:35
Restoring A2000 Franchute13 support.Hardware 9 29 September 2015 04:51
Restoring old Amiga 1200 Treguard New to Emulation or Amiga scene 15 29 June 2015 19: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 17:57.


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