Welcome, Guest. Please login or register.

Author Topic: LhA year 2011+ issues  (Read 7080 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Sidewinder

  • Full Member
  • ***
  • Join Date: Mar 2002
  • Posts: 241
    • Show all replies
    • http://www.liquido2.com
Re: LhA year 2011+ issues
« on: January 09, 2011, 03:07:58 AM »
Quote from: ChaosLord;603372

@All Haxx0rz out there:
Can anyone hackpatch the old lha v1.38r 680x0 asm coded version?

The 1.3x series of LHA commands by Stefan Boberg were coded in asm and were noticeably faster than the lha 2.x series coded in C by various ppl.

I need a lha1.3x for use on slow old Real Amigas.  Thanx a Megabyte! :)


In version 1.38 the offending instruction is cmpi.l #$7DA,d6 and can be located at offset $BC1A.  The actual incorrect data is at offset $BC1E.

The simple fix is to load your favorite hex editor and change the 2 byte word at offset $BC1E from $07DA (2010) to $083B (2107).  This worked like a charm for me.

I did find another problem when listing the contents of an lha archive with v1.38.  The year portion of the date in the final summary line contains 3 digits, so that 08-Jan-11 reads as 08-Jan-111.  I've found the location of this bug in the code also.  It appears that the rounding function is not called when printing the date for the last line, but it is called when printing the archived files list.  I'm working on a fix for this also and I'll upload it when I'm done.
Sidewinder