011
24.08.2026, 17:13 Uhr
Early8Bitz
|
In o.g. Tool
http://www.pofo.de/P8000/misc/sources/tools/extract_cqm_udos.c
ist noch ein Bug, die Property-Bits der UDOS-Datei werden aus dem entsprechenden Byte im Descriptor in der falschen Reihenfolge ausgelesen. Hier der Fix als diff.
| Quellcode: | --- extract_cqm_udos.c 2009-07-28 11:17:45.000000000 +0200 +++ extract_cqm_udos_fix.c 2009-08-14 22:50:18.000000000 +0200 @@ -25,6 +25,10 @@ * MA 02111-1307, USA * * * *****************************************************************************/ +/***************************************************************************** + * Changes by RPN * + * 2009-08-14 Fix output of properties (WELSRF) * + *****************************************************************************/ #include<stdio.h> #include<string.h> @@ -462,12 +466,12 @@ descriptor[0x20],descriptor[0x21],descriptor[0x22],descriptor[0x23],descriptor[0x24],descriptor[0x25]); strcpy(buf,"......"); - if(descriptor[0x13] & 0x04) buf[ 5]='W'; - if(descriptor[0x13] & 0x08) buf[ 4]='E'; - if(descriptor[0x13] & 0x10) buf[ 3]='L'; - if(descriptor[0x13] & 0x20) buf[ 2]='S'; - if(descriptor[0x13] & 0x40) buf[ 1]='R'; - if(descriptor[0x13] & 0x80) buf[ 0]='F'; + if(descriptor[0x13] & 0x04) buf[ 5]='F'; + if(descriptor[0x13] & 0x08) buf[ 4]='R'; + if(descriptor[0x13] & 0x10) buf[ 3]='S'; + if(descriptor[0x13] & 0x20) buf[ 2]='L'; + if(descriptor[0x13] & 0x40) buf[ 1]='E'; + if(descriptor[0x13] & 0x80) buf[ 0]='W'; fprintf(fp,"%s ",buf); fprintf(fp,"%04x %04x %04x " ,(descriptor[0x29]<<8)|descriptor[0x28], (descriptor[0x7b]<<8)|descriptor[0x7a],(descriptor[0x7d]<<8)|descriptor[0x7c]);
|
-- Gruß Ralf
Ist ein alter Schaltkreis ein Schaltgreis? Dieser Beitrag wurde am 24.08.2026 um 17:14 Uhr von Early8Bitz editiert. |