English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 23 August 2014, 21:52   #1
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Protection bits of amiga lha-archives

Hi,

does anyone know a semi-noob-friendly way to get the protecton bits of a file in an lha archive? From my understanding they are stored in 1 Byte at offset 19 of the file header.
Some examples I discovered while testing:
Code:
0x00: ----rwed
0x40: -s--rwed
0x04: ----r-ed
Thanks in advance.

Edit:
I think, I've got it. It's easier than I thought.
Just convert the hex value to binary, invert the last 4 bits (because ----rwed is 0x00 and some kind of default) and you are done. Am I right?

Last edited by jbl007; 23 August 2014 at 22:44.
jbl007 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
How to unpack LHA archives using Amiga Installer Script? doble07 Coders. General 3 02 February 2010 11:47
Making LHA archives that the Amiga can read? Muzer support.Other 7 02 October 2009 20:26
Toolset for Amiga archives for PC another_two Retrogaming General Discussion 4 20 June 2007 16:43
Amiga Demo Scene Archives Axxy Amiga scene 2 24 January 2005 01:10
Protection Bits JohnH support.WinUAE 5 08 May 2003 22:49

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 11:37.

Top

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